![]() |
VR-Forces 4.8 Class Documentation
|
The abstract Channel Class. More...

Public Member Functions | |
| virtual | ~DtChannel () |
| DTOR. More... | |
| DtObserverObject * | findObserver () const |
| Attempt to get the observer for the channel. More... | |
| unsigned int | currentModelSet () const |
| Get the current model set. More... | |
| virtual void | setClearColor (float r, float g, float b, float a)=0 |
| Set the clear color of the channel. More... | |
| virtual void | setViewport (int x, int y, int width, int height)=0 |
| Set the viewport of the channel. More... | |
| virtual void | getViewport (int &x, int &y, int &width, int &height) const =0 |
| Get the viewport. More... | |
| virtual void | setWindow (DtWindow *)=0 |
| Set the window the channel is displayed on. More... | |
| virtual void | setCameraPosition (double x, double y, double z)=0 |
| Set the channel's camera position. More... | |
| virtual const DtWindow * | window () const =0 |
| Get the window the channel is displayed on. More... | |
| virtual void | setChannelEnabled (bool enabled)=0 |
| Enable/Disable the channel. More... | |
| virtual bool | channelEnabled () const =0 |
| Enable/Disable the channel. More... | |
| virtual void | update ()=0 |
| Update a channel. More... | |
| const DtChannelConfiguration & | configuration () const |
| Get the configuration. More... | |
| virtual void | updateProjection ()=0 |
| This method is called when ever the channel's projection matrix needs to be updated. More... | |
| virtual void | setObserverName (const std::string &observerName) |
| set the name of the observer to use, and attempt to connect More... | |
| virtual void | setSensorName (const std::string &sensorName)=0 |
| Set the name of the sensor to use. More... | |
| *virtual void | setProjectionResizePolicy (DtChannelConfiguration::ProjectionResizePolicy policy) |
| Set the policy used to determine if and how the projection matrix should be adjusted on window resizes. More... | |
| *virtual DtChannelConfiguration::ProjectionResizePolicy | projectionResizePolicy () const |
| Get the policy used to determine if and how the projection matrix should be adjusted on window resizes. More... | |
| virtual bool | processMouseEvent (const DtMouseEvent &ev)=0 |
| attempt to handle a mouse event with the channel's overlay More... | |
| virtual bool | processKeyboardEvent (const DtKeyEvent &ev)=0 |
| attempt to handle a keyboard event with the channel's overlay More... | |
| virtual void | projectToScreen (double dbX, double dbY, double dbZ, double &screenX, double &screenY, double &screenZ)=0 |
| project the given local (Or database) coordinates into screen coordinates More... | |
| virtual void | projectToWorld (double screenX, double screenY, double &dbX, double &dbY, double &dbZ)=0 |
| project the local database coordinates given screen coordinates More... | |
| virtual void | moveMouseToScreenLocation (float pixelX, float pixelY)=0 |
| Places the mouse cursor at the specified x/y position on the screen. More... | |
| std::string & | observerName () |
| Retrieve the observer name for this channel. More... | |
| virtual void | screenCapture ()=0 |
| Takes Screen capture of the current channel. More... | |
Protected Member Functions | |
| DtChannel (DtDe &de, DtChannelConfiguration &) | |
| The constructor for an abstract class is not public. More... | |
| virtual void | connectToObserver ()=0 |
| virtual void | observerAdded (const std::string &observerName) |
| connected to the signal_observerAdded so the channel can connect to the correct observer when it is added More... | |
| virtual void | observerRemoved (const std::string &observerName) |
| connected to the signal_observerRemoved so the channel can disconnect from the observer when it is removed. More... | |
Private Member Functions | |
| DtChannel () | |
| Default Constructor not implemented. More... | |
| DtChannel (const DtChannel &) | |
| Copy Constructor not implemented - Copy not allowed. More... | |
| DtChannel & | operator= (const DtChannel &) |
| Assignment Operator not implemented - Copy not allowed. More... | |
The abstract Channel Class.
|
protected |
The constructor for an abstract class is not public.
|
virtual |
DTOR.
|
private |
Default Constructor not implemented.
|
private |
Copy Constructor not implemented - Copy not allowed.
| DtObserverObject* makVrv::DtChannel::findObserver | ( | ) | const |
Attempt to get the observer for the channel.
|
pure virtual |
Set the clear color of the channel.
Implemented in makVrv::DtOsgChannel.
Set the viewport of the channel.
Implemented in makVrv::DtOsgChannel.
|
pure virtual |
Get the viewport.
Implemented in makVrv::DtOsgChannel.
|
pure virtual |
Set the window the channel is displayed on.
Implemented in makVrv::DtOsgChannel.
Set the channel's camera position.
Implemented in makVrv::DtOsgChannel.
|
pure virtual |
Get the window the channel is displayed on.
Implemented in makVrv::DtOsgChannel.
|
pure virtual |
Enable/Disable the channel.
When a channel is disabled, it no longer renders and receives key/mouse events
Implemented in makVrv::DtOsgChannel.
|
pure virtual |
Enable/Disable the channel.
When a channel is disabled, it no longer renders or receives key/mouse events
Implemented in makVrv::DtOsgChannel.
|
pure virtual |
Update a channel.
Implemented in makVrv::DtOsgChannel, and makVrv::DtOculusChannel.
| const DtChannelConfiguration& makVrv::DtChannel::configuration | ( | ) | const |
Get the configuration.
|
pure virtual |
This method is called when ever the channel's projection matrix needs to be updated.
Implemented in makVrv::DtOsgChannel, makVrv::DtVirtualRealityChannel, makVrv::DtOculusChannel, and makVrv::vrvScalableDisplay::DtScalableOsgChannel.
|
virtual |
set the name of the observer to use, and attempt to connect
|
pure virtual |
Set the name of the sensor to use.
The special name defined by DtChannelManager::UseObserverSensor causes the channel to use the sensor specified by its observer
Implemented in makVrv::DtOsgChannel.
|
virtual |
Set the policy used to determine if and how the projection matrix should be adjusted on window resizes.
Reimplemented in makVrv::DtOsgChannel.
|
virtual |
Get the policy used to determine if and how the projection matrix should be adjusted on window resizes.
|
pure virtual |
attempt to handle a mouse event with the channel's overlay
Implemented in makVrv::DtOsgChannel.
|
pure virtual |
attempt to handle a keyboard event with the channel's overlay
Implemented in makVrv::DtOsgChannel.
|
pure virtual |
project the given local (Or database) coordinates into screen coordinates
Implemented in makVrv::DtOsgChannel.
|
pure virtual |
project the local database coordinates given screen coordinates
Implemented in makVrv::DtOsgChannel.
|
pure virtual |
Places the mouse cursor at the specified x/y position on the screen.
Implemented in makVrv::DtOsgChannel.
| std::string& makVrv::DtChannel::observerName | ( | ) |
Retrieve the observer name for this channel.
|
pure virtual |
Takes Screen capture of the current channel.
Implemented in makVrv::DtOsgChannel.
|
protectedpure virtual |
Implemented in makVrv::DtOsgChannel.
|
protectedvirtual |
connected to the signal_observerAdded so the channel can connect to the correct observer when it is added
|
protectedvirtual |
connected to the signal_observerRemoved so the channel can disconnect from the observer when it is removed.
Reimplemented in makVrv::DtOsgChannel.
Assignment Operator not implemented - Copy not allowed.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |