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