59 #define CAMERAOBJECT_C
145 std::cerr <<
"Error when creating Camera Object! materialNode is NULL!" << std::endl;
170 std::string nodename = std::string(
"CameraNode for Camera " + _name.toUtf8() );
194 output +=
"========================================================================\n";
198 output +=
"Object Contains Camera : ";
207 output +=
"========================================================================\n";
bool picked(uint _node_idx)
detect if the node has been picked
std::string name() const
Returns: name of node (needs not be unique)
void setName(QString _name)
Set the name of the Object.
virtual QString getObjectinfo()
Get all Info for the Object as a string.
QString name() const
return the name of the object. The name defaults to NONAME if unset.
void deleteData()
Delete all data attached to this object ( calls delete on each object )
virtual void update(UpdateType _type=UPDATE_ALL)
This function is called to update the object.
virtual void setName(QString _name)
path to the file from which the object is loaded ( defaults to "." )
MaterialNode * materialNode()
get a pointer to the materialnode
virtual ~CameraObject()
destructor
virtual void update(UpdateType _type=UPDATE_ALL)
Update the whole Object (Selection,Topology,...)
DataType dataType() const
ACG::SceneGraph::CameraNode CameraNode
Simple Name for CameraNode.
CameraNode * cameraNode_
Get the scenegraph Node.
void enablePicking(bool _enable)
Enable or disable picking for this Object.
CameraNode * cameraNode()
Get the scenegraph Node.
CameraObject()
constructor
virtual void cleanup()
Reset current object, including all related nodes.
void setDataType(DataType _type)
void enablePicking(bool _enable)
bool pickingEnabled()
Check if picking is enabled for this Object.
QString getObjectinfo()
Get all Info for the Object as a string.
virtual void init(CameraNode *_plane=0)
Initialize current object, including all related nodes.