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