87 typedef std::vector<ACG::Vec3d> PointVector;
88 typedef PointVector::iterator PointIter;
89 typedef PointVector::const_iterator ConstPointIter;
90 typedef std::vector<ACG::Vec4f> ColorVector;
91 typedef ColorVector::iterator ColorIter;
92 typedef ColorVector::const_iterator ConstColorIter;
97 const std::string & _name=
"<PointNode>" )
111 void boundingBox(
Vec3d& _bbMin,
Vec3d& _bbMax)
override;
120 void reserve(
unsigned int _np,
unsigned int _nn,
unsigned int _nc) {
121 points_.reserve(_np); normals_.reserve(_nn); colors_.reserve(_nc);
141 void clear() { clear_points(); clear_normals(); clear_colors(); }
144 const PointVector&
points()
const {
return points_; }
146 const PointVector&
normals()
const {
return normals_; }
148 const ColorVector&
colors()
const {
return colors_; }
154 PointVector points_, normals_;
158 std::vector<float> vbo_data_;
159 bool vbo_needs_update_ =
true;