#include <VTKViewer_RenderWindowInteractor.h>
|
| vtkTypeMacro (VTKViewer_RenderWindowInteractor, vtkRenderWindowInteractor) void PrintSelf(ostream &os |
|
virtual void | Initialize () |
|
virtual void | SetInteractorStyle (vtkInteractorObserver *) |
|
VTKViewer_InteractorStyle * | GetInteractorStyle () const |
|
virtual void | Start () |
|
virtual void | Enable () |
|
virtual void | Disable () |
|
virtual void | UpdateSize (int x, int y) |
|
|
virtual int | CreateTimer (int) |
|
virtual int | DestroyTimer () |
|
virtual void | TerminateApp (void) |
|
|
bool | highlightCell (const TIndexedMapOfVtkId &MapIndex, VTKViewer_Actor *theMapActor, bool hilight, bool update=true) |
|
bool | highlightEdge (const TIndexedMapOfVtkId &MapIndex, VTKViewer_Actor *theMapActor, bool hilight, bool update=true) |
|
bool | highlightPoint (const TIndexedMapOfVtkId &MapIndex, VTKViewer_Actor *theMapActor, bool hilight, bool update=true) |
|
void | unHighlightSubSelection () |
|
bool | unHighlightAll () |
|
void | SetSelectionProp (const double &theRed=1, const double &theGreen=1, const double &theBlue=0, const int &theWidth=5) |
|
void | SetSelectionTolerance (const double &theTolNodes=0.025, const double &theTolCell=0.001) |
|
|
int | GetDisplayMode () |
|
void | SetDisplayMode (int) |
|
|
void | ChangeRepresentationToWireframe () |
|
void | ChangeRepresentationToSurface () |
|
void | ChangeRepresentationToSurfaceWithEdges () |
|
|
void | ChangeRepresentationToWireframe (vtkActorCollection *ListofActors) |
|
void | ChangeRepresentationToSurface (vtkActorCollection *ListofActors) |
|
void | ChangeRepresentationToSurfaceWithEdges (vtkActorCollection *ListofActors) |
|
|
typedef void(* | TUpdateActor) (const TIndexedMapOfVtkId &theMapIndex, VTKViewer_Actor *theMapActor, VTKViewer_Actor *theActor) |
|
VTKViewer_InteractorStyle * | myInteractorStyle |
|
QTimer * | mTimer |
|
int | myDisplayMode |
|
VTKViewer_Actor * | myPointActor |
|
VTKViewer_Actor * | myEdgeActor |
|
VTKViewer_Actor * | myCellActor |
|
vtkPicker * | myBasicPicker |
|
vtkCellPicker * | myCellPicker |
|
vtkPointPicker * | myPointPicker |
|
int | PositionBeforeStereo [2] |
|
class | VTKViewer_ViewWindow |
|
VTKViewer_ViewWindow * | myViewWnd |
|
double | myTolNodes |
| Selection node tolerance. More...
|
|
double | myTolItems |
| Selection cell tolerance. More...
|
|
void | EraseAll () |
|
void | DisplayAll () |
|
void | RemoveAll (const bool immediatly) |
|
void | Display (VTKViewer_Actor *SActor, bool immediatly=true) |
| Display the theActor. More...
|
|
void | Erase (VTKViewer_Actor *SActor, bool immediatly=true) |
|
void | Remove (VTKViewer_Actor *SActor, bool updateViewer=true) |
|
void | Update () |
|
vtkRenderer * | GetRenderer () |
|
void | setViewWindow (VTKViewer_ViewWindow *theViewWnd) |
|
void | setCellData (const int &, VTKViewer_Actor *, VTKViewer_Actor *) |
|
void | setEdgeData (const int &, VTKViewer_Actor *, const int &, VTKViewer_Actor *) |
|
void | setPointData (const int &, VTKViewer_Actor *, VTKViewer_Actor *) |
|
| VTKViewer_RenderWindowInteractor () |
|
| ~VTKViewer_RenderWindowInteractor () |
|
bool | highlight (const TIndexedMapOfVtkId &theMapIndex, VTKViewer_Actor *theMapActor, VTKViewer_Actor *theActor, TUpdateActor theFun, bool hilight, bool update) |
|
void | setActorData (const TIndexedMapOfVtkId &theMapIndex, VTKViewer_Actor *theMapActor, VTKViewer_Actor *theActor, TUpdateActor theFun) |
|
void | MoveInternalActors () |
|
void | MouseMove (QMouseEvent *event) |
|
void | LeftButtonPressed (const QMouseEvent *event) |
|
void | LeftButtonReleased (const QMouseEvent *event) |
|
void | MiddleButtonPressed (const QMouseEvent *event) |
|
void | MiddleButtonReleased (const QMouseEvent *event) |
|
void | RightButtonPressed (const QMouseEvent *event) |
|
void | RightButtonReleased (const QMouseEvent *event) |
|
void | ButtonPressed (const QMouseEvent *event) |
|
void | ButtonReleased (const QMouseEvent *event) |
|
void | KeyPressed (QKeyEvent *event) |
|
void | TimerFunc () |
|
void | RenderWindowModified () |
|
void | contextMenuRequested (QContextMenuEvent *e) |
|
◆ TUpdateActor
◆ VTKViewer_RenderWindowInteractor()
VTKViewer_RenderWindowInteractor::VTKViewer_RenderWindowInteractor |
( |
| ) |
|
|
protected |
Constructor.
References mTimer, myBasicPicker, myCellActor, myCellPicker, myDisplayMode, myEdgeActor, myPointActor, myPointPicker, VTKViewer_Actor::New(), VTKViewer_Actor::SetColor(), and TimerFunc().
◆ ~VTKViewer_RenderWindowInteractor()
VTKViewer_RenderWindowInteractor::~VTKViewer_RenderWindowInteractor |
( |
| ) |
|
|
protected |
◆ ButtonPressed
void VTKViewer_RenderWindowInteractor::ButtonPressed |
( |
const QMouseEvent * |
event | ) |
|
|
slot |
Reaction on button pressed.
- Warning
- Do nothing.
◆ ButtonReleased
void VTKViewer_RenderWindowInteractor::ButtonReleased |
( |
const QMouseEvent * |
event | ) |
|
|
slot |
Reaction on button released..
- Warning
- Do nothing.
◆ ChangeRepresentationToSurface() [1/2]
void VTKViewer_RenderWindowInteractor::ChangeRepresentationToSurface |
( |
| ) |
|
◆ ChangeRepresentationToSurface() [2/2]
void VTKViewer_RenderWindowInteractor::ChangeRepresentationToSurface |
( |
vtkActorCollection * |
theCollection | ) |
|
◆ ChangeRepresentationToSurfaceWithEdges() [1/2]
void VTKViewer_RenderWindowInteractor::ChangeRepresentationToSurfaceWithEdges |
( |
| ) |
|
◆ ChangeRepresentationToSurfaceWithEdges() [2/2]
void VTKViewer_RenderWindowInteractor::ChangeRepresentationToSurfaceWithEdges |
( |
vtkActorCollection * |
theCollection | ) |
|
◆ ChangeRepresentationToWireframe() [1/2]
void VTKViewer_RenderWindowInteractor::ChangeRepresentationToWireframe |
( |
| ) |
|
◆ ChangeRepresentationToWireframe() [2/2]
void VTKViewer_RenderWindowInteractor::ChangeRepresentationToWireframe |
( |
vtkActorCollection * |
theCollection | ) |
|
◆ contextMenuRequested
void VTKViewer_RenderWindowInteractor::contextMenuRequested |
( |
QContextMenuEvent * |
e | ) |
|
|
signal |
◆ CreateTimer()
int VTKViewer_RenderWindowInteractor::CreateTimer |
( |
int |
| ) |
|
|
virtual |
Description: Timer methods must be overridden by platform dependent subclasses. flag is passed to indicate if this is first timer set or an update as Win32 uses repeating timers, whereas X uses One shot more timer if flag == VTKXI_TIMER_FIRST Win32 and X should createtimer otherwise Win32 should exit and X should perform AddTimeOut
- Return values
-
Start a one-shot timer for 10ms.
References mTimer.
◆ DestroyTimer()
int VTKViewer_RenderWindowInteractor::DestroyTimer |
( |
void |
| ) |
|
|
virtual |
- See also
- CreateTimer(int )
- Return values
-
QTimer will automatically expire after 10ms. So we do not need to do anything here. In fact, we should not even Stop() the QTimer here because doing this will skip some of the processing that the TimerFunc() does and will result in undesirable effects. For example, this will result in vtkLODActor to leave the models in low-res mode after the mouse stops moving.
◆ Disable()
void VTKViewer_RenderWindowInteractor::Disable |
( |
| ) |
|
|
virtual |
◆ Display()
void VTKViewer_RenderWindowInteractor::Display |
( |
VTKViewer_Actor * |
theActor, |
|
|
bool |
update = true |
|
) |
| |
◆ DisplayAll()
void VTKViewer_RenderWindowInteractor::DisplayAll |
( |
| ) |
|
◆ Enable()
void VTKViewer_RenderWindowInteractor::Enable |
( |
| ) |
|
|
virtual |
Description:
Enable/Disable interactions. By default interactors are enabled when
initialized. Initialize() must be called prior to enabling/disabling
interaction. These methods are used when a window/widget is being
shared by multiple renderers and interactors. This allows a "modal"
display where one interactor is active when its data is to be displayed
and all other interactors associated with the widget are disabled
when their data is not displayed.
◆ Erase()
void VTKViewer_RenderWindowInteractor::Erase |
( |
VTKViewer_Actor * |
SActor, |
|
|
bool |
immediatly = true |
|
) |
| |
◆ EraseAll()
void VTKViewer_RenderWindowInteractor::EraseAll |
( |
| ) |
|
◆ GetDisplayMode()
int VTKViewer_RenderWindowInteractor::GetDisplayMode |
( |
| ) |
|
◆ GetInteractorStyle()
Return interactor style pointer.
◆ GetRenderer()
vtkRenderer * VTKViewer_RenderWindowInteractor::GetRenderer |
( |
| ) |
|
◆ highlight()
◆ highlightCell()
◆ highlightEdge()
◆ highlightPoint()
◆ Initialize()
void VTKViewer_RenderWindowInteractor::Initialize |
( |
| ) |
|
|
virtual |
◆ KeyPressed
void VTKViewer_RenderWindowInteractor::KeyPressed |
( |
QKeyEvent * |
event | ) |
|
|
slot |
default key press event (empty implementation)
NOT_IMPLEMENTED
◆ LeftButtonPressed
void VTKViewer_RenderWindowInteractor::LeftButtonPressed |
( |
const QMouseEvent * |
event | ) |
|
|
slot |
◆ LeftButtonReleased
void VTKViewer_RenderWindowInteractor::LeftButtonReleased |
( |
const QMouseEvent * |
event | ) |
|
|
slot |
◆ MiddleButtonPressed
void VTKViewer_RenderWindowInteractor::MiddleButtonPressed |
( |
const QMouseEvent * |
event | ) |
|
|
slot |
◆ MiddleButtonReleased
void VTKViewer_RenderWindowInteractor::MiddleButtonReleased |
( |
const QMouseEvent * |
event | ) |
|
|
slot |
◆ MouseMove
void VTKViewer_RenderWindowInteractor::MouseMove |
( |
QMouseEvent * |
event | ) |
|
|
slot |
◆ MoveInternalActors()
void VTKViewer_RenderWindowInteractor::MoveInternalActors |
( |
| ) |
|
|
protected |
◆ New()
◆ Remove()
void VTKViewer_RenderWindowInteractor::Remove |
( |
VTKViewer_Actor * |
SActor, |
|
|
bool |
updateViewer = true |
|
) |
| |
◆ RemoveAll()
void VTKViewer_RenderWindowInteractor::RemoveAll |
( |
const bool |
updateViewer | ) |
|
◆ RenderWindowModified
void VTKViewer_RenderWindowInteractor::RenderWindowModified |
( |
| ) |
|
|
signal |
◆ RightButtonPressed
void VTKViewer_RenderWindowInteractor::RightButtonPressed |
( |
const QMouseEvent * |
event | ) |
|
|
slot |
◆ RightButtonReleased
void VTKViewer_RenderWindowInteractor::RightButtonReleased |
( |
const QMouseEvent * |
event | ) |
|
|
slot |
◆ setActorData()
◆ setCellData()
◆ SetDisplayMode()
void VTKViewer_RenderWindowInteractor::SetDisplayMode |
( |
int |
theMode | ) |
|
◆ setEdgeData()
◆ SetInteractorStyle()
◆ setPointData()
◆ SetSelectionProp()
void VTKViewer_RenderWindowInteractor::SetSelectionProp |
( |
const double & |
theRed = 1 , |
|
|
const double & |
theGreen = 1 , |
|
|
const double & |
theBlue = 0 , |
|
|
const int & |
theWidth = 5 |
|
) |
| |
◆ SetSelectionTolerance()
void VTKViewer_RenderWindowInteractor::SetSelectionTolerance |
( |
const double & |
theTolNodes = 0.025 , |
|
|
const double & |
theTolItems = 0.001 |
|
) |
| |
◆ setViewWindow()
◆ Start()
void VTKViewer_RenderWindowInteractor::Start |
( |
| ) |
|
|
virtual |
Description:
This will start up the X event loop and never return. If you
call this method it will loop processing X events until the
application is exited.
◆ TerminateApp()
virtual void VTKViewer_RenderWindowInteractor::TerminateApp |
( |
void |
| ) |
|
|
inlinevirtual |
Description:
This function is called on 'q','e' keypress if exitmethod is not
specified and should be overidden by platform dependent subclasses
to provide a termination procedure if one is required.
◆ TimerFunc
void VTKViewer_RenderWindowInteractor::TimerFunc |
( |
| ) |
|
|
privateslot |
Not all of these slots are needed in VTK_MAJOR_VERSION=3,
but moc does not understand "#if VTK_MAJOR_VERSION". Hence,
we have to include all of these for the time being. Once,
this bug in MOC is fixed, we can separate these.
References RenderWindowModified().
◆ unHighlightAll()
bool VTKViewer_RenderWindowInteractor::unHighlightAll |
( |
| ) |
|
◆ unHighlightSubSelection()
void VTKViewer_RenderWindowInteractor::unHighlightSubSelection |
( |
| ) |
|
◆ Update()
void VTKViewer_RenderWindowInteractor::Update |
( |
| ) |
|
◆ UpdateSize()
void VTKViewer_RenderWindowInteractor::UpdateSize |
( |
int |
w, |
|
|
int |
h |
|
) |
| |
|
virtual |
Description:
Event loop notification member for Window size change
◆ vtkTypeMacro()
◆ VTKViewer_ViewWindow
◆ indent
vtkIndent VTKViewer_RenderWindowInteractor::indent |
◆ mTimer
QTimer* VTKViewer_RenderWindowInteractor::mTimer |
|
protected |
Timer used during various mouse events to figure out mouse movements.
◆ myBasicPicker
vtkPicker* VTKViewer_RenderWindowInteractor::myBasicPicker |
|
protected |
◆ myCellActor
◆ myCellPicker
vtkCellPicker* VTKViewer_RenderWindowInteractor::myCellPicker |
|
protected |
◆ myDisplayMode
int VTKViewer_RenderWindowInteractor::myDisplayMode |
|
protected |
◆ myEdgeActor
◆ myInteractorStyle
◆ myPointActor
◆ myPointPicker
vtkPointPicker* VTKViewer_RenderWindowInteractor::myPointPicker |
|
protected |
◆ myTolItems
double VTKViewer_RenderWindowInteractor::myTolItems |
|
private |
Selection cell tolerance.
◆ myTolNodes
double VTKViewer_RenderWindowInteractor::myTolNodes |
|
private |
Selection node tolerance.
◆ myViewWnd
◆ PositionBeforeStereo
int VTKViewer_RenderWindowInteractor::PositionBeforeStereo[2] |
|
protected |
User for switching to stereo mode.
The documentation for this class was generated from the following files: