Developer Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SplatCloudObject Class Reference
Inheritance diagram for SplatCloudObject:
BaseObjectData BaseObject

Public Member Functions

 SplatCloudObject ()
 Constructor.
 SplatCloudObject (const SplatCloudObject &_object)
 Copy constructor.
virtual ~SplatCloudObject ()
 Destructor.
virtual void cleanup ()
 Reset current Object, including all related Nodes.
BaseObjectcopy ()
void reloadShaders ()
 Reload standard and picking Shaders from file.
void enableBackfaceCulling (bool _enable)
 Enable or disable backface culling for all Shaders.
void setPointsizeScale (float _scale)
 Set the scaling factor for pointsizes for all Shaders.
bool isBackfaceCullingEnabled () const
float pointsizeScale () const
void update (UpdateType _type=UPDATE_ALL)
 Called by the core if the object has to be updated.
Name and Path handling
void setName (QString _name)
 Set the name of the Object.
Object Information
QString getObjectinfo ()
 Get all Info for the Object as a string.
Picking
bool picked (uint _node_idx)
 Detect if the node has been picked.
void enablePicking (bool _enable)
 Enable or disable picking for this Object.
bool pickingEnabled ()
 Check if picking is enabled for this Object.
- Public Member Functions inherited from BaseObjectData
 BaseObjectData (const BaseObjectData &_object)
 copy constructor
 BaseObjectData ()
 constructor
virtual ~BaseObjectData ()
 destructor
virtual void show ()
 Sets the whole Scenegraph subtree of this node to visible.
virtual void hide ()
 Sets the whole Scenegraph subtree of this node to invisible.
virtual bool visible ()
 return visiblity
virtual void visible (bool _visible)
 Sets visiblity of the whole Scenegraph subtree of this node.
SeparatorNodebaseNode ()
virtual bool hasNode (BaseNode *_node)
 Check if the given node is owned by this object.
virtual BaseNodeprimaryNode ()
QtTranslationManipulatorNodemanipulatorNode ()
MaterialNodematerialNode ()
 get a pointer to the materialnode
BoundingBoxNodeboundingBoxNode ()
 get a pointer to the bounding box node
StencilRefNodestencilRefNode ()
 get a pointer to the stencil reference node
bool manipPlaced ()
 Check if the manipulator has been placed.
void manipPlaced (bool _placed)
 set the manipulator place status
void getBoundingBox (ACG::Vec3d &bbmin, ACG::Vec3d &bbmax)
 get the bounding box of the object
void setObjectDrawMode (const ACG::SceneGraph::DrawModes::DrawMode _mode, bool _force=false)
 Set the draw mode for the object.
template<typename NodeT >
bool addAdditionalNode (NodeT *_node, QString _pluginName, QString _nodeName, int _id=0)
 add an additional node to the object
bool hasAdditionalNode (QString _pluginName, QString _nodeName, int _id=0)
 check if an object has the additional node
template<typename NodeT >
bool getAdditionalNode (NodeT *&_node, QString _pluginName, QString _nodeName, int _id=0)
 get an addition node from the object
template<typename NodeT >
bool removeAdditionalNode (NodeT *&_node, QString _pluginName, QString _nodeName, int _id=0)
 remove an additional node from the object
- Public Member Functions inherited from BaseObject
 BaseObject (const BaseObject &_object)
 BaseObject (BaseObject *_parent=0)
virtual void printObjectInfo ()
 Print all information about the object.
void dumpTree ()
 Debugging function, writing the subtree to output.
int row () const
 get the row of this item from the parent
BaseObjectparent ()
 Get the parent item ( 0 if rootitem )
void setParent (BaseObject *_parent)
 Set the parent pointer.
BaseObjectchildExists (int _objectId)
 Check if the element exists in the subtree of this element.
BaseObjectchildExists (QString _name)
 Check if the element exists in the subtree of this element.
void appendChild (BaseObject *child)
 add a child to this node
BaseObjectchild (int row)
 return a child
int childCount () const
 get the number of children
void removeChild (BaseObject *_item)
 Remove a child from this object.
QList< BaseObject * > getLeafs ()
 get all leafes of the tree below this object ( These will be all visible objects )
void deleteSubtree ()
 delete the whole subtree below this item ( The item itself is not touched )
int group ()
bool isGroup ()
 Check if object is a group.
bool isInGroup (int _id)
bool isInGroup (QString _name)
std::vector< int > getGroupIds ()
QStringList getGroupNames ()
void setObjectData (QString _dataName, PerObjectData *_data)
void clearObjectData (QString _dataName)
 Clear the object data pointer ( this will not delete the object!! )
bool hasObjectData (QString _dataName)
 Checks if object data with given name is available.
PerObjectDataobjectData (QString _dataName)
 Returns the object data pointer.
void deleteData ()
 Delete all data attached to this object ( calls delete on each object )
int id ()
int persistentId ()
void persistentId (int _id)
bool dataType (DataType _type)
DataType dataType ()
void setDataType (DataType _type)
bool target ()
void target (bool _target)
bool source ()
void source (bool _source)
bool flag (QString _flag)
void setFlag (QString _flag, bool _set)
QStringList flags ()
BaseObjectlast ()
BaseObjectnext ()
int level ()
void setFromFileName (const QString &_filename)
QString path ()
 return the path to the object ( defaults to "." if unset )
void setPath (const QString &_path)
 set the path to the object.
QString name ()
 return the name of the object. The name defaults to NONAME if unset.
QString filename ()
 return the filename of the object
void setFileName (const QString &_filename)
 set the filename for this object
QMap< QString, PerObjectData * > & getPerObjectDataMap ()
 get reference to map of all perObject Datas

Protected Member Functions

virtual void init (const SplatCloud *_splatCloud=0)
 Initialise current Object, including all related Nodes.

Private Attributes

bool backfaceCullingEnabled_
float pointsizeScale_

Content

SplatCloudsplatCloud_
 Get SplatCloud.
SplatCloudsplatCloud ()
 Get SplatCloud.
const SplatCloudsplatCloud () const
 Get SplatCloud.

Visualization

ShaderNodeshaderNode_
 Get Shader's scenegraph Node.
SplatCloudNodesplatCloudNode_
 Get Shader's scenegraph Node.
ShaderNodeshaderNode ()
 Get Shader's scenegraph Node.
const ShaderNodeshaderNode () const
 Get Shader's scenegraph Node.
SplatCloudNodesplatCloudNode ()
 Get SplatCloud's scenegraph Node.
const SplatCloudNodesplatCloudNode () const
 Get Shader's scenegraph Node.

Additional Inherited Members

- Signals inherited from BaseObject
void objectSelectionChanged (int _objectId)
void visibilityChanged (int _objectId)
void objectPropertiesChanged (int _objectId)
- Protected Attributes inherited from BaseObject
bool visible_

Detailed Description

Definition at line 75 of file SplatCloudObject.hh.

Constructor & Destructor Documentation

SplatCloudObject::SplatCloudObject ( )

Constructor.

Constructor for SplatCloud Objects. This object class gets a Separator Node giving the root node to which it should be connected. The SplatCloud is generated internally and all nodes for visualization will be added below the scenegraph node.
You dont need to create an object of this type manually. Use PluginFunctions::addSplatCloud instead. ( see Types.hh::DataType )

Definition at line 79 of file SplatCloudObject.cc.

SplatCloudObject::SplatCloudObject ( const SplatCloudObject _object)

Copy constructor.

Create a copy of this Object

Copy Constructor - generates a copy of the given object

Definition at line 105 of file SplatCloudObject.cc.

SplatCloudObject::~SplatCloudObject ( )
virtual

Destructor.

Destructor for SplatCloud Objects. The destructor deletes the Line and all Scenegraph nodes associated with the SplatCloud or the object.

Definition at line 118 of file SplatCloudObject.cc.

Member Function Documentation

void SplatCloudObject::cleanup ( void  )
virtual

Reset current Object, including all related Nodes.

Cleanup Function for SplatCloud Objects. Deletes the contents of the whole object and calls SplatCloudObject::init afterwards.

Reimplemented from BaseObjectData.

Definition at line 143 of file SplatCloudObject.cc.

BaseObject * SplatCloudObject::copy ( )
virtual

Return a full copy of this Object ( all scenegraph Nodes will be created ) but the object will not be a part of the object tree

Generate a copy

Reimplemented from BaseObject.

Definition at line 160 of file SplatCloudObject.cc.

void SplatCloudObject::enableBackfaceCulling ( bool  _enable)

Enable or disable backface culling for all Shaders.

Enable or disable backface culling

Definition at line 264 of file SplatCloudObject.cc.

QString SplatCloudObject::getObjectinfo ( )
virtual

Get all Info for the Object as a string.

Returns a string containing all information about the current object. This also includes the information provided by BaseObjectData::getObjectinfo

Returns
String containing the object information

Reimplemented from BaseObject.

Definition at line 552 of file SplatCloudObject.cc.

void SplatCloudObject::init ( const SplatCloud _splatCloud = 0)
protectedvirtual

Initialise current Object, including all related Nodes.

This function initalizes the SplatCloud object. It creates the scenegraph nodes.

Definition at line 403 of file SplatCloudObject.cc.

bool SplatCloudObject::picked ( uint  _node_idx)
virtual

Detect if the node has been picked.

Given an node index from PluginFunctions::scenegraphPick this function can be used to check if the splatCloudNode of the object has been picked.

Parameters
_node_idxIndex of the picked splatcloud node
Returns
bool if the splatCloudNode of this object is the picking target.

Reimplemented from BaseObjectData.

Definition at line 625 of file SplatCloudObject.cc.

void SplatCloudObject::reloadShaders ( )

Reload standard and picking Shaders from file.

Shader uniforms has to be updated after this!

Reload shaders from file

Definition at line 173 of file SplatCloudObject.cc.

void SplatCloudObject::setName ( QString  _name)
virtual

Set the name of the Object.

Set the name of an object. All Scenegraph nodes are renamed too. It also calls BaseObjectData::setName.

Reimplemented from BaseObjectData.

Definition at line 528 of file SplatCloudObject.cc.

void SplatCloudObject::setPointsizeScale ( float  _scale)

Set the scaling factor for pointsizes for all Shaders.

Set scale for point sizes

Definition at line 343 of file SplatCloudObject.cc.

void SplatCloudObject::update ( UpdateType  _type = UPDATE_ALL)
virtual

Called by the core if the object has to be updated.

Update object and scenegraph nodes

Reimplemented from BaseObjectData.

Definition at line 443 of file SplatCloudObject.cc.


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