Version: 6.3.1
Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Member Functions

VISU_SphereWidget Class Reference

#include <VISU_SphereWidget.hxx>

Inheritance diagram for VISU_SphereWidget:
Inheritance graph

Public Member Functions

 vtkTypeRevisionMacro (VISU_SphereWidget, VISU_ImplicitFunctionWidget)
void PrintSelf (ostream &os, vtkIndent indent)
virtual vtkImplicitFunctionImplicitFunction ()
virtual void SetEnabled (int)
virtual void PlaceWidget (vtkFloatingPointType bounds[6])
void SetThetaResolution (int r)
int GetThetaResolution ()
void SetPhiResolution (int r)
int GetPhiResolution ()
void SetRadius (vtkFloatingPointType r)
vtkFloatingPointType GetRadius ()
void SetCenter (vtkFloatingPointType x, vtkFloatingPointType y, vtkFloatingPointType z)
void SetCenter (vtkFloatingPointType x[3])
vtkFloatingPointType * GetCenter ()
void GetCenter (vtkFloatingPointType xyz[3])
void SetRatio (vtkFloatingPointType r)
vtkFloatingPointType GetRatio ()
void ChangeRadius (bool up)
void GetPolyData (vtkPolyData *pd)
void GetSphere (vtkSphere *sphere)
vtkProperty * GetSphereProperty ()
vtkProperty * GetSelectedSphereProperty ()
 vtkTypeRevisionMacro (VISU_ImplicitFunctionWidget, vtk3DWidget)

Static Public Member Functions

static VISU_SphereWidgetNew ()

Protected Types

enum  WidgetState {
  Start = 0, Moving, Scaling, Positioning,
  Outside
}

Protected Member Functions

 VISU_SphereWidget ()
 ~VISU_SphereWidget ()
void OnLeftButtonDown ()
void OnLeftButtonUp ()
void OnMiddleButtonDown ()
void OnMiddleButtonUp ()
void OnMouseMove ()
void HighlightSphere (int highlight)
void Translate (double *p1, double *p2)
void Scale (double *p1, double *p2, int X, int Y)
void CreateDefaultProperties ()

Static Protected Member Functions

static void ProcessEvents (vtkObject *object, unsigned long event, void *clientdata, void *calldata)

Protected Attributes

int myState
vtkActor * mySphereActor
vtkPolyDataMapper * mySphereMapper
vtkSphereSource * mySphereSource
vtkCellPicker * myPicker
vtkProperty * mySphereProperty
vtkProperty * mySelectedSphereProperty
vtkFloatingPointType myRmin
vtkSphere * mySphere
vtkImplicitSum * myImplicitSum
vtkFloatingPointType myRatio

Private Member Functions

 VISU_SphereWidget (const VISU_SphereWidget &)
void operator= (const VISU_SphereWidget &)

Member Enumeration Documentation

Enumerator:
Start 
Moving 
Scaling 
Positioning 
Outside 

Constructor & Destructor Documentation

VISU_SphereWidget::VISU_SphereWidget ( ) [protected]
VISU_SphereWidget::~VISU_SphereWidget ( ) [protected]
VISU_SphereWidget.VISU_SphereWidget ( const VISU_SphereWidget ) [private]

Member Function Documentation

static VISU_SphereWidget* VISU_SphereWidget.New ( ) [static]
VISU_SphereWidget.vtkTypeRevisionMacro ( VISU_SphereWidget  ,
VISU_ImplicitFunctionWidget   
)
void VISU_SphereWidget::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
vtkImplicitFunction * VISU_SphereWidget::ImplicitFunction ( ) [virtual]

Implements VISU_ImplicitFunctionWidget.

References myImplicitSum.

void VISU_SphereWidget::SetEnabled ( int  enabling) [virtual]

!!see what will be done

References mySphere, mySphereActor, mySphereProperty, and mySphereSource.

