60 #ifndef ACG_CLIPPING_NODE_HH
61 #define ACG_CLIPPING_NODE_HH
66 #include "BaseNode.hh"
73 namespace SceneGraph {
92 const std::string& _name =
"<ClippingNode>" )
107 offset_plane0_[0] = 0.0;
108 offset_plane0_[1] = 0.0;
109 offset_plane0_[2] = 0.0;
110 offset_plane0_[3] = 0.0;
112 offset_plane1_[0] = 0.0;
113 offset_plane1_[1] = 0.0;
114 offset_plane1_[2] = 0.0;
115 offset_plane1_[3] = 0.0;
132 void set_plane(
const Vec3f& _position,
const Vec3f& _normal,
float _eps=0.0);
144 void set_offset(
float _dist);
149 Vec3f position_, normal_;
150 GLdouble plane0_[4], plane1_[4], offset_plane0_[4], offset_plane1_[4];
151 float slice_width_, offset_;
159 #endif // ACG_CLIPPING_NODE_HH defined
Namespace providing different geometric functions concerning angles.
virtual ~ClippingNode()
Destructor.
ClippingNode(BaseNode *_parent=0, const std::string &_name="<ClippingNode>")
Default constructor. Applies all properties.
const Vec3f & position() const
get position
const Vec3f & normal() const
get normal
float slice_width() const
get slice width