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_PlanesWidget Class Reference

#include <VISU_PlanesWidget.hxx>

Inheritance diagram for VISU_PlanesWidget:
Inheritance graph

Public Member Functions

 vtkTypeRevisionMacro (VISU_PlanesWidget, VISU_ImplicitFunctionWidget)
void PrintSelf (ostream &os, vtkIndent indent)
void SetDistance (const vtkFloatingPointType theDistance)
vtkFloatingPointType Distance () const
 vtkGetMacro (InitialLength, vtkFloatingPointType)
virtual vtkImplicitFunctionImplicitFunction ()
virtual void SetEnabled (int)
virtual void PlaceWidget (vtkFloatingPointType bounds[6])
void SetOrigin (vtkFloatingPointType x, vtkFloatingPointType y, vtkFloatingPointType z)
void SetOrigin (vtkFloatingPointType x[3])
vtkFloatingPointType * GetOrigin ()
void GetOrigin (vtkFloatingPointType xyz[3])
void SetNormal (vtkFloatingPointType x, vtkFloatingPointType y, vtkFloatingPointType z)
void SetNormal (vtkFloatingPointType x[3])
vtkFloatingPointType * GetNormal ()
void GetNormal (vtkFloatingPointType xyz[3])
void SetNormalToXAxis (int)
 vtkGetMacro (NormalToXAxis, int)
 vtkBooleanMacro (NormalToXAxis, int)
void SetNormalToYAxis (int)
 vtkGetMacro (NormalToYAxis, int)
 vtkBooleanMacro (NormalToYAxis, int)
void SetNormalToZAxis (int)
 vtkGetMacro (NormalToZAxis, int)
 vtkBooleanMacro (NormalToZAxis, int)
void SetDrawPlane (int plane)
int GetDrawPlane ()
 vtkSetMacro (OutlineTranslation, int)
 vtkGetMacro (OutlineTranslation, int)
 vtkBooleanMacro (OutlineTranslation, int)
void GetPolyData (vtkPolyData *pd)
void GetPlane (vtkPlane *plane)
void UpdatePlacement (void)
 vtkGetObjectMacro (NormalProperty, vtkProperty)
 vtkGetObjectMacro (SelectedNormalProperty, vtkProperty)
 vtkGetObjectMacro (PlaneProperty, vtkProperty)
 vtkGetObjectMacro (SelectedPlaneProperty, vtkProperty)
 vtkGetObjectMacro (OutlineProperty, vtkProperty)
 vtkGetObjectMacro (SelectedOutlineProperty, vtkProperty)
 vtkGetObjectMacro (EdgesProperty, vtkProperty)
void InitialPlaceWidget (vtkFloatingPointType bds[6])
 vtkTypeRevisionMacro (VISU_ImplicitFunctionWidget, vtk3DWidget)

Static Public Member Functions

static VISU_PlanesWidgetNew ()

Protected Types

enum  WidgetState {
  Start = 0, MovingPlane, MovingOutline, MovingOrigin,
  Scaling, Pushing, Rotating, Outside,
  ChangeDistance
}

Protected Member Functions

 VISU_PlanesWidget ()
 ~VISU_PlanesWidget ()
void OnLeftButtonDown ()
void OnLeftButtonUp ()
void OnMiddleButtonDown ()
void OnMiddleButtonUp ()
void OnRightButtonDown ()
void OnRightButtonUp ()
void OnMouseMove ()
void ConstrainOrigin (vtkFloatingPointType x[3])
void Rotate (int X, int Y, double *p1, double *p2, double *vpn)
void TranslatePlane (double *p1, double *p2)
void TranslateOutline (double *p1, double *p2)
void TranslateOrigin (double *p1, double *p2)
void Push (double *p1, double *p2)
void Scale (double *p1, double *p2, int X, int Y)
void PushDistance (double *p1, double *p2)
void CreateDefaultProperties ()
void GeneratePlane ()
void HighlightPlane (int highlight)
void HighlightNormal (int highlight)
void HighlightOutline (int highlight)
void UpdateRepresentation ()
void SetOriginInternal (vtkFloatingPointType x[3])

Static Protected Member Functions

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

Protected Attributes

int State
int NormalToXAxis
int NormalToYAxis
int NormalToZAxis
bool HandleMoveEvent
bool HandleLeftButtonEvent
bool HandleMiddleButtonEvent
bool HandleRightButtonEvent
vtkPlanemyPlane1
vtkPlanemyPlane2
vtkFloatingPointType myDistance
vtkImplicitBoolean * myImplicitFunction
vtkImageData * myBox
vtkOutlineFilter * myOutline
vtkPolyDataMapper * myOutlineMapper
vtkActor * myOutlineActor
int OutlineTranslation
vtkCutter * myCutter1
vtkPolyDataMapper * myCutMapper1
vtkActor * myCutActor1
vtkCutter * myCutter2
vtkPolyDataMapper * myCutMapper2
vtkActor * myCutActor2
vtkFeatureEdges * myEdges2
vtkPolyDataMapper * myEdgesMapper2
vtkActor * myEdgesActor2
int myDrawPlane
vtkFeatureEdges * myEdges1
vtkPolyDataMapper * myEdgesMapper1
vtkActor * myEdgesActor1
vtkConeSource * ConeSource
vtkPolyDataMapper * ConeMapper
VISU_UnScaledActorConeActor
vtkLineSource * LineSource
vtkPolyDataMapper * LineMapper
vtkActor * LineActor
vtkConeSource * ConeSource2
vtkPolyDataMapper * ConeMapper2
VISU_UnScaledActorConeActor2
vtkLineSource * LineSource2
vtkPolyDataMapper * LineMapper2
vtkActor * LineActor2
vtkSphereSource * Sphere
vtkPolyDataMapper * SphereMapper
VISU_UnScaledActorSphereActor
vtkCellPicker * Picker
vtkTransform * Transform
vtkProperty * NormalProperty
vtkProperty * SelectedNormalProperty
vtkProperty * PlaneProperty
vtkProperty * SelectedPlaneProperty
vtkProperty * OutlineProperty
vtkProperty * SelectedOutlineProperty
vtkProperty * EdgesProperty

Private Member Functions

 VISU_PlanesWidget (const VISU_PlanesWidget &)
void operator= (const VISU_ImplicitFunctionWidget &)

Member Enumeration Documentation

Enumerator:
Start 
MovingPlane 
MovingOutline 
MovingOrigin 
Scaling 
Pushing 
Rotating 
Outside 
ChangeDistance 

Constructor & Destructor Documentation

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

Member Function Documentation

static VISU_PlanesWidget* VISU_PlanesWidget.New ( ) [static]
VISU_PlanesWidget.vtkTypeRevisionMacro ( VISU_PlanesWidget  ,
VISU_ImplicitFunctionWidget   
)
void VISU_PlanesWidget::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
void VISU_PlanesWidget::SetDistance ( const vtkFloatingPointType  theDistance)
vtkFloatingPointType VISU_PlanesWidget::Distance ( ) const
VISU_PlanesWidget.vtkGetMacro ( InitialLength  ,
vtkFloatingPointType   
)
vtkImplicitFunction * VISU_PlanesWidget::ImplicitFunction ( ) [virtual]
void VISU_PlanesWidget::SetEnabled ( int  enabling) [virtual]
void VISU_PlanesWidget::PlaceWidget ( vtkFloatingPointType  bounds[6]) [virtual]
void VISU_PlanesWidget::SetOrigin ( vtkFloatingPointType  x,
vtkFloatingPointType  y,
vtkFloatingPointType  z 
)
void VISU_PlanesWidget::SetOrigin ( vtkFloatingPointType  x[3])
vtkFloatingPointType * VISU_PlanesWidget::GetOrigin ( )

References myPlane1.

void VISU_PlanesWidget::GetOrigin ( vtkFloatingPointType  xyz[3])

References myPlane1.

void VISU_PlanesWidget::SetNormal ( vtkFloatingPointType  x,
vtkFloatingPointType  y,
vtkFloatingPointType  z 
)
void VISU_PlanesWidget::SetNormal ( vtkFloatingPointType  x[3])

References SetNormal().

vtkFloatingPointType * VISU_PlanesWidget::GetNormal ( )

References myPlane1.

void VISU_PlanesWidget::GetNormal ( vtkFloatingPointType  xyz[3])

