Equalizer
1.6.1
|
An Observer looks at one or more views from a certain position (head matrix) with a given eye separation. More...
#include <observer.h>
Public Member Functions | |
Observer (Config *parent) | |
Construct a new observer. More... | |
virtual | ~Observer () |
Destruct this observer. More... | |
void | addView (View *) |
void | removeView (View *) |
Operations | |
virtual bool | handleEvent (EventICommand &command) |
Handle an event. More... | |
Data Access | |
ServerPtr | getServer () |
Public Member Functions inherited from eq::fabric::Observer< Config, Observer > | |
EQFABRIC_INL bool | setHeadMatrix (const Matrix4f &matrix) |
Set the head matrix. More... | |
const Matrix4f & | getHeadMatrix () const |
EQFABRIC_INL void | setEyePosition (const Eye eye, const Vector3f &pos) |
Set the position of the given eye relative to the observer. More... | |
EQFABRIC_INL const Vector3f & | getEyePosition (const Eye eye) const |
EQFABRIC_INL void | setFocusDistance (const float focusDistance) |
Set the focal distance. More... | |
float | getFocusDistance () const |
EQFABRIC_INL void | setFocusMode (const FocusMode focusMode) |
Set the focal mode. More... | |
FocusMode | getFocusMode () const |
EQFABRIC_INL void | setOpenCVCamera (const int32_t index) |
Set the index of the OpenCV camera for tracking. More... | |
int32_t | getOpenCVCamera () const |
EQFABRIC_INL void | setVRPNTracker (const std::string &index) |
Set the VRPN tracker device. More... | |
const std::string & | getVRPNTracker () const |
const Config * | getConfig () const |
Config * | getConfig () |
ObserverPath | getPath () const |
EQFABRIC_INL VisitorResult | accept (Visitor &visitor) |
Traverse this observer using a observer visitor. More... | |
EQFABRIC_INL VisitorResult | accept (Visitor &visitor) const |
Const-version of accept(). More... | |
virtual void | backup () |
virtual void | restore () |
Public Member Functions inherited from eq::fabric::Object | |
virtual bool | isDirty () const |
virtual uint128_t | commit (const uint32_t incarnation=CO_COMMIT_NEXT) |
void | setName (const std::string &name) |
Set the name of the object. More... | |
const std::string & | getName () const |
void | setUserData (co::Object *userData) |
Set user-specific data. More... | |
co::Object * | getUserData () |
const co::Object * | getUserData () const |
void | setError (const int32_t error) |
Set an error code why the last operation failed. More... | |
eq::fabric::Error | getError () const |
uint32_t | getTasks () const |
Return the set of tasks this channel might execute in the worst case. More... | |
uint32_t | getSerial () const |
Callbacks | |
Callbacks are called by Equalizer during rendering to execute various actions from the application main thread before sending the corresponding command to the server. | |
class | detail::InitVisitor |
class | detail::ExitVisitor |
class | detail::FrameVisitor |
virtual bool | configInit () |
Initialize this observer. More... | |
virtual bool | configExit () |
Exit this observer. More... | |
virtual void | frameStart (const uint32_t frameNumber) |
Start rendering a frame. More... | |
Additional Inherited Members | |
Public Types inherited from eq::fabric::Observer< Config, Observer > | |
typedef LeafVisitor< Observer > | Visitor |
The observer visitor type. More... | |
Public Types inherited from eq::fabric::Object | |
enum | DirtyBits { DIRTY_NAME = Serializable::DIRTY_CUSTOM << 0, DIRTY_USERDATA = Serializable::DIRTY_CUSTOM << 1, DIRTY_ERROR = Serializable::DIRTY_CUSTOM << 2, DIRTY_TASKS = Serializable::DIRTY_CUSTOM << 3, DIRTY_REMOVED = Serializable::DIRTY_CUSTOM << 4, DIRTY_SERIAL = Serializable::DIRTY_CUSTOM << 5, DIRTY_CUSTOM = Serializable::DIRTY_CUSTOM << 6, DIRTY_OBJECT_BITS = DIRTY_NAME | DIRTY_USERDATA | DIRTY_ERROR } |
The changed parts of the object since the last pack(). More... | |
Protected Types inherited from eq::fabric::Observer< Config, Observer > | |
enum | DirtyBits |
Protected Member Functions inherited from eq::fabric::Observer< Config, Observer > | |
EQFABRIC_INL | Observer (Config *config) |
virtual void | serialize (co::DataOStream &os, const uint64_t dirtyBits) |
virtual void | deserialize (co::DataIStream &is, const uint64_t dirtyBits) |
virtual void | setDirty (const uint64_t bits) |
virtual uint64_t | getRedistributableBits () const |
Protected Member Functions inherited from eq::fabric::Object | |
Object () | |
Construct a new Object. More... | |
virtual | ~Object () |
Destruct the object. More... | |
virtual bool | hasMasterUserData () |
virtual uint32_t | getUserDataLatency () const |
void | setTasks (const uint32_t tasks) |
virtual void | notifyDetach () |
void | postRemove (Object *child) |
virtual void | removeChild (const UUID &) |
template<class C , class S > | |
void | commitChild (C *child, S *sender, uint32_t cmd, const uint32_t incarnation) |
template<class C > | |
void | commitChild (C *child, const uint32_t incarnation) |
template<class C , class S > | |
void | commitChildren (const std::vector< C * > &children, S *sender, uint32_t cmd, const uint32_t incarnation) |
template<class C > | |
void | commitChildren (const std::vector< C * > &children, uint32_t cmd, const uint32_t incarnation) |
template<class C > | |
void | commitChildren (const std::vector< C * > &children, const uint32_t incarnation) |
template<class C > | |
void | syncChildren (const std::vector< C * > &children) |
template<class P , class C > | |
void | releaseChildren (const std::vector< C * > &children) |
bool | _cmdSync (co::ICommand &command) |
An Observer looks at one or more views from a certain position (head matrix) with a given eye separation.
Multiple observers in a configuration can be used to update independent viewers from one configuration, e.g., a control host, a HMD and a Cave.
Definition at line 37 of file client/observer.h.
eq::Observer::Observer | ( | Config * | parent | ) |
Construct a new observer.
|
virtual |
|
protectedvirtual |
Exit this observer.
|
protectedvirtual |
Initialize this observer.
|
protectedvirtual |
Start rendering a frame.
Called once at the beginning of each frame before the Config::frame is send to the server, to do per-frame updates of observer-specific data.
frameNumber | the frame to start. |
|
virtual |
Handle an event.
The event type and originator identifier (of this object) have already been consumed from the given command.
command | The event input command. |