Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields

osgAR::LabelPlacer Class Reference

places the labels for this object. More...

Inherits osgAR::RegionCGAL.

Inherited by osgAR::CenterLabelPlacer, osgAR::MaxDistLabelPlacer, and osgAR::RTBLLabelPlacer.


Public Types

enum  Location { INTERIOR = 0, EXTERIOR }

Public Member Functions

 LabelPlacer (const LabelPlacer &, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 META_Node (osgAR, LabelPlacer)
void setAnchored (bool val)
bool isAnchored (void)
void setDisplaying (bool val)
bool isDisplaying (void)
osgText::Text * getAnchoredText (void)
osgText::Text * getUnanchoredText (void)
const enum Location getLocation () const
void setLocation (enum Location newLocation)
void addText (osgText::Text *anchoredText, osgText::Text *unanchoredText, enum Location)
 sets both text values and the location.

void addText (osgText::Text *anchoredText, enum Location)
 sets the anchored text and the location.

void augment (osgView::SpaceManager *, const osgExtension::MatrixEstimate &, const osg::Vec3Array *, osg::NodePath &)
 Creates the augmentations.

void setPlacerCallback (PlacerCallback *placerCallback)
PlacerCallbackgetPlacerCallback ()
const PlacerCallbackgetPlacerCallback () const

Protected Attributes

osg::ref_ptr< PlacerCallback_placerCallback


Detailed Description

This is a pure virtual class. Subclasses of this class need to implement placerImplementation.


Constructor & Destructor Documentation

LabelPlacer::LabelPlacer const LabelPlacer ,
const osg::CopyOp &  copyop = osg::CopyOp::SHALLOW_COPY
 

Copy constructor using CopyOp to manage deep vs shallow copy.


Member Function Documentation

void LabelPlacer::augment osgView::SpaceManager spaceManager,
const osgExtension::MatrixEstimate MVPW,
const osg::Vec3Array *  vertices,
osg::NodePath &  path
 

place the labels for this object. this function calls placerImplementation for the actual computation.

Parameters:
spaceManager a pointer to the space manager
MVPW the matrix estimate for this node
vertices list of vertices of the object
path the path on the scene graph


The documentation for this class was generated from the following files:
Generated on Wed Nov 17 12:22:38 2004 for osgAR by doxygen 1.3.7