VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions
makVrv::DtWindowLineInstance Class Referenceabstract

Interface for a DtWindowLineInstance - an attachable model instance that draws a 2D line. More...

Inheritance diagram for makVrv::DtWindowLineInstance:
Inheritance graph
[legend]

Public Member Functions

virtual ~DtWindowLineInstance ()
 DTOR. More...
 
virtual void setVertex (unsigned int vertex, double x, double y)=0
 Set (or add) the specified vertex at <x,y> More...
 
virtual void removeVertex (unsigned int vertex)=0
 Remove the specified vertex. More...
 
virtual void setColor (float r, float g, float b, float a)=0
 Set the entire line color. More...
 
virtual void setStipplePattern (unsigned int stipplePattern)=0
 Set the entire line stipple pattern. More...
 
virtual void setWidth (unsigned int width)=0
 Set the entire line width. More...
 
virtual void setStyleSegments (const std::vector< double > &segmentPercentages)=0
 Set the percentage lengths of the segments; creates and removes segments as necessary. More...
 
virtual void setSegmentColor (unsigned int index, float r, float g, float b, float a)=0
 Set the color of a segment. More...
 
virtual void setSegmentStartColor (unsigned int index, float r, float g, float b, float a)=0
 Set the color of the firt vertex in a segment. More...
 
virtual void setSegmentEndColor (unsigned int index, float r, float g, float b, float a)=0
 Set the color of the second vertex in a segment. More...
 
virtual void setSegmentLightningStyle (unsigned int index, bool enableLightningStyle)=0
 Set a segment's lightning style (whether or not it looks like a lighting bolt) More...
 
virtual void setSegmentStartArrow (unsigned int index, bool enableStartArrow)=0
 Turn on or off a segment's start arrow. More...
 
virtual void setSegmentEndArrow (unsigned int index, bool enableEndArrow)=0
 Turn on or off a segment's end arrow. More...
 
virtual void setSegmentStipplePattern (unsigned int index, unsigned int stippleScale, unsigned int stipplePattern)=0
 Set the stipple pattern for a segment according to the OpenGL line stipple feature. More...
 
virtual void setSegmentWidth (unsigned int index, unsigned int width)=0
 Set the width of a segment in pixels. More...
 
virtual void update ()=0
 Called on signal_postUpdate; time to update render data. More...
 
virtual void setTransform (DtMatrix3< double > transform)=0
 Sets the line's transform matrix, used to update the position and clockwise rotation of the vertices. More...
 
virtual void setClipBox (DtVector2< double > bottomLeftLocation, DtVector2< double > topRightLocation)=0
 Set this objects clip box bounds. More...
 
virtual void setGroup (int groupId)=0
 Set this object's group ID for z order. More...
 
virtual void setChannelOverlay (std::string displayName, std::string windowName, std::string channelName)=0
 By default window objects are placed on the RemoteDisplayWorldOverlay, which is rendered on all channels that have the "showRemoteGraphics" channel keyword. More...
 
- Public Member Functions inherited from makVrv::DtSetVisibilityInterface
virtual ~DtSetVisibilityInterface ()
 
virtual void setVisible (bool visible)=0
 Set the visibility. More...
 

Detailed Description

Interface for a DtWindowLineInstance - an attachable model instance that draws a 2D line.

A 2D line has a start position and end position, and is made up of segments. Each segment consists of a percentage, color, style, arrow style, stipple pattern, and thickness. Each segment is drawn as the specified percentage of length of the entire line, starting from the end of the previous segment.

Constructor & Destructor Documentation

virtual makVrv::DtWindowLineInstance::~DtWindowLineInstance ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtWindowLineInstance::setVertex ( unsigned int  vertex,
double  x,
double  y 
)
pure virtual

Set (or add) the specified vertex at <x,y>

Implemented in makVrv::DtOsgWindowLineInstance.

virtual void makVrv::DtWindowLineInstance::removeVertex ( unsigned int  vertex)
pure virtual

Remove the specified vertex.

Implemented in makVrv::DtOsgWindowLineInstance.

virtual void makVrv::DtWindowLineInstance::setColor ( float  r,
float  g,
float  b,
float  a 
)
pure virtual

Set the entire line color.

Implemented in makVrv::DtOsgWindowLineInstance.

virtual void makVrv::DtWindowLineInstance::setStipplePattern ( unsigned int  stipplePattern)
pure virtual