References myPlane1.

void VISU_PlanesWidget::SetNormalToXAxis ( int  var)

References NormalToXAxis.

VISU_PlanesWidget.vtkGetMacro ( NormalToXAxis  ,
int   
)
VISU_PlanesWidget.vtkBooleanMacro ( NormalToXAxis  ,
int   
)
void VISU_PlanesWidget::SetNormalToYAxis ( int  var)

References NormalToYAxis.

VISU_PlanesWidget.vtkGetMacro ( NormalToYAxis  ,
int   
)
VISU_PlanesWidget.vtkBooleanMacro ( NormalToYAxis  ,
int   
)
void VISU_PlanesWidget::SetNormalToZAxis ( int  var)

References NormalToZAxis.

VISU_PlanesWidget.vtkGetMacro ( NormalToZAxis  ,
int   
)
VISU_PlanesWidget.vtkBooleanMacro ( NormalToZAxis  ,
int   
)
void VISU_PlanesWidget::SetDrawPlane ( int  plane)

References myCutActor1, myCutActor2, and myDrawPlane.

int VISU_PlanesWidget.GetDrawPlane ( )
VISU_PlanesWidget.vtkSetMacro ( OutlineTranslation  ,
int   
)
VISU_PlanesWidget.vtkGetMacro ( OutlineTranslation  ,
int   
)
VISU_PlanesWidget.vtkBooleanMacro ( OutlineTranslation  ,
int   
)
void VISU_PlanesWidget::GetPolyData ( vtkPolyData *  pd)

References myCutter1.

void VISU_PlanesWidget::GetPlane ( vtkPlane plane)

References myPlane1.

void VISU_PlanesWidget::UpdatePlacement ( void  )

References myCutter1, myEdges1, and myOutline.

VISU_PlanesWidget.vtkGetObjectMacro ( NormalProperty  ,
vtkProperty   
)
VISU_PlanesWidget.vtkGetObjectMacro ( SelectedNormalProperty  ,
vtkProperty   
)
VISU_PlanesWidget.vtkGetObjectMacro ( PlaneProperty  ,
vtkProperty   
)
VISU_PlanesWidget.vtkGetObjectMacro ( SelectedPlaneProperty  ,
vtkProperty   
)
VISU_PlanesWidget.vtkGetObjectMacro ( OutlineProperty  ,
vtkProperty   
)
VISU_PlanesWidget.vtkGetObjectMacro ( SelectedOutlineProperty  ,
vtkProperty   
)
VISU_PlanesWidget.vtkGetObjectMacro ( EdgesProperty  ,
vtkProperty   
)
void VISU_PlanesWidget::InitialPlaceWidget ( vtkFloatingPointType  bds[6])
static void VISU_PlanesWidget.ProcessEvents ( vtkObject object,
unsigned long  event,
void *  clientdata,
void *  calldata 
) [static, protected]
void VISU_PlanesWidget::OnLeftButtonDown ( ) [protected]
void VISU_PlanesWidget::OnLeftButtonUp ( ) [protected]
void VISU_PlanesWidget::OnMiddleButtonDown ( ) [protected]
void VISU_PlanesWidget::OnMiddleButtonUp ( ) [protected]
void VISU_PlanesWidget::OnRightButtonDown ( ) [protected]
void VISU_PlanesWidget::OnRightButtonUp ( ) [protected]
void VISU_PlanesWidget::OnMouseMove ( ) [protected]
void VISU_PlanesWidget.ConstrainOrigin ( vtkFloatingPointType  x[3]) [protected]
void VISU_PlanesWidget::Rotate ( int  X,
int  Y,
double *  p1,
double *  p2,
double *  vpn 
) [protected]
void VISU_PlanesWidget::TranslatePlane ( double *  p1,
double *  p2 
) [protected]
void VISU_PlanesWidget::TranslateOutline ( double *  p1,
double *  p2 
) [protected]
void VISU_PlanesWidget::TranslateOrigin ( double *  p1,
double *  p2 
) [protected]
void VISU_PlanesWidget::Push ( double *  p1,
double *  p2 
) [protected]
void VISU_PlanesWidget.Scale ( double *  p1,
double *  p2,
int  X,
int  Y 
) [protected]
void VISU_PlanesWidget::PushDistance ( double *  p1,
double *  p2 
) [protected]
void VISU_PlanesWidget::CreateDefaultProperties ( ) [protected]
void VISU_PlanesWidget.GeneratePlane ( ) [protected]
void VISU_PlanesWidget::HighlightPlane ( int  highlight) [protected]
void VISU_PlanesWidget::HighlightNormal ( int  highlight) [protected]
void VISU_PlanesWidget::HighlightOutline ( int  highlight) [protected]
void VISU_PlanesWidget::UpdateRepresentation ( ) [protected]
void VISU_PlanesWidget::SetOriginInternal ( vtkFloatingPointType  x[3]) [protected]
void VISU_PlanesWidget.operator= ( const VISU_ImplicitFunctionWidget ) [private]

Reimplemented from VISU_ImplicitFunctionWidget.

VISU_ImplicitFunctionWidget.vtkTypeRevisionMacro ( VISU_ImplicitFunctionWidget  ,
vtk3DWidget   
) [inherited]

Field Documentation

int VISU_PlanesWidget.State [protected]
vtkFloatingPointType VISU_PlanesWidget.myDistance [protected]
vtkImplicitBoolean* VISU_PlanesWidget.myImplicitFunction [protected]
vtkImageData* VISU_PlanesWidget.myBox [protected]
vtkOutlineFilter* VISU_PlanesWidget.myOutline [protected]
vtkPolyDataMapper* VISU_PlanesWidget.myOutlineMapper [protected]
vtkActor* VISU_PlanesWidget.myOutlineActor [protected]
vtkCutter* VISU_PlanesWidget.myCutter1 [protected]
vtkPolyDataMapper* VISU_PlanesWidget.myCutMapper1 [protected]
vtkActor* VISU_PlanesWidget.myCutActor1 [protected]
vtkCutter* VISU_PlanesWidget.myCutter2 [protected]
vtkPolyDataMapper* VISU_PlanesWidget.myCutMapper2 [protected]
vtkActor* VISU_PlanesWidget.myCutActor2 [protected]
vtkFeatureEdges* VISU_PlanesWidget.myEdges2 [protected]
vtkPolyDataMapper* VISU_PlanesWidget.myEdgesMapper2 [protected]
vtkActor* VISU_PlanesWidget.myEdgesActor2 [protected]
vtkFeatureEdges* VISU_PlanesWidget.myEdges1 [protected]
vtkPolyDataMapper* VISU_PlanesWidget.myEdgesMapper1 [protected]
vtkActor* VISU_PlanesWidget.myEdgesActor1 [protected]
vtkConeSource* VISU_PlanesWidget.ConeSource [protected]
vtkPolyDataMapper* VISU_PlanesWidget.ConeMapper [protected]
vtkLineSource* VISU_PlanesWidget.LineSource [protected]
vtkPolyDataMapper* VISU_PlanesWidget.LineMapper [protected]
vtkActor* VISU_PlanesWidget.LineActor [protected]
vtkConeSource* VISU_PlanesWidget.ConeSource2 [protected]
vtkPolyDataMapper* VISU_PlanesWidget.ConeMapper2 [protected]
vtkLineSource* VISU_PlanesWidget.LineSource2 [protected]
vtkPolyDataMapper* VISU_PlanesWidget.LineMapper2 [protected]
vtkActor* VISU_PlanesWidget.LineActor2 [protected]
vtkSphereSource* VISU_PlanesWidget.Sphere [protected]
vtkPolyDataMapper* VISU_PlanesWidget.SphereMapper [protected]
vtkCellPicker* VISU_PlanesWidget.Picker [protected]
vtkTransform* VISU_PlanesWidget.Transform [protected]
vtkProperty* VISU_PlanesWidget.NormalProperty [protected]
vtkProperty* VISU_PlanesWidget.SelectedNormalProperty [protected]
vtkProperty* VISU_PlanesWidget.PlaneProperty [protected]
vtkProperty* VISU_PlanesWidget.SelectedPlaneProperty [protected]
vtkProperty* VISU_PlanesWidget.OutlineProperty [protected]
vtkProperty* VISU_PlanesWidget.EdgesProperty [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