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