Changeset 3171
- Timestamp:
- Sep 18, 2012, 7:47:22 PM (12 years ago)
- Location:
- trunk/packages/vizservers/vtkvis
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/vtkvis/RpGroup.cpp
r3154 r3171 67 67 _nodes.erase(itr); 68 68 } 69 70 /** 71 * \brief Set a group of world coordinate planes to clip rendering 72 * 73 * Passing NULL for planes will remove all cliping planes 74 */ 75 void Group::setClippingPlanes(vtkPlaneCollection *planes) 76 { 77 for (NodeHashmap::iterator itr = _nodes.begin(); 78 itr != _nodes.end(); ++itr) { 79 itr->second->setClippingPlanes(planes); 80 } 81 } -
trunk/packages/vizservers/vtkvis/RpGroup.h
r3154 r3171 26 26 typedef std::tr1::unordered_map<NodeId, VtkGraphicsObject *> NodeHashmap; 27 27 28 Group( const NodeId& name);28 Group(); 29 29 virtual ~Group(); 30 30 … … 34 34 } 35 35 36 virtual void setDataSet(DataSet *dataSet, 37 Renderer *renderer) 38 { 39 assert(dataSet == NULL); 40 update(); 41 } 42 43 virtual void setClippingPlanes(vtkPlaneCollection *planes); 44 36 45 void addChild(const NodeId& name, VtkGraphicsObject *obj); 37 46 38 47 VtkGraphicsObject *getChild(const NodeId& name); 39 48 49 void getChildren(std::vector<VtkGraphicsObject *>& children) 50 { 51 for (NodeHashmap::iterator itr = _nodes.begin(); 52 itr != _nodes.end(); ++itr) { 53 children.push_back(itr->second); 54 } 55 } 56 40 57 void removeChild(const NodeId& name); 41 58 42 59 private: 43 Group();44 45 60 virtual void initProp(); 46 61
Note: See TracChangeset
for help on using the changeset viewer.