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

Public Member Functions | |
| virtual | ~DtChannel () |
| DTOR. | |
| DtObserverObject * | findObserver () const |
| Attempt to get the observer for the channel. | |
| unsigned int | currentModelSet () const |
| Get the current model set. | |
| virtual void | setClearColor (float r, float g, float b, float a)=0 |
| Set the clear color of the channel. | |
| virtual void | setViewport (int x, int y, int width, int height)=0 |
| Set the viewport of the channel. | |
| virtual void | getViewport (int &x, int &y, int &width, int &height) const =0 |
| Get the viewport. | |
| virtual void | setWindow (DtWindow *)=0 |
| Set the window the channel is displayed on. | |
| virtual void | setCameraPosition (double x, double y, double z)=0 |
| Set the channel's camera position. | |
| virtual const DtWindow * | window () const =0 |
| Get the window the channel is displayed on. | |
| virtual void | update ()=0 |
| Update a channel. | |
| const DtChannelConfiguration & | configuration () const |
| Get the configuration. | |
| virtual void | updateProjection ()=0 |
| This method is called when ever the channel's projection matrix needs to be updated. | |
| virtual void | setObserverName (const std::string &observerName) |
| set the name of the observer to use, and attempt to connect | |
| virtual void | setSensorName (const std::string &sensorName)=0 |
| Set the name of the sensor to use. | |
| *virtual void | setProjectionResizePolicy (DtChannelConfiguration::ProjectionResizePolicy policy) |
| Set the policy used to determine if and how the projection matrix should be adjusted on window resizes. | |
| *virtual DtChannelConfiguration::ProjectionResizePolicy | projectionResizePolicy () const |
| Get the policy used to determine if and how the projection matrix should be adjusted on window resizes. | |
| virtual bool | processMouseEvent (const DtMouseEvent &ev)=0 |
| attempt to handle a mouse event with the channel's overlay | |
| virtual bool | processKeyboardEvent (const DtKeyEvent &ev)=0 |
| attempt to handle a keyboard event with the channel's overlay | |
| 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 | |
| virtual void | projectToWorld (double screenX, double screenY, double &dbX, double &dbY, double &dbZ)=0 |
| project the local database coordinates given screen coordinates | |
| virtual void | moveMouseToScreenLocation (float pixelX, float pixelY)=0 |
| Places the mouse cursor at the specified x/y position on the screen. | |
| std::string & | observerName () |
| Retrieve the observer name for this channel. | |
| virtual void | screenCapture ()=0 |
| Takes Screen capture of the current channel. | |
Protected Member Functions | |
| DtChannel (DtDe &de, DtChannelConfiguration &) | |
| The constructor for an abstract class is not public. | |
| virtual void | setProjectionMatrixAsPerspective (double fovy, double aspectRatio, double zNear, double zFar)=0 |
| Create a symmetrical perspective projection, See OpenGL gluPerspective documentation for further details. | |
| virtual void | setProjectionMatrixAsFrustum (double left, double right, double bottom, double topz, double zNear, double zFar)=0 |
| Set to a perspective projection. | |
| virtual void | connectToObserver ()=0 |
| void | observerAdded (const std::string &observerName) |
| void | observerRemoved (const std::string &observerName) |
The abstract Channel Class.
|
protected |
The constructor for an abstract class is not public.
|
virtual |
DTOR.
| 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 |
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::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 |
Create a symmetrical perspective projection, See OpenGL gluPerspective documentation for further details.
Implemented in makVrv::DtOsgChannel.
|
protectedpure virtual |
Set to a perspective projection.
Implemented in makVrv::DtOsgChannel.
|
protectedpure virtual |
Implemented in makVrv::DtOsgChannel.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |