OpenLexocad
28.0
|
#include <Viewer.h>
Public Member Functions | |
Viewer (Gui::Viewer &aViewer) | |
Viewer ()=delete | |
virtual | ~Viewer () |
void | lookAt (const Geom::Pnt &fromPnt, const Geom::Pnt &toPnt, const Geom::Vec &upVector) |
void | viewLast () |
OpenLxUI::SceneView | getCurrentSceneView () |
void | saveSceneView (OpenLxUI::SceneView &view) |
void | setSceneView (const OpenLxUI::SceneView &view, bool forceNotAnimated=false) |
bool | isZoomViewAvailable () const |
void | saveZoomView () |
void | viewLastZoomView () |
void | clearZoomViews () |
double | getZGroundPlate () const |
void | setZGroundPlate (bool aOn, double val) |
bool | getProjectAllToZGroundPlate () const |
void | setProjectAllToZGroundPlate (bool aOn) |
bool | getProjectAllToWPlane () const |
void | setProjectAllToWPlane (bool aOn) |
void | enablePlaneMode () |
void | enablePlaneMode (const Geom::Pln &aPln) |
void | disablePlaneMode () |
bool | getPlaneMode (Geom::Pln &p) |
void | setPlaneMode (const Geom::Pln &aPln) |
void | setActive (bool on) |
void | loadVisibility () const |
void | viewAll (float animationTime=0.f, const Geom::Dir &upVec=Geom::Dir(0, 1, 0), Geom::Bnd_Box *bbox=0) |
void | viewElement (std::shared_ptr< OpenLxApp::Element > e, float animationTime=0.f, const Geom::Dir &upVec=Geom::Dir(0, 1, 0)) |
void | viewBoundingBox (Geom::Bnd_Box bbox, float animationTime=0.f, const Geom::Dir &upVec=Geom::Dir(0, 1, 0)) |
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 | viewOrthogonal () |
void | viewPerspective () |
void | zoom (const float diffvalue) |
void | zoomToPoint (Geom::Pnt p, double radius, double animateTime) |
void | redraw () |
void | animateActiveCamera (const Geom::Vec &toPosition, const Geom::Vec &toViewpoint, float animationLength, const double *toFov=0, const double *toRotation=0) |
void | setBackgroundColor (const Base::Color &aColor) |
Base::Color | getBackgroundColor () const |
bool | centeringZoom (float &ppdst, Geom::Ax2 coordsys, bool smallmode=false) |
void | zoomToCursor (Geom::Ax2 coordsys, bool forward) |
void | walkThruMove (int dir, bool orbit, double speed=0.) |
void | setElementVisibilityInViewer (std::shared_ptr< OpenLxApp::Element > e, bool visible) |
void | setElementsVisibilityInViewer (const std::vector< std::shared_ptr< OpenLxApp::Element >> &elems, bool visible) |
void | enableShading (bool on) |
bool | isShading () |
Geom::Pnt2d | mapToGlobal (const Geom::Pnt2d &in) |
bool | offScreenSaveImage (const std::string &filename) |
bool | offScreenSaveImage (const std::string &filename, int viewportwidth, int viewportheight, const Base::Color &bgColor, bool smoothing, int smoothingPasses) |
bool | saveScreenImage (const Base::String &aFileName) |
bool | saveScreenImage (const Base::String &aFileName, int width, int height, const Base::Color &backgroundColor) |
bool | renderWebThumbnail (const Base::String &aFileName, int width, int height, const Base::Color &backgroundColor) |
std::string | getDefaultCursor () |
void | setDefaultCursor (const std::string &c) |
void | setDraggingRestriction (bool on) |
void | checkForCameraUpConstrain () |
Geom::Bnd_Box | getSceneBoundingBox () |
bool | hasAutomaticFocalDistance () const |
void | setAutomaticFocalDistance (bool on) |
double | getOldFocalDistance () const |
void | setOldFocalDistance (double d) |
void | setBlockRedraw (bool on) |
void | blockRedrawAfterRedrawing (bool on) |
|
strong |
OpenLxUI::Viewer::Viewer | ( | Gui::Viewer & | aViewer | ) |
|
delete |
|
virtual |
void OpenLxUI::Viewer::animateActiveCamera | ( | const Geom::Vec & | toPosition, |
const Geom::Vec & | toViewpoint, | ||
float | animationLength, | ||
const double * | toFov = 0 , |
||
const double * | toRotation = 0 |
||
) |
Animates the active camera to this position and viewpoint
void OpenLxUI::Viewer::blockRedrawAfterRedrawing | ( | bool | on | ) |
bool OpenLxUI::Viewer::centeringZoom | ( | float & | ppdst, |
Geom::Ax2 | coordsys, | ||
bool | smallmode = false |
||
) |
void OpenLxUI::Viewer::checkForCameraUpConstrain | ( | ) |
void OpenLxUI::Viewer::clearZoomViews | ( | ) |
void OpenLxUI::Viewer::disablePlaneMode | ( | ) |
void OpenLxUI::Viewer::enablePlaneMode | ( | ) |
void OpenLxUI::Viewer::enablePlaneMode | ( | const Geom::Pln & | aPln | ) |
void OpenLxUI::Viewer::enableShading | ( | bool | on | ) |
Base::Color OpenLxUI::Viewer::getBackgroundColor | ( | ) | const |
Returns the background color of the viewer
OpenLxUI::SceneView OpenLxUI::Viewer::getCurrentSceneView | ( | ) |
std::string OpenLxUI::Viewer::getDefaultCursor | ( | ) |
double OpenLxUI::Viewer::getOldFocalDistance | ( | ) | const |
bool OpenLxUI::Viewer::getPlaneMode | ( | Geom::Pln & | p | ) |
bool OpenLxUI::Viewer::getProjectAllToWPlane | ( | ) | const |
bool OpenLxUI::Viewer::getProjectAllToZGroundPlate | ( | ) | const |
Geom::Bnd_Box OpenLxUI::Viewer::getSceneBoundingBox | ( | ) |
double OpenLxUI::Viewer::getZGroundPlate | ( | ) | const |
bool OpenLxUI::Viewer::hasAutomaticFocalDistance | ( | ) | const |
bool OpenLxUI::Viewer::isShading | ( | ) |
bool OpenLxUI::Viewer::isZoomViewAvailable | ( | ) | const |
void OpenLxUI::Viewer::loadVisibility | ( | ) | const |
void OpenLxUI::Viewer::lookAt | ( | const Geom::Pnt & | fromPnt, |
const Geom::Pnt & | toPnt, | ||
const Geom::Vec & | upVector | ||
) |
Geom::Pnt2d OpenLxUI::Viewer::mapToGlobal | ( | const Geom::Pnt2d & | in | ) |
bool OpenLxUI::Viewer::offScreenSaveImage | ( | const std::string & | filename | ) |
bool OpenLxUI::Viewer::offScreenSaveImage | ( | const std::string & | filename, |
int | viewportwidth, | ||
int | viewportheight, | ||
const Base::Color & | bgColor, | ||
bool | smoothing, | ||
int | smoothingPasses | ||
) |
void OpenLxUI::Viewer::redraw | ( | ) |
bool OpenLxUI::Viewer::renderWebThumbnail | ( | const Base::String & | aFileName, |
int | width, | ||
int | height, | ||
const Base::Color & | backgroundColor | ||
) |
void OpenLxUI::Viewer::saveSceneView | ( | OpenLxUI::SceneView & | view | ) |
bool OpenLxUI::Viewer::saveScreenImage | ( | const Base::String & | aFileName | ) |
bool OpenLxUI::Viewer::saveScreenImage | ( | const Base::String & | aFileName, |
int | width, | ||
int | height, | ||
const Base::Color & | backgroundColor | ||
) |
void OpenLxUI::Viewer::saveZoomView | ( | ) |
void OpenLxUI::Viewer::setActive | ( | bool | on | ) |
void OpenLxUI::Viewer::setAutomaticFocalDistance | ( | bool | on | ) |
void OpenLxUI::Viewer::setBackgroundColor | ( | const Base::Color & | aColor | ) |
Sets the background color of the viewer
void OpenLxUI::Viewer::setBlockRedraw | ( | bool | on | ) |
void OpenLxUI::Viewer::setDefaultCursor | ( | const std::string & | c | ) |
void OpenLxUI::Viewer::setDraggingRestriction | ( | bool | on | ) |
void OpenLxUI::Viewer::setElementsVisibilityInViewer | ( | const std::vector< std::shared_ptr< OpenLxApp::Element >> & | elems, |
bool | visible | ||
) |
void OpenLxUI::Viewer::setElementVisibilityInViewer | ( | std::shared_ptr< OpenLxApp::Element > | e, |
bool | visible | ||
) |
void OpenLxUI::Viewer::setOldFocalDistance | ( | double | d | ) |
void OpenLxUI::Viewer::setPlaneMode | ( | const Geom::Pln & | aPln | ) |
void OpenLxUI::Viewer::setProjectAllToWPlane | ( | bool | aOn | ) |
void OpenLxUI::Viewer::setProjectAllToZGroundPlate | ( | bool | aOn | ) |
void OpenLxUI::Viewer::setSceneView | ( | const OpenLxUI::SceneView & | view, |
bool | forceNotAnimated = false |
||
) |
void OpenLxUI::Viewer::setZGroundPlate | ( | bool | aOn, |
double | val | ||
) |
void OpenLxUI::Viewer::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 OpenLxUI::Viewer::viewAll | ( | float | animationTime = 0.f , |
const Geom::Dir & | upVec = Geom::Dir(0, 1, 0) , |
||
Geom::Bnd_Box * | bbox = 0 |
||
) |
void OpenLxUI::Viewer::viewBoundingBox | ( | Geom::Bnd_Box | bbox, |
float | animationTime = 0.f , |
||
const Geom::Dir & | upVec = Geom::Dir(0, 1, 0) |
||
) |
void OpenLxUI::Viewer::viewElement | ( | std::shared_ptr< OpenLxApp::Element > | e, |
float | animationTime = 0.f , |
||
const Geom::Dir & | upVec = Geom::Dir(0, 1, 0) |
||
) |
void OpenLxUI::Viewer::viewLast | ( | ) |
void OpenLxUI::Viewer::viewLastZoomView | ( | ) |
void OpenLxUI::Viewer::viewOrthogonal | ( | ) |
void OpenLxUI::Viewer::viewPerspective | ( | ) |
void OpenLxUI::Viewer::walkThruMove | ( | int | dir, |
bool | orbit, | ||
double | speed = 0. |
||
) |
void OpenLxUI::Viewer::zoom | ( | const float | diffvalue | ) |
void OpenLxUI::Viewer::zoomToCursor | ( | Geom::Ax2 | coordsys, |
bool | forward | ||
) |
void OpenLxUI::Viewer::zoomToPoint | ( | Geom::Pnt | p, |
double | radius, | ||
double | animateTime | ||
) |