87 init( &_object.plane_ );
137 std::cerr <<
"Error when creating Plane Object! materialNode is NULL!" << std::endl;
163 std::string nodename = std::string(
"PlaneNode for Plane " + _name.toUtf8() );
187 output +=
"========================================================================\n";
191 output +=
"Object Contains Plane : ";
196 output +=
" Position ( " + QString::number(pos[0]) +
", " + QString::number(pos[1]) +
", " + QString::number(pos[2]) +
")";
197 output +=
" Normal ( " + QString::number(nor[0]) +
", " + QString::number(nor[1]) +
", " + QString::number(nor[2]) +
")";
199 output +=
"========================================================================\n";
216 Plane& PlaneObject::plane() {
220 void PlaneObject::plane(
Plane _plane) {
virtual QString getObjectinfo()
Get all Info for the Object as a string.
void setSize(double _xDirection, double _yDirection)
Set plane size.
PlaneNode * planeNode_
Get the scenegraph Node.
bool picked(uint _node_idx)
detect if the node has been picked
MaterialNode * materialNode()
get a pointer to the materialnode
void setDataType(DataType _type)
void deleteData()
Delete all data attached to this object ( calls delete on each object )
void update(UpdateType _type=UPDATE_ALL)
This function is called to update the object.
void enablePicking(bool _enable)
Enable or disable picking for this Object.
virtual void init(const Plane *_plane=0)
Initialize current object, including all related nodes.
PlaneNode * planeNode()
Get the scenegraph Node.
void setPlane(const ACG::Vec3d &_position, const ACG::Vec3d &_xDirection, const ACG::Vec3d &)
Set plane.
virtual void setName(QString _name)
path to the file from which the object is loaded ( defaults to "." )
std::string name() const
Returns: name of node (needs not be unique)
QString name() const
return the name of the object. The name defaults to NONAME if unset.
DLLEXPORT void setTypeIcon(DataType _id, QString _icon)
Set an Icon for a given DataType.
virtual void cleanup()
Reset current object, including all related nodes.
virtual ~PlaneObject()
destructor
void enablePicking(bool _enable)
ACG::Vec3d position()
get center position of the plane
void set_point_size(float _sz)
set point size (default: 1.0)
void update()
updates the plane before the next render call
ACG::Vec3d normal()
get current normal
QString getObjectinfo()
Get all Info for the Object as a string.
void setName(QString _name)
Set the name of the Object.
bool pickingEnabled()
Check if picking is enabled for this Object.
DataType dataType() const