60 #ifndef ACG_COORDFRAMENODE_HH
61 #define ACG_COORDFRAMENODE_HH
67 #include "MaterialNode.hh"
75 namespace SceneGraph {
94 const std::string& _name=
"<CoordFrameNode>" );
105 void boundingBox(
Vec3d& _bbMin,
Vec3d& _bbMax);
111 void update_bounding_box();
113 void set_bounding_box(
const Vec3f& _bb_min,
const Vec3f& _bb_max);
121 const std::vector<float>&
x_planes()
const {
return x_planes_; }
123 const std::vector<float>&
y_planes()
const {
return y_planes_; }
125 const std::vector<float>&
z_planes()
const {
return z_planes_; }
129 void set_x_planes(
const std::vector<float>& _planes) { x_planes_ = _planes; }
131 void set_y_planes(
const std::vector<float>& _planes) { y_planes_ = _planes; }
133 void set_z_planes(
const std::vector<float>& _planes) { z_planes_ = _planes; }
146 x_planes_.erase(std::find(x_planes_.begin(), x_planes_.end(), _x));
150 y_planes_.erase(std::find(y_planes_.begin(), y_planes_.end(), _y));
154 z_planes_.erase(std::find(z_planes_.begin(), z_planes_.end(), _z));
170 Vec3d bb_min_, bb_max_;
173 std::vector<float> x_planes_, y_planes_, z_planes_;
181 #endif // ACG_COORDFRAMENODE_HH defined
const std::vector< float > & x_planes() const
get x-plane container
void set_z_planes(const std::vector< float > &_planes)
set z-plane container
void add_z_plane(float _z)
add (z == _z)-plane
Namespace providing different geometric functions concerning angles.
const Vec3d & bb_max() const
get bounding box
const std::vector< float > & z_planes() const
get z-plane container
void set_x_planes(const std::vector< float > &_planes)
set x-plane container
void add_y_plane(float _y)
add (y == _y)-plane
void set_y_planes(const std::vector< float > &_planes)
set y-plane container
void add_x_plane(float _x)
add (x == _x)-plane
const Vec3d & bb_min() const
get bounding box
~CoordFrameNode()
Destructor.
void del_y_plane(float _y)
del (y == _y)-plane
void del_x_plane(float _x)
del (x == _x)-plane
void del_z_plane(float _z)
del (z == _z)-plane
const std::vector< float > & y_planes() const
get y-plane container