ModelInterface Class Reference

#include <ModelInterface.h>

Inherited by OpenSGModel.

List of all members.


Public Member Functions

 ModelInterface ()
virtual ~ModelInterface ()
virtual ModelInterfaceclone ()=0
virtual void setDeepCloneMode (bool deepClone)
virtual bool getDeepCloneMode ()
virtual SceneGraphNodeInterfacegetSubNodeByName (std::string nodeName)=0
virtual void setModelTransformation (TransformationData &trans)=0
virtual TransformationData getModelTransformation ()=0
virtual AABB getAABB ()=0
virtual void setVisible (bool visibility)=0
virtual bool isVisible ()=0

Protected Attributes

bool deepClone

Detailed Description

ModelInterface is an abstract class for a visual representation of all kinds of objects (entities, tiles, avatars ...)

Constructor & Destructor Documentation

ModelInterface::ModelInterface (  ) 

ModelInterface::~ModelInterface (  )  [virtual]


Member Function Documentation

virtual ModelInterface* ModelInterface::clone (  )  [pure virtual]

Produces a new instance of the same derived ModelInterface-class which should have identical visual properties. Wheter the datastructures for rendering will be copied or just referenced by the new instance depends on the current clone mode. The newly created instance will have the same model transformation

Returns:
pointer to the newly created instance

Implemented in OpenSGModel.

virtual AABB ModelInterface::getAABB (  )  [pure virtual]

Returns the AABB of the model in "model space" (but including the model transformation).

Returns:
the AABB of the model

Implemented in OpenSGModel.

bool ModelInterface::getDeepCloneMode (  )  [virtual]

Returns the current clone mode.

virtual TransformationData ModelInterface::getModelTransformation (  )  [pure virtual]

Getter for the model transformation.

Implemented in OpenSGModel.

virtual SceneGraphNodeInterface* ModelInterface::getSubNodeByName ( std::string  nodeName  )  [pure virtual]

Todo:
: document

Implemented in OpenSGModel.

virtual bool ModelInterface::isVisible (  )  [pure virtual]

Returns if the model will be rendered or not

Returns:
visibility status of model

Implemented in OpenSGModel.

void ModelInterface::setDeepCloneMode ( bool  deepClone  )  [virtual]

Sets the clone mode for instances created via clone().

Parameters:
deepClone if true clone() produces an deep copy of this otherwise both instances will share the same datastructures for visualization ("shallow copy") The default clone mode is the "shallow copy" clone mode.

virtual void ModelInterface::setModelTransformation ( TransformationData trans  )  [pure virtual]

Sets the model transformation which is applied on the model before any other transformations. The main purpose of the model transformation is to adjust models in such a way that they fit to the rest of models already in the world

Implemented in OpenSGModel.

virtual void ModelInterface::setVisible ( bool  visibility  )  [pure virtual]

Defines whether the model should be rendered or not

Parameters:
visibility visibility state

Implemented in OpenSGModel.


Member Data Documentation

bool ModelInterface::deepClone [protected]


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

Generated on Wed Oct 20 16:11:58 2010 for inVRs by doxygen 1.5.8