44 Viewer(Gui::Viewer& aViewer);
70 bool isZoomViewAvailable()
const;
72 void viewLastZoomView();
73 void clearZoomViews();
75 double getZGroundPlate()
const;
76 void setZGroundPlate(
bool aOn,
double val);
78 bool getProjectAllToZGroundPlate()
const;
79 void setProjectAllToZGroundPlate(
bool aOn);
80 bool getProjectAllToWPlane()
const;
81 void setProjectAllToWPlane(
bool aOn);
83 void enablePlaneMode();
84 void enablePlaneMode(
const Geom::Pln& aPln);
85 void disablePlaneMode();
88 void setActive(
bool on);
89 void loadVisibility()
const;
92 void viewElement(std::shared_ptr<OpenLxApp::Element> e,
float animationTime = 0.f,
const Geom::Dir& upVec =
Geom::Dir(0, 1, 0));
94 void view(EViewDirection direction,
95 float animationTime = 0.f,
103 void zoom(
const float diffvalue);
104 void zoomToPoint(
Geom::Pnt p,
double radius,
double animateTime);
108 void animateActiveCamera(
const Geom::Vec& toPosition,
110 float animationLength,
111 const double* toFov = 0,
112 const double* toRotation = 0);
114 void setBackgroundColor(
const Base::Color& aColor);
118 bool centeringZoom(
float& ppdst,
Geom::Ax2 coordsys,
bool smallmode =
false);
119 void zoomToCursor(
Geom::Ax2 coordsys,
bool forward);
120 void walkThruMove(
int dir,
bool orbit,
double speed = 0.);
122 void setElementVisibilityInViewer(std::shared_ptr<OpenLxApp::Element> e,
bool visible);
123 void setElementsVisibilityInViewer(
const std::vector<std::shared_ptr<OpenLxApp::Element>>& elems,
bool visible);
125 void enableShading(
bool on);
136 bool offScreenSaveImage(
const std::string&
filename);
137 bool offScreenSaveImage(
const std::string&
filename,
142 int smoothingPasses);
145 bool saveScreenImage(
const Base::String& aFileName,
int width,
int height,
const Base::Color& backgroundColor);
146 bool renderWebThumbnail(
const Base::String& aFileName,
int width,
int height,
const Base::Color& backgroundColor);
149 std::string getDefaultCursor();
150 void setDefaultCursor(
const std::string& c);
151 void setDraggingRestriction(
bool on);
152 void checkForCameraUpConstrain();
155 bool hasAutomaticFocalDistance()
const;
156 void setAutomaticFocalDistance(
bool on);
157 double getOldFocalDistance()
const;
158 void setOldFocalDistance(
double d);
160 void setBlockRedraw(
bool on);
161 void blockRedrawAfterRedrawing(
bool on);
164 std::unique_ptr<OpenLxUI::ViewerP> mPimpl;
LX_OPENLXUI_EXPORT void lookAt(int aViewerId, const Geom::Pnt &aFromPnt, const Geom::Pnt &aToPnt, const Geom::Vec &aUpVector)
Defines a non-persistent 3D Cartesian point.
Definition: Pnt.h:43
Definition: SceneView.h:19
LX_OPENLXUI_EXPORT void viewAll(int aViewerId, int aAnimationTime=0)
VIEWER.
A Utf-16 (windows) or ucs4 (unix) encoded string class.
Definition: String.h:23
Core::PropertyText filename
Definition: CoreDocument.h:176
Definition: ActiveEdge.h:25
Defines a non-persistent vector in 3D space.
Definition: Vec.h:44
LX_OPENLXUI_EXPORT void view(int aViewerId, OpenLxApp::View_Direction aViewDirection, int aAnimationTime=0)
EViewDirection
Definition: Viewer.h:48
LX_OPENLXUI_EXPORT void viewOrthogonal(int aViewerId)
Defines a non-persistent 2D cartesian point.
Definition: Pnt2d.h:33
LX_OPENLXUI_EXPORT void viewPerspective(int aViewerId)