Version: 8.3.0
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
SALOME GUI Developer
Todo List
Namespaces
Classes
Files
File List
idl
src
CAF
CAM
CASCatch
DDS
Event
GLViewer
GraphicsView
GuiHelpers
HelpBrowser
ImageComposer
LightApp
LogWindow
ObjBrowser
OBJECT
OCCViewer
OpenGLUtils
Plot2d
Prs
PVServerService
PVViewer
PyViewer
QDS
Qtx
QxScene
SALOME_PY
SALOME_PYQT
SALOME_SWIG
SalomeApp
Session
SOCC
SPlot2d
STD
Style
SUIT
SUITApp
SVTK
SALOME_Actor.cxx
SALOME_Actor.h
salomevtkPVAxesActor.cxx
salomevtkPVAxesActor.h
salomevtkPVAxesWidget.cxx
salomevtkPVAxesWidget.h
SVTK.h
SVTK_Actor.cxx
SVTK_Actor.h
SVTK_AreaPicker.cxx
SVTK_AreaPicker.h
SVTK_ComboAction.cxx
SVTK_ComboAction.h
SVTK_CubeAxesActor2D.cxx
SVTK_CubeAxesActor2D.h
SVTK_CubeAxesDlg.cxx
SVTK_CubeAxesDlg.h
SVTK_DeviceActor.cxx
SVTK_DeviceActor.h
SVTK_Event.h
SVTK_FontWidget.cxx
SVTK_FontWidget.h
SVTK_Functor.h
SVTK_GenericRenderWindowInteractor.cxx
SVTK_GenericRenderWindowInteractor.h
SVTK_ImageWriter.cxx
SVTK_ImageWriter.h
SVTK_ImageWriterMgr.cxx
SVTK_ImageWriterMgr.h
SVTK_InteractorStyle.cxx
SVTK_InteractorStyle.h
SVTK_KeyFreeInteractorStyle.cxx
SVTK_KeyFreeInteractorStyle.h
SVTK_NonIsometricDlg.cxx
SVTK_NonIsometricDlg.h
SVTK_Prs.cxx
SVTK_Prs.h
SVTK_PsOptionsDlg.cxx
SVTK_PsOptionsDlg.h
SVTK_Recorder.cxx
SVTK_Recorder.h
SVTK_RecorderDlg.cxx
SVTK_RecorderDlg.h
SVTK_Renderer.cxx
SVTK_Renderer.h
SVTK_RenderWindowInteractor.cxx
SVTK_RenderWindowInteractor.h
SVTK_Selection.h
SVTK_SelectionEvent.h
SVTK_Selector.cxx
SVTK_Selector.h
SVTK_SelectorDef.h
SVTK_SetRotationPointDlg.cxx
SVTK_SetRotationPointDlg.h
SVTK_SpaceMouse.cxx
SVTK_SpaceMouse.h
SVTK_Trihedron.cxx
SVTK_Trihedron.h
SVTK_UpdateRateDlg.cxx
SVTK_UpdateRateDlg.h
SVTK_Utils.cxx
SVTK_Utils.h
SVTK_View.cxx
SVTK_View.h
SVTK_ViewManager.cxx
SVTK_ViewManager.h
SVTK_ViewModel.cxx
SVTK_ViewModel.h
SVTK_ViewModelBase.h
SVTK_ViewParameterDlg.cxx
SVTK_ViewParameterDlg.h
SVTK_ViewWindow.cxx
SVTK_ViewWindow.h
TOOLSGUI
TreeData
ViewerData
ViewerTools
VTKViewer
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
SVTK_ViewParameterDlg.h
Go to the documentation of this file.
1
// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
2
//
3
// This library is free software; you can redistribute it and/or
4
// modify it under the terms of the GNU Lesser General Public
5
// License as published by the Free Software Foundation; either
6
// version 2.1 of the License, or (at your option) any later version.
7
//
8
// This library is distributed in the hope that it will be useful,
9
// but WITHOUT ANY WARRANTY; without even the implied warranty of
10
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
// Lesser General Public License for more details.
12
//
13
// You should have received a copy of the GNU Lesser General Public
14
// License along with this library; if not, write to the Free Software
15
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
//
17
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18
//
19
20
// SALOME VTKViewer : build VTK viewer into Salome desktop
21
// File :
22
// Author :
23
24
#ifndef SVTK_VIEWPARAMETERDLG_H
25
#define SVTK_VIEWPARAMETERDLG_H
26
27
#include "
SVTK.h
"
28
29
#include <
ViewerTools_DialogBase.h
>
30
31
#include <vtkSmartPointer.h>
32
#include <vtkTimeStamp.h>
33
34
class
SVTK_ViewWindow
;
35
class
SVTK_RenderWindowInteractor
;
36
37
class
QtxAction
;
38
39
class
QLineEdit
;
40
class
QPushButton;
41
class
QFrame
;
42
class
QCheckBox;
43
class
QButtonGroup;
44
45
class
vtkCallbackCommand;
46
class
vtkObject
;
47
48
class
SVTK_EXPORT
SVTK_ViewParameterDlg
:
public
ViewerTools_DialogBase
49
{
50
Q_OBJECT;
51
52
public
:
53
SVTK_ViewParameterDlg
(
QtxAction
* theAction,
54
SVTK_ViewWindow
* theParent,
55
const
char
* theName);
56
57
~
SVTK_ViewParameterDlg
();
58
59
void
addObserver();
60
61
protected
:
62
SVTK_ViewWindow
*
myMainWindow
;
63
SVTK_RenderWindowInteractor
*
myRWInteractor
;
64
bool
myIsObserverAdded
;
65
bool
myBusy
;
66
67
QButtonGroup*
myProjectionMode
;
68
69
QPushButton*
myToBBCenter
;
70
QPushButton*
myToOrigin
;
71
QPushButton*
mySelectPoint
;
72
73
QFrame
*
myFocalCoords
;
74
QLineEdit
*
myFocalX
;
75
QLineEdit
*
myFocalY
;
76
QLineEdit
*
myFocalZ
;
77
78
QButtonGroup*
myCameraPositionMode
;
79
80
QFrame
*
myCameraCoords
;
81
QLineEdit
*
myCameraX
;
82
QLineEdit
*
myCameraY
;
83
QLineEdit
*
myCameraZ
;
84
85
QFrame
*
myProjDirection
;
86
QLineEdit
*
myProjDirX
;
87
QLineEdit
*
myProjDirY
;
88
QLineEdit
*
myProjDirZ
;
89
90
QLineEdit
*
myDistance
;
91
92
QFrame
*
myViewDirection
;
93
QLineEdit
*
myViewDirX
;
94
QLineEdit
*
myViewDirY
;
95
QLineEdit
*
myViewDirZ
;
96
97
QFrame
*
myScaleBox
;
98
QLineEdit
*
myScale
;
99
100
QFrame
*
myViewAngleBox
;
101
QLineEdit
*
myViewAngle
;
102
103
void
setEnabled(
QFrame
* theWidget,
const
bool
theState);
104
bool
computePoint(
const
double
start[3],
const
double
dir[3],
105
const
double
dist,
double
result[3]);
106
void
updateProjection();
107
void
updateCoordinates();
108
109
void
updateData();
110
111
//----------------------------------------------------------------------------
112
// Priority at which events are processed
113
double
myPriority
;
114
115
// Used to process events
116
vtkSmartPointer<vtkCallbackCommand>
myEventCallbackCommand
;
117
118
// Used to update camera
119
vtkTimeStamp
myCameraMTime
;
120
121
// Description:
122
// Main process event method
123
static
void
ProcessEvents(
vtkObject
*
object
,
124
unsigned
long
event,
125
void
* clientdata,
126
void
* calldata);
127
128
protected
slots:
129
void
onProjectionModeChanged(
int
);
130
void
onPositionModeChanged(
int
);
131
132
void
onToBBCenter();
133
void
onToOrigin();
134
void
onSelectPoint();
135
136
void
onFocalCoordChanged();
137
void
onCameraCoordChanged();
138
void
onDirectionChanged();
139
void
onDistanceChanged();
140
void
onViewDirectionChanged();
141
142
void
onZoomChanged();
143
144
void
onClickClose();
145
146
};
147
148
#endif // SVTK_VIEWPARAMETERDLG_H
src
SVTK
SVTK_ViewParameterDlg.h
Copyright © 2007-2017 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