Go to the documentation of this file.
95 float animationTime = 0.f,
103 void zoom(
const float diffvalue);
110 float animationLength,
111 const double* toFov = 0,
112 const double* toRotation = 0);
142 int smoothingPasses);
164 std::unique_ptr<OpenLxUI::ViewerP> mPimpl;
std::string getDefaultCursor()
void setOldFocalDistance(double d)
void viewBoundingBox(Geom::Bnd_Box bbox, float animationTime=0.f, const Geom::Dir &upVec=Geom::Dir(0, 1, 0))
void viewAll(float animationTime=0.f, const Geom::Dir &upVec=Geom::Dir(0, 1, 0), Geom::Bnd_Box *bbox=0)
void loadVisibility() const
bool offScreenSaveImage(const std::string &filename, int viewportwidth, int viewportheight, const Base::Color &bgColor, bool smoothing, int smoothingPasses)
bool centeringZoom(float &ppdst, Geom::Ax2 coordsys, bool smallmode=false)
Definition: SceneView.h:20
void setZGroundPlate(bool aOn, double val)
Defines a non-persistent vector in 3D space.
Definition: Vec.h:41
void blockRedrawAfterRedrawing(bool on)
void viewElement(std::shared_ptr< OpenLxApp::Element > e, float animationTime=0.f, const Geom::Dir &upVec=Geom::Dir(0, 1, 0))
bool hasAutomaticFocalDistance() const
void setPlaneMode(const Geom::Pln &aPln)
void setSceneView(const OpenLxUI::SceneView &view, bool forceNotAnimated=false)
bool isZoomViewAvailable() const
void setBlockRedraw(bool on)
double getOldFocalDistance() const
bool saveScreenImage(const Base::String &aFileName)
void zoomToPoint(Geom::Pnt p, double radius, double animateTime)
void lookAt(const Geom::Pnt &fromPnt, const Geom::Pnt &toPnt, const Geom::Vec &upVector)
Geom::Pnt2d mapToGlobal(const Geom::Pnt2d &in)
Geom::Bnd_Box getSceneBoundingBox()
void setAutomaticFocalDistance(bool on)
Defines a non-persistent 3D Cartesian point.
Definition: Pnt.h:44
void zoom(const float diffvalue)
double getZGroundPlate() const
bool getPlaneMode(Geom::Pln &p)
void view(EViewDirection direction, float animationTime=0.f, const Geom::Dir &upVec=Geom::Dir(0, 1, 0), Geom::Bnd_Box *bbox=0, double rotZ=0)
void setProjectAllToZGroundPlate(bool aOn)
void enablePlaneMode(const Geom::Pln &aPln)
void setDraggingRestriction(bool on)
void setElementVisibilityInViewer(std::shared_ptr< OpenLxApp::Element > e, bool visible)
LX_OPENLXUI_EXPORT void view(int aViewerId, OpenLxApp::View_Direction aViewDirection, int aAnimationTime=0)
void setBackgroundColor(const Base::Color &aColor)
bool renderWebThumbnail(const Base::String &aFileName, int width, int height, const Base::Color &backgroundColor)
void setElementsVisibilityInViewer(const std::vector< std::shared_ptr< OpenLxApp::Element >> &elems, bool visible)
Viewer(Gui::Viewer &aViewer)
void setProjectAllToWPlane(bool aOn)
bool offScreenSaveImage(const std::string &filename)
void checkForCameraUpConstrain()
OpenLxUI::SceneView getCurrentSceneView()
void animateActiveCamera(const Geom::Vec &toPosition, const Geom::Vec &toViewpoint, float animationLength, const double *toFov=0, const double *toRotation=0)
EViewDirection
Definition: Viewer.h:49
void enableShading(bool on)
bool getProjectAllToWPlane() const
bool saveScreenImage(const Base::String &aFileName, int width, int height, const Base::Color &backgroundColor)
A Utf-16 (windows) or ucs4 (unix) encoded string class.
Definition: String.h:18
void zoomToCursor(Geom::Ax2 coordsys, bool forward)
Defines a non-persistent 2D cartesian point.
Definition: Pnt2d.h:34
Definition: ActiveEdge.h:26
void setDefaultCursor(const std::string &c)
void saveSceneView(OpenLxUI::SceneView &view)
bool getProjectAllToZGroundPlate() const
void walkThruMove(int dir, bool orbit, double speed=0.)
Base::Color getBackgroundColor() const