Set the entire line stipple pattern.

Implemented in makVrv::DtOsgWindowLineInstance.

virtual void makVrv::DtWindowLineInstance::setWidth ( unsigned int  width)
pure virtual

Set the entire line width.

Implemented in makVrv::DtOsgWindowLineInstance.

virtual void makVrv::DtWindowLineInstance::setStyleSegments ( const std::vector< double > &  segmentPercentages)
pure virtual

Set the percentage lengths of the segments; creates and removes segments as necessary.

Implemented in makVrv::DtOsgWindowLineInstance.

virtual void makVrv::DtWindowLineInstance::setSegmentColor ( unsigned int  index,
float  r,
float  g,
float  b,
float  a 
)
pure virtual

Set the color of a segment.

Implemented in makVrv::DtOsgWindowLineInstance.

virtual void makVrv::DtWindowLineInstance::setSegmentStartColor ( unsigned int  index,
float  r,
float  g,
float  b,
float  a 
)
pure virtual

Set the color of the firt vertex in a segment.

This can be used for color blending between vertices.

Implemented in makVrv::DtOsgWindowLineInstance.

virtual void makVrv::DtWindowLineInstance::setSegmentEndColor ( unsigned int  index,
float  r,
float  g,
float  b,
float  a 
)
pure virtual

Set the color of the second vertex in a segment.

This can be used for color blending between vertices.

Implemented in makVrv::DtOsgWindowLineInstance.

virtual void makVrv::DtWindowLineInstance::setSegmentLightningStyle ( unsigned int  index,
bool  enableLightningStyle 
)
pure virtual

Set a segment's lightning style (whether or not it looks like a lighting bolt)

Implemented in makVrv::DtOsgWindowLineInstance.

virtual void makVrv::DtWindowLineInstance::setSegmentStartArrow ( unsigned int  index,
bool  enableStartArrow 
)
pure virtual

Turn on or off a segment's start arrow.

Implemented in makVrv::DtOsgWindowLineInstance.

virtual void makVrv::DtWindowLineInstance::setSegmentEndArrow ( unsigned int  index,
bool  enableEndArrow 
)
pure virtual

Turn on or off a segment's end arrow.

Implemented in makVrv::DtOsgWindowLineInstance.

virtual void makVrv::DtWindowLineInstance::setSegmentStipplePattern ( unsigned int  index,
unsigned int  stippleScale,
unsigned int  stipplePattern 
)
pure virtual

Set the stipple pattern for a segment according to the OpenGL line stipple feature.

Implemented in makVrv::DtOsgWindowLineInstance.

virtual void makVrv::DtWindowLineInstance::setSegmentWidth ( unsigned int  index,
unsigned int  width 
)
pure virtual

Set the width of a segment in pixels.

Implemented in makVrv::DtOsgWindowLineInstance.

virtual void makVrv::DtWindowLineInstance::update ( )
pure virtual

Called on signal_postUpdate; time to update render data.

Implemented in makVrv::DtOsgWindowLineInstance.

virtual void makVrv::DtWindowLineInstance::setTransform ( DtMatrix3< double transform)
pure virtual

Sets the line's transform matrix, used to update the position and clockwise rotation of the vertices.

Implemented in makVrv::DtOsgWindowLineInstance.

virtual void makVrv::DtWindowLineInstance::setClipBox ( DtVector2< double bottomLeftLocation,
DtVector2< double topRightLocation 
)
pure virtual

Set this objects clip box bounds.

Implemented in makVrv::DtOsgWindowLineInstance.

virtual void makVrv::DtWindowLineInstance::setGroup ( int  groupId)
pure virtual

Set this object's group ID for z order.

The higher the Z order the "closer" the element will be drawn to the eye point

Implemented in makVrv::DtOsgWindowLineInstance.

virtual void makVrv::DtWindowLineInstance::setChannelOverlay ( std::string  displayName,
std::string  windowName,
std::string  channelName 
)
pure virtual

By default window objects are placed on the RemoteDisplayWorldOverlay, which is rendered on all channels that have the "showRemoteGraphics" channel keyword.

If a user wishes to draw a specific window object on a specific channel, use this method. This does not work for remote displays.

Implemented in makVrv::DtOsgWindowLineInstance, and makVrv::DtOsgWindowLineGroupInstance.


The documentation for this class was generated from the following file:

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)