Contains a set of mesh model 'symbols', which can be used to represent the set of SceneItems that are not MeshModelInstances. The symbol library contains its own MeshModelLibrary, as well as a MeshModelSource and MeshModelInstance for each symbol.
#include <Rendering/OpenGL/wsglsceneitemsymbollibrary.h>
◆ WSGLSceneItemSymbolLibrary()
◆ ~WSGLSceneItemSymbolLibrary()
◆ getCameraFrustumSymbol()
- Parameters
-
camera | The camera for which we are creating frustum geometry. |
viewportWidth | Width of the viewport that the frustum is being produced for. |
viewportHeight | Height of the viewport that the frustum is being produced for. |
- Returns
- a MeshModelInstance that instances the camera frustum mesh.
◆ getMeshModelLibrary()
- Returns
- The MeshModelLibrary that contains all of the MeshModelSources used to draw the symbols.
◆ getSymbol() [1/5]
◆ getSymbol() [2/5]
◆ getSymbol() [3/5]
◆ getSymbol() [4/5]
- Parameters
-
manip | The manipulator for which we are retrieving a symbol. |
- Returns
- a reference to a meshmodel instance that represents the manipulator. The meshmodel is guaranteed to have a ModelId that corresponds to the cache key of the manipulator.
◆ getSymbol() [5/5]
- Parameters
-
transform | The transform for which we are retrieving a symbol. |
- Returns
- a reference to a model instance that represents the transform.
◆ setCameraFrustumColors()
void setCameraFrustumColors |
( |
const QColor & |
faceColor, |
|
|
const QColor & |
lineColor |
|
) |
| |
- Parameters
-
faceColor | The desired face color of the camera frustum. |
lineColor | The desired line color joining the faces of the camera frustum. |
◆ setSymbolColor()
void setSymbolColor |
( |
const QColor & |
color | ) |
|
- Parameters
-
color | The desired symbol color. |
◆ setSymbolLineWidth()
void setSymbolLineWidth |
( |
const double & |
width | ) |
|
- Parameters
-
width | The desired symbol line width. |