void VISU_SphereWidget::PlaceWidget ( vtkFloatingPointType  bounds[6]) [virtual]
void VISU_SphereWidget::SetThetaResolution ( int  r)

References mySphereSource.

int VISU_SphereWidget::GetThetaResolution ( )

References mySphereSource.

void VISU_SphereWidget::SetPhiResolution ( int  r)

References mySphereSource.

int VISU_SphereWidget::GetPhiResolution ( )

References mySphereSource.

void VISU_SphereWidget::SetRadius ( vtkFloatingPointType  r)

References myRmin, mySphere, and mySphereSource.

vtkFloatingPointType VISU_SphereWidget::GetRadius ( )

References mySphereSource.

void VISU_SphereWidget::SetCenter ( vtkFloatingPointType  x,
vtkFloatingPointType  y,
vtkFloatingPointType  z 
)
void VISU_SphereWidget::SetCenter ( vtkFloatingPointType  x[3])

References mySphere, and mySphereSource.

vtkFloatingPointType * VISU_SphereWidget::GetCenter ( )

References mySphereSource.

void VISU_SphereWidget::GetCenter ( vtkFloatingPointType  xyz[3])

References mySphereSource.

void VISU_SphereWidget.SetRatio ( vtkFloatingPointType  r)
vtkFloatingPointType VISU_SphereWidget.GetRatio ( )
void VISU_SphereWidget::ChangeRadius ( bool  up)

References GetRadius(), myRatio, and SetRadius().

void VISU_SphereWidget::GetPolyData ( vtkPolyData *  pd)

References mySphereSource.

void VISU_SphereWidget::GetSphere ( vtkSphere *  sphere)

References mySphereSource.

vtkProperty * VISU_SphereWidget::GetSphereProperty ( )

References mySphereProperty.

vtkProperty * VISU_SphereWidget::GetSelectedSphereProperty ( )
static void VISU_SphereWidget.ProcessEvents ( vtkObject object,
unsigned long  event,
void *  clientdata,
void *  calldata 
) [static, protected]
void VISU_SphereWidget::OnLeftButtonDown ( ) [protected]
void VISU_SphereWidget::OnLeftButtonUp ( ) [protected]

References HighlightSphere(), myState, Outside, and Start.

void VISU_SphereWidget::OnMiddleButtonDown ( ) [protected]
void VISU_SphereWidget::OnMiddleButtonUp ( ) [protected]

References HighlightSphere(), myState, Outside, and Start.

void VISU_SphereWidget::OnMouseMove ( ) [protected]
void VISU_SphereWidget::HighlightSphere ( int  highlight) [protected]
void VISU_SphereWidget::Translate ( double *  p1,
double *  p2 
) [protected]

References mySphere, and mySphereSource.

void VISU_SphereWidget::Scale ( double *  p1,
double *  p2,
int  X,
int  Y 
) [protected]
void VISU_SphereWidget::CreateDefaultProperties ( ) [protected]
void VISU_SphereWidget.operator= ( const VISU_SphereWidget ) [private]
VISU_ImplicitFunctionWidget.vtkTypeRevisionMacro ( VISU_ImplicitFunctionWidget  ,
vtk3DWidget   
) [inherited]

Field Documentation

int VISU_SphereWidget.myState [protected]
vtkActor* VISU_SphereWidget.mySphereActor [protected]
vtkPolyDataMapper* VISU_SphereWidget.mySphereMapper [protected]
vtkSphereSource* VISU_SphereWidget.mySphereSource [protected]
vtkCellPicker* VISU_SphereWidget.myPicker [protected]
vtkProperty* VISU_SphereWidget.mySphereProperty [protected]
vtkFloatingPointType VISU_SphereWidget.myRmin [protected]
vtkSphere* VISU_SphereWidget.mySphere [protected]
vtkImplicitSum* VISU_SphereWidget.myImplicitSum [protected]
vtkFloatingPointType VISU_SphereWidget.myRatio [protected]
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS