20 #include <vtkSmartPointer.h> 26 class QtDAFFVizTestWindow;
103 bool HasParentNode()
const;
115 bool HasChildNodes()
const;
141 void GetChildNodes(std::vector<const DAFFViz::SGNode*>& vpChildren)
const;
147 void GetChildNodes( std::vector<DAFFViz::SGNode*>& vpChildren );
170 bool AddChildNodes(
const std::vector<DAFFViz::SGNode*>& vpChildren);
189 bool RemoveChildNodes(
const std::vector<DAFFViz::SGNode*>& vpChildren);
202 void GetPosition(
double& x,
double& y,
double& z)
const;
212 void SetPosition(
double x,
double y,
double z);
224 void GetOrientation(
double& dRotXDeg,
double& dRotYDeg,
double& dRotZDeg)
const;
236 void SetOrientation(
double dRotXDeg,
double dRotYDeg,
double dRotZDeg);
248 void SetOrientationYPR(
double dYawDeg,
double dPitchDeg,
double dRollDeg);
261 void GetOrientationYPR(
double& dYawDeg,
double& dPitchDeg,
double& dRollDeg );
274 void SetOrientationVU(
double vx,
double vy,
double vz,
275 double ux,
double uy,
double uz);
288 void GetOrientationVU(
double& vx,
double& vy,
double& vz,
289 double& ux,
double& uy,
double& uz);
299 void GetScale(
double& sx,
double& sy,
double& sz)
const;
309 void SetScale(
double sx,
double sy,
double sz);
320 virtual void SetVisible(
bool bVisible);
331 virtual bool IsVisible()
const;
343 void AddActor( vtkSmartPointer< vtkActor > pActor );
351 void RemoveActor( vtkSmartPointer< vtkActor > pActor );
359 void AddAssembly( vtkSmartPointer< vtkAssembly > pAssembly );
367 void RemoveAssembly( vtkSmartPointer< vtkAssembly > pAssembly );
376 virtual void OnSetFollowerCamera( vtkSmartPointer< vtkCamera > pCamera );
380 std::vector< DAFFViz::SGNode* > m_vpChildNodes;
381 vtkSmartPointer< vtkAssembly > m_pNodeAssembly;
391 inline SGNode& operator=(
const SGNode& ) {
return *
this; };
397 vtkSmartPointer< vtkAssembly > GetNodeAssembly();
400 friend class VTKDAFFVizWindow;
401 friend class QDAFFVTKWidget;
402 friend class QtDAFFVizTestWindow;
407 #endif // IW_DAFF_NODE
Base class for scene graph nodes.