Privacy
An open-source, flexible 3D physical simulation framework
mars::graphics::HUDLines Class Reference

#include <HUDLines.h>

Public Member Functions

 HUDLines (osg::ref_ptr< osg::Group > group)
 
 HUDLines (void)
 
 ~HUDLines (void)
 
void setPos (double x, double y)
 
void setViewSize (double widht, double height)
 
void setBackgroundColor (double r, double g, double b, double a)
 
void setBorderColor (double r, double g, double b, double a)
 
void setBorderWidth (double border_width)
 
void setPadding (double left, double top, double right, double bottom)
 
void setPointSize (double size)
 
void setLines (std::vector< double > *_vertices, double color[4])
 
void resize (double _width, double _height)
 
void setRenderOrder (int val)
 
osg::Group * getNode (void)
 
void switchCullMask (void)
 
void xorCullMask (unsigned int mask)
 
- Public Member Functions inherited from mars::graphics::HUDElement
 HUDElement (void)
 
virtual ~HUDElement (void)
 
virtual void setID (unsigned long id)
 
virtual unsigned long getID (void)
 
virtual void setConfigPath (std::string path)
 

Private Attributes

osg::ref_ptr< osg::Group > parent
 
osg::ref_ptr< osg::MatrixTransform > scaleTransform
 
double view_width
 
double view_height
 
double background_color [4]
 
double border_color [4]
 
double border_width
 
unsigned int cull_mask
 
int render_order
 
bool visible
 
bool init
 
double pl
 
double pt
 
double pr
 
double pb
 
double posx
 
double posy
 
double point_size
 

Additional Inherited Members

- Static Public Attributes inherited from mars::graphics::HUDElement
static int elemCount = 1
 
- Protected Attributes inherited from mars::graphics::HUDElement
std::string config_path
 

Detailed Description

Definition at line 39 of file HUDLines.h.

Constructor & Destructor Documentation

◆ HUDLines() [1/2]

mars::graphics::HUDLines::HUDLines ( osg::ref_ptr< osg::Group >  group)

Definition at line 62 of file HUDLines.cpp.

◆ HUDLines() [2/2]

mars::graphics::HUDLines::HUDLines ( void  )

Definition at line 76 of file HUDLines.cpp.

◆ ~HUDLines()

mars::graphics::HUDLines::~HUDLines ( void  )

Definition at line 90 of file HUDLines.cpp.

Member Function Documentation

◆ getNode()

osg::Group * mars::graphics::HUDLines::getNode ( void  )
virtual

Implements mars::graphics::HUDElement.

Definition at line 287 of file HUDLines.cpp.

◆ resize()

void mars::graphics::HUDLines::resize ( double  _width,
double  _height 
)

Definition at line 294 of file HUDLines.cpp.

◆ setBackgroundColor()

void mars::graphics::HUDLines::setBackgroundColor ( double  r,
double  g,
double  b,
double  a 
)

Definition at line 103 of file HUDLines.cpp.

◆ setBorderColor()

void mars::graphics::HUDLines::setBorderColor ( double  r,
double  g,
double  b,
double  a 
)

Definition at line 110 of file HUDLines.cpp.

◆ setBorderWidth()

void mars::graphics::HUDLines::setBorderWidth ( double  border_width)

Definition at line 117 of file HUDLines.cpp.

◆ setLines()

void mars::graphics::HUDLines::setLines ( std::vector< double > *  _vertices,
double  color[4] 
)

Definition at line 129 of file HUDLines.cpp.

◆ setPadding()

void mars::graphics::HUDLines::setPadding ( double  left,
double  top,
double  right,
double  bottom 
)

Definition at line 121 of file HUDLines.cpp.

◆ setPointSize()

void mars::graphics::HUDLines::setPointSize ( double  size)
inline

Definition at line 52 of file HUDLines.h.

◆ setPos()

void mars::graphics::HUDLines::setPos ( double  x,
double  y 
)
virtual

Implements mars::graphics::HUDElement.

Definition at line 93 of file HUDLines.cpp.

◆ setRenderOrder()

void mars::graphics::HUDLines::setRenderOrder ( int  val)
inline

Definition at line 55 of file HUDLines.h.

◆ setViewSize()

void mars::graphics::HUDLines::setViewSize ( double  widht,
double  height 
)

Definition at line 98 of file HUDLines.cpp.

◆ switchCullMask()

void mars::graphics::HUDLines::switchCullMask ( void  )
virtual

Implements mars::graphics::HUDElement.

Definition at line 301 of file HUDLines.cpp.

◆ xorCullMask()

void mars::graphics::HUDLines::xorCullMask ( unsigned int  mask)
virtual

Implements mars::graphics::HUDElement.

Definition at line 312 of file HUDLines.cpp.

Member Data Documentation

◆ background_color

double mars::graphics::HUDLines::background_color[4]
private

Definition at line 65 of file HUDLines.h.

◆ border_color

double mars::graphics::HUDLines::border_color[4]
private

Definition at line 65 of file HUDLines.h.

◆ border_width

double mars::graphics::HUDLines::border_width
private

Definition at line 66 of file HUDLines.h.

◆ cull_mask

unsigned int mars::graphics::HUDLines::cull_mask
private

Definition at line 67 of file HUDLines.h.

◆ init

bool mars::graphics::HUDLines::init
private

Definition at line 69 of file HUDLines.h.

◆ parent

osg::ref_ptr<osg::Group> mars::graphics::HUDLines::parent
private

Definition at line 61 of file HUDLines.h.

◆ pb

double mars::graphics::HUDLines::pb
private

Definition at line 70 of file HUDLines.h.

◆ pl

double mars::graphics::HUDLines::pl
private

Definition at line 70 of file HUDLines.h.

◆ point_size

double mars::graphics::HUDLines::point_size
private

Definition at line 72 of file HUDLines.h.

◆ posx

double mars::graphics::HUDLines::posx
private

Definition at line 71 of file HUDLines.h.

◆ posy

double mars::graphics::HUDLines::posy
private

Definition at line 71 of file HUDLines.h.

◆ pr

double mars::graphics::HUDLines::pr
private

Definition at line 70 of file HUDLines.h.

◆ pt

double mars::graphics::HUDLines::pt
private

Definition at line 70 of file HUDLines.h.

◆ render_order

int mars::graphics::HUDLines::render_order
private

Definition at line 68 of file HUDLines.h.

◆ scaleTransform

osg::ref_ptr<osg::MatrixTransform> mars::graphics::HUDLines::scaleTransform
private

Definition at line 62 of file HUDLines.h.

◆ view_height

double mars::graphics::HUDLines::view_height
private

Definition at line 64 of file HUDLines.h.

◆ view_width

double mars::graphics::HUDLines::view_width
private

Definition at line 64 of file HUDLines.h.

◆ visible

bool mars::graphics::HUDLines::visible
private

Definition at line 69 of file HUDLines.h.


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