12 #ifndef IW_DAFF_SPHERE 13 #define IW_DAFF_SPHERE 19 class vtkSphereSource;
20 class vtkPolyDataMapper;
34 Sphere(
double dRadius,
int iPhiResolution,
int iThetaResolution);
40 double GetRadius()
const;
41 void SetRadius(
double dRadius);
43 int GetPhiResolution()
const;
44 void SetPhiResolution(
int iResolution);
46 int GetThetaResolution()
const;
47 void SetThetaResolution(
int iResolution);
53 void GetColor(
double& r,
double& g,
double& b);
56 void SetColor(
const double r,
const double g,
const double b);
59 double GetAlpha()
const;
62 void SetAlpha(
const double a);
65 void SetVisible(
bool bVisible);
68 bool IsVisible()
const;
71 vtkSmartPointer< vtkSphereSource > m_pSource;
72 vtkSmartPointer< vtkPolyDataMapper > m_pMapper;
73 vtkSmartPointer< vtkActor > m_pActor;
81 #endif // IW_DAFF_SPHERE
Simple sphere object node.
Base class for scene graph nodes.