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

#include <OSGNodeStruct.h>

Public Member Functions

 OSGNodeStruct (GraphicsManager *g, const mars::interfaces::NodeData &node, bool isPreview, unsigned long id)
 Constructor creates a node in PREVIEW or CREATED state. More...
 
void edit (const mars::interfaces::NodeData &node, bool resize)
 Edit this node, works only in the PREVIEW state. More...
 
DrawObjectobject ()
 
unsigned int id () const
 
const std::string & name () const
 

Private Attributes

DrawObjectdrawObject_
 
unsigned long id_
 
std::string name_
 
bool isPreview_
 

Detailed Description

Definition at line 46 of file OSGNodeStruct.h.

Constructor & Destructor Documentation

◆ OSGNodeStruct()

mars::graphics::OSGNodeStruct::OSGNodeStruct ( GraphicsManager g,
const mars::interfaces::NodeData node,
bool  isPreview,
unsigned long  id 
)

Constructor creates a node in PREVIEW or CREATED state.

In PREVIEW state some ressources are not allocated (material,..)

Definition at line 55 of file OSGNodeStruct.cpp.

Member Function Documentation

◆ edit()

void mars::graphics::OSGNodeStruct::edit ( const mars::interfaces::NodeData node,
bool  resize 
)

Edit this node, works only in the PREVIEW state.

Definition at line 202 of file OSGNodeStruct.cpp.

◆ id()

unsigned int mars::graphics::OSGNodeStruct::id ( ) const
inline

Definition at line 63 of file OSGNodeStruct.h.

◆ name()

const std::string& mars::graphics::OSGNodeStruct::name ( ) const
inline

Definition at line 64 of file OSGNodeStruct.h.

◆ object()

DrawObject* mars::graphics::OSGNodeStruct::object ( )
inline

Definition at line 61 of file OSGNodeStruct.h.

Member Data Documentation

◆ drawObject_

DrawObject* mars::graphics::OSGNodeStruct::drawObject_
private

Definition at line 67 of file OSGNodeStruct.h.

◆ id_

unsigned long mars::graphics::OSGNodeStruct::id_
private

Definition at line 68 of file OSGNodeStruct.h.

◆ isPreview_

bool mars::graphics::OSGNodeStruct::isPreview_
private

Definition at line 70 of file OSGNodeStruct.h.

◆ name_

std::string mars::graphics::OSGNodeStruct::name_
private

Definition at line 69 of file OSGNodeStruct.h.


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