29 #include <osg/MatrixTransform>
31 #include "../../dataHandler/WGridRegular3D.h"
32 #include "../../common/WSharedObject.h"
33 #include "../../common/WProperties_Fwd.h"
35 #include "../widgets/labeling/WGELabel.h"
46 typedef osg::ref_ptr< WGEGridNode >
SPtr;
51 typedef osg::ref_ptr< const WGEGridNode >
ConstSPtr;
219 #endif // WGEGRIDNODE_H
bool getEnableGrid() const
Returns whether grid mode is enabled or not.
void setEnableLabels(bool enable=true)
En- or disable labels on the boundary corners.
void setEnableGrid(bool enable=true)
En- or disable grid mode.
osg::ref_ptr< const WGEGridNode > ConstSPtr
Convenience typedef for a osg::ref_ptr< const WGEGridNode >.
bool m_showLabels
If true, labels get used.
bool m_gridGeometryUpdate
If true, the inner grid geometry gets recreated.
osg::ref_ptr< WGEGridNode > SPtr
Convenience typedef for a osg::ref_ptr< WGEGridNode >.
osg::ref_ptr< osg::Geode > m_labelGeode
The geode keeping the labels.
bool getEnableBBox() const
Returns whether bbox mode is enabled or not.
void setEnableBBox(bool enable=true)
En- or disable bbox mode.
osg::ref_ptr< WGELabel > SPtr
Convenience typedef for a osg::ref_ptr< WGELabel >.
WColor m_bbColor
The color of bbox/grid.
bool m_gridUpdate
If true, the labels and geometry gets adapted properly.
WGridRegular3D::ConstSPtr getGrid() const
Returns the currently set grid.
void setBBoxColor(const WColor &color)
Sets the color of the rendered bbox.
bool m_showGrid
True if the grid should be rendered.
void callback(osg::Node *node)
The actual callback handling changes in the grid.
const WColor & getGridColor() const
The currently set color used for rendering the grid.
Wrapper around an object/type for thread safe sharing of objects among multiple threads.
bool getEnableLabels() const
Returns whether labels on the corners are enabled or not.
osg::ref_ptr< osg::Geode > m_innerGridGeode
The geometry for the whole grid.
virtual ~WGEGridNode()
Destructor.
WColor m_gridColor
The color of the grid.
This node is able to represent a grid in certain ways.
WGEGridNode(WGridRegular3D::ConstSPtr grid)
Creates a node representing the specified grid.
WGELabel::SPtr m_borderLabels[8]
The labels at the corner.
boost::shared_ptr< const WGridRegular3DTemplate > ConstSPtr
Convenience typedef for a boost::shared_ptr< const WGridRegular3DTemplate >.
void setGrid(WGridRegular3D::ConstSPtr grid)
Updates the node to use the new specified grid.
WSharedObject< WGridRegular3D::ConstSPtr > m_grid
The actual grid which should be represented by this node.
osg::ref_ptr< osg::Geode > m_boundaryGeode
The geometry for the boundary.
void setGridColor(const WColor &color)
Sets the color of the rendered grid.
const WColor & getBBoxColor() const
The currently set color used for rendering the bbox.
bool m_showBBox
True if the bbox should be rendered.