eq::server::Observer Class Reference

The observer. More...

#include <observer.h>

Inheritance diagram for eq::server::Observer:

Inheritance graph
[legend]
Collaboration diagram for eq::server::Observer:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Observer ()
 Constructs a new Observer.
 Observer (const Observer &from, Config *config)
 Creates a new, deep copy of a observer.
virtual ~Observer ()
 Destruct this observer.
Data Access
ObserverPath getPath () const
const Vector3fgetEyePosition (const eq::Eye eye) const
const Matrix4fgetInverseHeadMatrix () const
ConfiggetConfig ()
Operations
void init ()
 Initialize the observer parameters.
VisitorResult accept (ObserverVisitor &visitor)
 Traverse this observer using a observer visitor.
VisitorResult accept (ConstObserverVisitor &visitor) const
void unmap ()
 Unmap this observer and all its children.

Protected Member Functions

virtual void deserialize (net::DataIStream &is, const uint64_t dirtyBits)

Friends

class Config


Detailed Description

The observer.

See also:
eq::Observer

Definition at line 37 of file server/observer.h.


Constructor & Destructor Documentation

eq::server::Observer::Observer ( const Observer from,
Config config 
)

Creates a new, deep copy of a observer.

Definition at line 44 of file server/observer.cpp.

References eq::server::Config::addObserver().

Here is the call graph for this function:

eq::server::Observer::~Observer (  )  [virtual]

Destruct this observer.

Reimplemented from eq::Observer.

Definition at line 54 of file server/observer.cpp.


Member Function Documentation

ObserverPath eq::server::Observer::getPath (  )  const

Returns:
the index path to this observer.

Definition at line 79 of file server/observer.cpp.

References eq::server::Config::getObservers().

Referenced by eq::server::View::View().

Here is the call graph for this function:

Here is the caller graph for this function:

const Vector3f& eq::server::Observer::getEyePosition ( const eq::Eye  eye  )  const [inline]

Returns:
the position of an eye in world-space coordinates.

Definition at line 59 of file server/observer.h.

const Matrix4f& eq::server::Observer::getInverseHeadMatrix (  )  const [inline]

Returns:
the inverse of the current head matrix.

Definition at line 63 of file server/observer.h.

Config* eq::server::Observer::getConfig (  )  [inline]

Returns:
the config of this observer.

Definition at line 67 of file server/observer.h.

void eq::server::Observer::init (  ) 

Initialize the observer parameters.

Definition at line 102 of file server/observer.cpp.

References eq::Observer::getHeadMatrix().

Here is the call graph for this function:

VisitorResult eq::server::Observer::accept ( ObserverVisitor visitor  )  [inline]

Traverse this observer using a observer visitor.

Parameters:
visitor the visitor.
Returns:
the result of the visitor traversal.

Definition at line 83 of file server/observer.h.

References eq::server::ObserverVisitor::visit().

Here is the call graph for this function:

void eq::server::Observer::unmap (  ) 

Unmap this observer and all its children.

Definition at line 93 of file server/observer.cpp.

References eq::net::Object::getID(), eq::net::Object::getSession(), and eq::net::Session::unmapObject().

Here is the call graph for this function:

void eq::server::Observer::deserialize ( net::DataIStream is,
const uint64_t  dirtyBits 
) [protected, virtual]

See also:
Object::deserialize

Reimplemented from eq::Observer.

Definition at line 69 of file server/observer.cpp.

References eq::Observer::getHeadMatrix().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Mon Aug 10 18:58:45 2009 for Equalizer 0.9 by  doxygen 1.5.8