Configuration for a single channel Serialized and sent to remote displays as necessary to configure remote channels.
More...
Public Member Functions |
| | DtChannelConfiguration (const std::string &name=DefaultChannelString) |
| | CTOR The default channel configuration.
|
| | DtChannelConfiguration (const DtChannelConfiguration &) |
| | Copy CTOR.
|
| DtChannelConfiguration & | operator= (const DtChannelConfiguration &) |
| | Assignment operator.
|
| virtual | ~DtChannelConfiguration () |
| | DTOR.
|
| virtual void | setParentChannel (const std::string &displayName, const std::string &windowName, const std::string &channelName) |
| | Set the parent channel that this channel's camera will be "locked" to.
|
| virtual void | getParentChannel (std::string &displayEngineNameOut, std::string &windowNameOut, std::string &channelNameOut) const |
| | Get the parent channel that this channel's camera will be "locked" to.
|
| virtual void | setProjection (ProjectionUnits units, double left, double right, double bottom, double top, double zNear, double zFar) |
| | Set projection.
|
| virtual void | getProjection (ProjectionUnits &units, double &left, double &right, double &bottom, double &top, double &zNear, double &zFar) const |
| | Get projection.
|
| bool | dynamicNearFar () const |
| | Get if the channel uses dynamic near and far clipping planes.
|
| void | setDynamicNearFar (bool enabled) |
| | Enable/Disable if the channel uses dynamic near and far clipping planes.
|
| double | nearFarRatio () const |
| | Get the channel the near and far clipping plane ratio.
|
| void | setNearFarRatio (double ratio) |
| | Set the channel the near and far clipping plane ratio.
|
| virtual ProjectionUnits | projectionUnits () const |
| | ProjectionUnits accessor.
|
| virtual void | setProjectionUnits (ProjectionUnits units) |
| | ProjectionUnits setter.
|
| virtual void | getClearColor (float &r, float &g, float &b, float &a) const |
| | Get the clear color.
|
| virtual void | setClearColor (float r, float g, float b, float a) |
| | Set the clear color.
|
| virtual void | setCameraPositionOffset (double x, double y, double z) |
| | Set the camera position offset.
|
| virtual void | getCameraPositionOffset (double &x, double &y, double &z) const |
| | Get the camera position offset.
|
| virtual void | setCameraOrientationOffset (double psi, double theta, double phi) |
| | Set the camera orientation offset.
|
| virtual void | getCameraOrientationOffset (double &psi, double &theta, double &phi) const |
| | Get the camera orientation offset.
|
| virtual void | getViewport (double &left, double &right, double &bottom, double &top) const |
| | Get the viewport. Values are percentages of the window's dimensions.
|
| virtual void | setViewport (double left, double right, double bottom, double top) |
| | Set the viewport. Values are percentages of the window's dimensions.
|
| virtual const std::string & | observerName () const |
| | Get the observer name.
|
| virtual void | setObserverName (const std::string &observerName) |
| | Set the observer name.
|
| virtual const std::string & | sensorName () const |
| | Get the sensor name.
|
| virtual void | setSensorName (const std::string &sensorName) |
| | Set the sensor name.
|
| virtual ProjectionResizePolicy | projectionResizePolicy () const |
| | ProjectionResizePolicy accessor.
|
| virtual void | setProjectionResizePolicy (ProjectionResizePolicy policy) |
| | ProjectionResizePolicy setter.
|
| virtual double | cameraMagnification () const |
| | Get the 3D camera's magnification for this channel.
|
| virtual void | setCameraMagnification (double mag) |
| | Set the 3D camera's magnification for this channel (default is 1.0)
|
| | DtConfiguration (const std::string &name="") |
| | CTOR.
|
| | DtConfiguration (const DtConfiguration &) |
| | Copy CTOR.
|
| DtConfiguration & | operator= (const DtConfiguration &) |
| | Assignment OP.
|
| virtual | ~DtConfiguration () |
| | DTOR.
|
| virtual const std::string & | name () const |
| | Get the configuration name.
|
| virtual void | setName (const std::string &name) |
| | Set the configuration name.
|
| virtual const std::string * | findOptionalParameter (const std::string &name) const |
| | Find an optional parameters.
|
| virtual void | setOptionalParameter (const std::string &name, const std::string &value) |
| | Set an optional parameter.
|
| virtual void | setOptionalParameters (const ParameterMap &) |
| | Set an optional parameters.
|
| virtual void | removeOptionalParameter (const std::string &name) |
| | Remove an optional parameter.
|
| const ParameterMap & | optionalParameters () const |
| | Get the optional parameters.
|
| | DtKeywordMixin () |
| | CTOR.
|
| virtual | ~DtKeywordMixin () |
| | DTOR.
|
| virtual void | addKeyword (const std::string &keyword) |
| | Add a keyword.
|
| virtual void | removeKeyword (const std::string &keyword) |
| | Remove a keyword.
|
| virtual void | clearKeywords () |
| | Clear the keywords.
|
virtual const std::set
< std::string > & | keywords () const |
| | Get the keywords.
|
| virtual bool | findKeywords (const std::set< std::string > &) const |
| | Check to see if the class has any of the supplied keywords For best performance sort the keywords (from most frequent to less frequent) and for keywords with the same frequency shortest to longest.
|
| virtual bool | findKeyword (const std::string &word) const |
| | Check to see if a single keyword is in the set.
|
Configuration for a single channel Serialized and sent to remote displays as necessary to configure remote channels.
- Examples
-