Open CASCADE Technology
6.5.4
|
Defines the application object VIEW for the
VIEWER application.
The methods of this class allow the editing
and inquiring the parameters linked to the view.
(Projection,Mapping,Zclipping,DepthCueing,AntiAliasing
et Conversions) .
Warning: The default parameters are defined by the class
Viewer (Example : SetDefaultViewSize()).
Certain methods are mouse oriented, and it is
necessary to know the difference between the start and
the continuation of this gesture in putting the method
into operation.
Example : Shifting the eye-view along the screen axes.
View->Move(10.,20.,0.,True) (Starting motion)
View->Move(15.,-5.,0.,False) (Next motion)
#include <V3d_View.hxx>
Public Member Functions | |
void | SetWindow (const Handle< Aspect_Window > &IdWin) |
Activates the view in the window specified and Map the Window to the screen. //! Warning! raises MultiplyDefined from Standard if the view is already activated in a window. Warning: The view is centered and resized to preserve the height/width ratio of the window. | |
void | SetWindow (const Handle< Aspect_Window > &aWindow, const Aspect_RenderingContext aContext, const Aspect_GraphicCallbackProc &aDisplayCB, const Standard_Address aClientData) |
Activates the view in the specified Window If <aContext> is not NULL the graphic context is used to draw something in this view. Otherwise an internal graphic context is created. If <aDisplayCB> is not NULL then a user display CB is call at the end of the OCC graphic traversal and just before the swap of buffers. The <aClientData> is pass to this call back. //! Warning! raises MultiplyDefined from Standard if the view is already activated in a window. Warning: The view is centered and resized to preserve the height/width ratio of the window. | |
void | SetMagnify (const Handle< Aspect_Window > &IdWin, const Handle< V3d_View > &aPreviousView, const Standard_Integer x1, const Standard_Integer y1, const Standard_Integer x2, const Standard_Integer y2) |
void | Remove () const |
Destroys the view. | |
void | Update () const |
Deprecated, Redraw() should be used instead. | |
void | Redraw () const |
Redisplays the view even if there has not been any modification. Must be called if the view is shown. (Ex: DeIconification ) . | |
void | Redraw (const Standard_Integer x, const Standard_Integer y, const Standard_Integer width, const Standard_Integer height) const |
Redisplays the view area after esxposure. [x,y] define the min xy area position [width,height] the size of the area in pixel unit. | |
void | MustBeResized () |
Must be called when the window supporting the view changes size. //! if the view is not mapped on a window. Warning: The view is centered and resized to preserve the height/width ratio of the window. | |
void | DoMapping () |
Must be called when the window supporting the view is mapped or unmapped. | |
Standard_Boolean | IsEmpty () const |
Returns the status of the view regarding the displayed structures inside Returns True is The View is empty | |
void | UpdateLights () const |
Updates the lights of the view. The view is redrawn. | |
void | SetBackgroundColor (const Quantity_TypeOfColor Type, const Quantity_Parameter V1, const Quantity_Parameter V2, const Quantity_Parameter V3) |
Defines the background colour of the view by supplying : the colour definition type, and the three corresponding values. | |
void | SetBackgroundColor (const Quantity_Color &Color) |
Defines the background colour of the view by supplying : the colour object. | |
void | SetBackgroundColor (const Quantity_NameOfColor Name) |
Defines the background colour of the view by supplying : the colour name in the form Quantity_NOC_xxxx . | |
void | SetBgGradientColors (const Quantity_Color &Color1, const Quantity_Color &Color2, const Aspect_GradientFillMethod FillStyle=Aspect_GFM_HOR, const Standard_Boolean update=Standard_False) |
Defines the gradient background colours of the view by supplying : two colour objects, and fill method (horizontal by default) | |
void | SetBgGradientColors (const Quantity_NameOfColor Color1, const Quantity_NameOfColor Color2, const Aspect_GradientFillMethod FillStyle=Aspect_GFM_HOR, const Standard_Boolean update=Standard_False) |
Defines the gradient background colours of the view by supplying : two colour names in the form Quantity_NOC_xxxx, and fill method (horizontal by default) | |
void | SetBgGradientStyle (const Aspect_GradientFillMethod AMethod=Aspect_GFM_HOR, const Standard_Boolean update=Standard_False) |
Defines the gradient background fill method of the view | |
void | SetBackgroundImage (const Standard_CString FileName, const Aspect_FillMethod FillStyle=Aspect_FM_CENTERED, const Standard_Boolean update=Standard_False) |
Defines the background texture of the view by supplying : texture image file name, and fill method (centered by default) | |
void | SetBgImageStyle (const Aspect_FillMethod FillStyle, const Standard_Boolean update=Standard_False) |
Defines the textured background fill method of the view | |
void | SetAxis (const V3d_Coordinate X, const V3d_Coordinate Y, const V3d_Coordinate Z, const Quantity_Parameter Vx, const Quantity_Parameter Vy, const Quantity_Parameter Vz) |
Definition of an axis from its origin and its orientation . This will be the current axis for rotations and movements. //! Warning! raises BadValue from Viewer if the vector normal is NULL. . | |
void | SetShadingModel (const V3d_TypeOfShadingModel Model) |
Defines the shading model for the visualisation ZBUFFER mode. Various models are available. | |
void | SetSurfaceDetail (const V3d_TypeOfSurfaceDetail SurfaceDetail) |
select the kind of rendering for texture mapping no texture mapping by default | |
void | SetTextureEnv (const Handle< Graphic3d_TextureEnv > &ATexture) |
set the environment texture to use no environment texture by default | |
void | SetVisualization (const V3d_TypeOfVisualization Mode) |
Defines the visualisation mode in the view. | |
void | SetAntialiasingOn () |
Activates antialiasing in the view. | |
void | SetAntialiasingOff () |
Desactivates antialiasing in the view. | |
void | SetZClippingDepth (const Quantity_Length Depth) |
Defines the depth of the medium clipping plane. | |
void | SetZClippingWidth (const Quantity_Length Width) |
Defines the thicknes around the medium clippling plane. . | |
void | SetZClippingType (const V3d_TypeOfZclipping Type) |
Defines the type of ZClipping. | |
void | SetZCueingDepth (const Quantity_Length Depth) |
Defines the depth of the medium plane. | |
void | SetZCueingWidth (const Quantity_Length Width) |
Defines the thickness around the medium plane. | |
void | SetZCueingOn () |
Activates ZCueing in the view. | |
void | SetZCueingOff () |
Desactivates ZCueing in the view. | |
void | SetLightOn (const Handle< V3d_Light > &MyLight) |
Activates MyLight in the view. | |
void | SetLightOn () |
Activates all the lights defined in this view. | |
void | SetLightOff (const Handle< V3d_Light > &MyLight) |
Desactivate MyLight in this view. | |
void | SetLightOff () |
Deactivate all the Lights defined in this view. | |
Standard_Boolean | IsActiveLight (const Handle< V3d_Light > &aLight) const |
Returns TRUE when the light is active in this view. | |
void | SetTransparency (const Standard_Boolean AnActivity=Standard_False) |
Activate/Deactivate the transparency in this view. | |
void | SetPlaneOn (const Handle< V3d_Plane > &MyPlane) |
Activates the clipping plane in this view. //! If No More Plane can be activated in MyView . | |
void | SetPlaneOn () |
Activate all the clipping planes defined in this view. //! If No More Plane can be activated in MyView . | |
void | SetPlaneOff (const Handle< V3d_Plane > &MyPlane) |
Desactivates the clipping plane defined in this view. | |
void | SetPlaneOff () |
Deactivate all clipping planes defined in this view. | |
Standard_Boolean | IsActivePlane (const Handle< V3d_Plane > &aPlane) const |
Returns TRUE when the plane is active in this view. | |
void | ZBufferTriedronSetup (const Quantity_NameOfColor XColor=Quantity_NOC_RED, const Quantity_NameOfColor YColor=Quantity_NOC_GREEN, const Quantity_NameOfColor ZColor=Quantity_NOC_BLUE1, const Standard_Real SizeRatio=0.8, const Standard_Real AxisDiametr=0.05, const Standard_Integer NbFacettes=12) |
Customization of the ZBUFFER Triedron. XColor,YColor,ZColor - colors of axis SizeRatio - ratio of decreasing of the trihedron size when its phisical position comes out of the view AxisDiametr - diameter relatively to axis length NbFacettes - number of facettes of cylinders and cones | |
void | TriedronDisplay (const Aspect_TypeOfTriedronPosition APosition=Aspect_TOTP_CENTER, const Quantity_NameOfColor AColor=Quantity_NOC_WHITE, const Standard_Real AScale=0.02, const V3d_TypeOfVisualization AMode=V3d_WIREFRAME) |
Display of the Triedron. Initialize position, color and length of Triedron axes. The scale is a percent of the window width. | |
void | TriedronErase () |
Erases the Triedron. | |
void | TriedronEcho (const Aspect_TypeOfTriedronEcho AType=Aspect_TOTE_NONE) |
Highlights the echo zone of the Triedron. | |
void | GetGraduatedTrihedron (TCollection_ExtendedString &xname, TCollection_ExtendedString &yname, TCollection_ExtendedString &zname, Standard_Boolean &xdrawname, Standard_Boolean &ydrawname, Standard_Boolean &zdrawname, Standard_Boolean &xdrawvalues, Standard_Boolean &ydrawvalues, Standard_Boolean &zdrawvalues, Standard_Boolean &drawgrid, Standard_Boolean &drawaxes, Standard_Integer &nbx, Standard_Integer &nby, Standard_Integer &nbz, Standard_Integer &xoffset, Standard_Integer &yoffset, Standard_Integer &zoffset, Standard_Integer &xaxisoffset, Standard_Integer &yaxisoffset, Standard_Integer &zaxisoffset, Standard_Boolean &xdrawtickmarks, Standard_Boolean &ydrawtickmarks, Standard_Boolean &zdrawtickmarks, Standard_Integer &xtickmarklength, Standard_Integer &ytickmarklength, Standard_Integer &ztickmarklength, Quantity_Color &gridcolor, Quantity_Color &xnamecolor, Quantity_Color &ynamecolor, Quantity_Color &znamecolor, Quantity_Color &xcolor, Quantity_Color &ycolor, Quantity_Color &zcolor, TCollection_AsciiString &fontOfNames, Font_FontAspect &styleOfNames, Standard_Integer &sizeOfNames, TCollection_AsciiString &fontOfValues, Font_FontAspect &styleOfValues, Standard_Integer &sizeOfValues) const |
Returns data of a graduated trihedron. | |
void | GraduatedTrihedronDisplay (const TCollection_ExtendedString &xname="X", const TCollection_ExtendedString &yname="Y", const TCollection_ExtendedString &zname="Z", const Standard_Boolean xdrawname=Standard_True, const Standard_Boolean ydrawname=Standard_True, const Standard_Boolean zdrawname=Standard_True, const Standard_Boolean xdrawvalues=Standard_True, const Standard_Boolean ydrawvalues=Standard_True, const Standard_Boolean zdrawvalues=Standard_True, const Standard_Boolean drawgrid=Standard_True, const Standard_Boolean drawaxes=Standard_True, const Standard_Integer nbx=3, const Standard_Integer nby=3, const Standard_Integer nbz=3, const Standard_Integer xoffset=10, const Standard_Integer yoffset=10, const Standard_Integer zoffset=10, const Standard_Integer xaxisoffset=30, const Standard_Integer yaxisoffset=30, const Standard_Integer zaxisoffset=30, const Standard_Boolean xdrawtickmarks=Standard_True, const Standard_Boolean ydrawtickmarks=Standard_True, const Standard_Boolean zdrawtickmarks=Standard_True, const Standard_Integer xtickmarklength=10, const Standard_Integer ytickmarklength=10, const Standard_Integer ztickmarklength=10, const Quantity_Color &gridcolor=Quantity_NOC_WHITE, const Quantity_Color &xnamecolor=Quantity_NOC_RED, const Quantity_Color &ynamecolor=Quantity_NOC_GREEN, const Quantity_Color &znamecolor=Quantity_NOC_BLUE1, const Quantity_Color &xcolor=Quantity_NOC_RED, const Quantity_Color &ycolor=Quantity_NOC_GREEN, const Quantity_Color &zcolor=Quantity_NOC_BLUE1, const TCollection_AsciiString &fontOfNames="Arial", const Font_FontAspect styleOfNames=Font_FA_Bold, const Standard_Integer sizeOfNames=12, const TCollection_AsciiString &fontOfValues="Arial", const Font_FontAspect styleOfValues=Font_FA_Regular, const Standard_Integer sizeOfValues=12) |
Displays a graduated trihedron. | |
void | GraduatedTrihedronErase () |
Erases a graduated trihedron from the view. | |
void | SetLayerMgr (const Handle< V3d_LayerMgr > &aMgr) |
void | ColorScaleDisplay () |
void | ColorScaleErase () |
Standard_Boolean | ColorScaleIsDisplayed () const |
Handle_Aspect_ColorScale | ColorScale () const |
void | SetFront () |
modify the Projection of the view perpendicularly to the privileged plane of the viewer. | |
void | Rotate (const Quantity_PlaneAngle Ax, const Quantity_PlaneAngle Ay, const Quantity_PlaneAngle Az, const Standard_Boolean Start=Standard_True) |
Rotates the eye about the coordinate system of reference of the screen for which the origin is the view point of the projection, with a relative angular value in RADIANS with respect to the initial position expressed by Start = Standard_True //! Warning! raises BadValue from Viewer If the eye, the view point, or the high point are aligned or confused. | |
void | Rotate (const Quantity_PlaneAngle Ax, const Quantity_PlaneAngle Ay, const Quantity_PlaneAngle Az, const V3d_Coordinate X, const V3d_Coordinate Y, const V3d_Coordinate Z, const Standard_Boolean Start=Standard_True) |
Rotates the eye about the coordinate system of reference of the screen for which the origin is Gravity point {X,Y,Z}, with a relative angular value in RADIANS with respect to the initial position expressed by Start = Standard_True //! If the eye, the view point, or the high point are aligned or confused. | |
void | Rotate (const V3d_TypeOfAxe Axe, const Quantity_PlaneAngle Angle, const V3d_Coordinate X, const V3d_Coordinate Y, const V3d_Coordinate Z, const Standard_Boolean Start=Standard_True) |
Rotates the eye about one of the coordinate axes of of the view for which the origin is the Gravity point{X,Y,Z} with an relative angular value in RADIANS with respect to the initial position expressed by Start = Standard_True | |
void | Rotate (const V3d_TypeOfAxe Axe, const Quantity_PlaneAngle Angle, const Standard_Boolean Start=Standard_True) |
Rotates the eye about one of the coordinate axes of of the view for which the origin is the view point of the projection with an relative angular value in RADIANS with respect to the initial position expressed by Start = Standard_True | |
void | Rotate (const Quantity_PlaneAngle Angle, const Standard_Boolean Start=Standard_True) |
Rotates the eye around the current axis a relative angular value in RADIANS with respect to the initial position expressed by Start = Standard_True | |
void | Move (const Quantity_Length Dx, const Quantity_Length Dy, const Quantity_Length Dz, const Standard_Boolean Start=Standard_True) |
Movement of the eye parallel to the coordinate system of reference of the screen a distance relative to the initial position expressed by Start = Standard_True. | |
void | Move (const V3d_TypeOfAxe Axe, const Quantity_Length Length, const Standard_Boolean Start=Standard_True) |
Movement of the eye parallel to one of the axes of the coordinate system of reference of the view a distance relative to the initial position expressed by Start = Standard_True. | |
void | Move (const Quantity_Length Length, const Standard_Boolean Start=Standard_True) |
Movement of the eye parllel to the current axis a distance relative to the initial position expressed by Start = Standard_True | |
void | Translate (const Quantity_Length Dx, const Quantity_Length Dy, const Quantity_Length Dz, const Standard_Boolean Start=Standard_True) |
Movement of the ye and the view point parallel to the frame of reference of the screen a distance relative to the initial position expressed by Start = Standard_True | |
void | Translate (const V3d_TypeOfAxe Axe, const Quantity_Length Length, const Standard_Boolean Start=Standard_True) |
Movement of the eye and the view point parallel to one of the axes of the fame of reference of the view a distance relative to the initial position expressed by Start = Standard_True | |
void | Translate (const Quantity_Length Length, const Standard_Boolean Start=Standard_True) |
Movement of the eye and view point parallel to the current axis a distance relative to the initial position expressed by Start = Standard_True | |
void | Place (const Standard_Integer x, const Standard_Integer y, const Quantity_Factor aZoomFactor=1) |
places the point of the view corresponding at the pixel position x,y at the center of the window and updates the view. | |
void | Turn (const Quantity_PlaneAngle Ax, const Quantity_PlaneAngle Ay, const Quantity_PlaneAngle Az, const Standard_Boolean Start=Standard_True) |
Rotation of the view point around the frame of reference of the screen for which the origin is the eye of the projection with a relative angular value in RADIANS with respect to the initial position expressed by Start = Standard_True | |
void | Turn (const V3d_TypeOfAxe Axe, const Quantity_PlaneAngle Angle, const Standard_Boolean Start=Standard_True) |
Rotation of the view point around one of the axes of the frame of reference of the view for which the origin is the eye of the projection with an angular value in RADIANS relative to the initial position expressed by Start = Standard_True | |
void | Turn (const Quantity_PlaneAngle Angle, const Standard_Boolean Start=Standard_True) |
Rotation of the view point around the current axis an angular value in RADIANS relative to the initial position expressed by Start = Standard_True | |
void | SetTwist (const Quantity_PlaneAngle Angle) |
Defines the angular position of the high point of the reference frame of the view with respect to the Y screen axis with an absolute angular value in RADIANS. | |
void | SetEye (const V3d_Coordinate X, const V3d_Coordinate Y, const V3d_Coordinate Z) |
Defines the position of the eye.. | |
void | SetDepth (const Quantity_Length Depth) |
Defines the Depth of the eye from the view point without update the projection . | |
void | SetProj (const Quantity_Parameter Vx, const Quantity_Parameter Vy, const Quantity_Parameter Vz) |
Defines the orientation of the projection. | |
void | SetProj (const V3d_TypeOfOrientation Orientation) |
Defines the orientation of the projection . | |
void | SetAt (const V3d_Coordinate X, const V3d_Coordinate Y, const V3d_Coordinate Z) |
Defines the position of the view point. | |
void | SetUp (const Quantity_Parameter Vx, const Quantity_Parameter Vy, const Quantity_Parameter Vz) |
Defines the orientation of the high point. | |
void | SetUp (const V3d_TypeOfOrientation Orientation) |
Defines the orientation(SO) of the high point. | |
void | SetViewOrientation (const Visual3d_ViewOrientation &VO) |
Modifies the orientation of the view. | |
void | SetViewOrientationDefault () |
Saves the current state of the orientation of the view which will be the return state at ResetViewOrientation. | |
void | ResetViewOrientation () |
Resets the orientation of the view. Updates the view | |
void | Panning (const Quantity_Length Dx, const Quantity_Length Dy, const Quantity_Factor aZoomFactor=1, const Standard_Boolean Start=Standard_True) |
translates the center of the view and zooms the view. Updates the view. | |
void | SetCenter (const V3d_Coordinate Xc, const V3d_Coordinate Yc) |
Defines the centre of the view. Updates the view. | |
void | SetCenter (const Standard_Integer X, const Standard_Integer Y) |
Defines the centre of the view from a pixel position. Updates the view. | |
void | SetSize (const Quantity_Length Size) |
Defines the size of the view while preserving the center and height/width ratio of the window supporting the view. NOTE than the Depth of the View is NOT modified . | |
void | SetZSize (const Quantity_Length Size) |
Defines the Depth size of the view Front Plane will be set to Size/2. Back Plane will be set to -Size/2. Any Object located Above the Front Plane or behind the Back Plane will be Clipped . NOTE than the XY Size of the View is NOT modified . | |
void | SetZoom (const Quantity_Factor Coef, const Standard_Boolean Start=Standard_True) |
Zooms the view by a factor relative to the initial value expressed by Start = Standard_True Updates the view. | |
void | SetScale (const Quantity_Factor Coef) |
Zooms the view by a factor relative to the value initialised by SetViewMappingDefault(). Updates the view. | |
void | SetAxialScale (const Standard_Real Sx, const Standard_Real Sy, const Standard_Real Sz) |
Sets anisotropic (axial) scale factors <Sx>, <Sy>, <Sz> for view <me>. Anisotropic scaling operation is performed through multiplying the current view orientation matrix by a scaling matrix: || Sx 0 0 0 || || 0 Sy 0 0 || || 0 0 Sz 0 || || 0 0 0 1 || Updates the view. | |
void | FitAll (const Quantity_Coefficient Coef=0.01, const Standard_Boolean FitZ=Standard_False, const Standard_Boolean update=Standard_True) |
Automatic zoom/panning. Objects in the view are visualised so as to occupy the maximum space while respecting the margin coefficient and the initial height /width ratio. NOTE than the original Z size of the view is NOT modified . | |
void | ZFitAll (const Quantity_Coefficient Coef=1.0) |
Automatic Depth Panning. Objects visible in the view are visualised so as to occupy the maximum Z amount of space while respecting the margin coefficient . NOTE than the original XY size of the view is NOT modified . | |
void | DepthFitAll (const Quantity_Coefficient Aspect=0.01, const Quantity_Coefficient Margin=0.01) |
Adjusts the viewing volume so as not to clip the displayed objects by front and back and back clipping planes. Also sets depth value automatically depending on the calculated Z size and Aspect parameter. NOTE than the original XY size of the view is NOT modified . | |
void | FitAll (const V3d_Coordinate Umin, const V3d_Coordinate Vmin, const V3d_Coordinate Umax, const V3d_Coordinate Vmax) |
Centres the defined projection window so that it occupies the maximum space while respecting the initial height/width ratio. NOTE than the original Z size of the view is NOT modified . | |
void | WindowFit (const Standard_Integer Xmin, const Standard_Integer Ymin, const Standard_Integer Xmax, const Standard_Integer Ymax) |
Centres the defined PIXEL window so that it occupies the maximum space while respecting the initial height/width ratio. NOTE than the original Z size of the view is NOT modified . | |
void | SetViewingVolume (const Standard_Real Left, const Standard_Real Right, const Standard_Real Bottom, const Standard_Real Top, const Standard_Real ZNear, const Standard_Real ZFar) |
Sets Z and XY size of the view according to given values with respecting the initial view depth (eye position). Width/heigth aspect ratio should be preserved by the caller of this method similarly to SetSize() to avoid unexpected visual results like non-uniform scaling of objects in the view. | |
void | SetViewMapping (const Visual3d_ViewMapping &VM) |
Modifies the mapping of the view. | |
void | SetViewMappingDefault () |
Saves the current view mapping. This will be the state returned from ResetViewmapping. | |
void | ResetViewMapping () |
Resets the centring of the view. Updates the view | |
void | Reset (const Standard_Boolean update=Standard_True) |
Resets the centring and the orientation of the view Updates the view | |
Quantity_Length | Convert (const Standard_Integer Vp) const |
Converts the PIXEL value to a value in the projection plane. | |
void | Convert (const Standard_Integer Xp, const Standard_Integer Yp, V3d_Coordinate &Xv, V3d_Coordinate &Yv) const |
Converts the point PIXEL into a point projected in the reference frame of the projection plane. | |
Standard_Integer | Convert (const Quantity_Length Vv) const |
Converts tha value of the projection plane into a PIXEL value. | |
void | Convert (const V3d_Coordinate Xv, const V3d_Coordinate Yv, Standard_Integer &Xp, Standard_Integer &Yp) const |
Converts the point defined in the reference frame of the projection plane into a point PIXEL. | |
void | Convert (const Standard_Integer Xp, const Standard_Integer Yp, V3d_Coordinate &X, V3d_Coordinate &Y, V3d_Coordinate &Z) const |
Converts the projected point into a point in the reference frame of the view corresponding to the intersection with the projection plane of the eye/view point vector. | |
void | ConvertWithProj (const Standard_Integer Xp, const Standard_Integer Yp, V3d_Coordinate &X, V3d_Coordinate &Y, V3d_Coordinate &Z, Quantity_Parameter &Vx, Quantity_Parameter &Vy, Quantity_Parameter &Vz) const |
Converts the projected point into a point in the reference frame of the view corresponding to the intersection with the projection plane of the eye/view point vector and returns the projection ray for further computations. | |
void | ConvertToGrid (const Standard_Integer Xp, const Standard_Integer Yp, V3d_Coordinate &Xg, V3d_Coordinate &Yg, V3d_Coordinate &Zg) const |
Converts the projected point into the nearest grid point in the reference frame of the view corresponding to the intersection with the projection plane of the eye/view point vector and display the grid marker. Warning: When the grid is not active the result is identical to the above Convert() method. How to use : 1) Enable the grid echo display myViewer->SetGridEcho(Standard_True); 2) When application receive a move event : 2.1) Check if any object is detected if( myInteractiveContext->MoveTo(x,y) == AIS_SOD_Nothing ) { 2.2) Check if the grid is active if( myViewer->Grid()->IsActive() ) { 2.3) Display the grid echo and gets the grid point myView->ConvertToGrid(x,y,X,Y,Z); 2.4) Else this is the standard case } else myView->Convert(x,y,X,Y,Z); | |
void | ConvertToGrid (const V3d_Coordinate X, const V3d_Coordinate Y, const V3d_Coordinate Z, V3d_Coordinate &Xg, V3d_Coordinate &Yg, V3d_Coordinate &Zg) const |
Converts the point into the nearest grid point and display the grid marker. | |
void | Convert (const V3d_Coordinate X, const V3d_Coordinate Y, const V3d_Coordinate Z, Standard_Integer &Xp, Standard_Integer &Yp) const |
Projects the point defined in the reference frame of the view into the projected point in the associated window. | |
void | Project (const V3d_Coordinate X, const V3d_Coordinate Y, const V3d_Coordinate Z, V3d_Coordinate &Xp, V3d_Coordinate &Yp) const |
Converts the point defined in the user space of the view to the projected view plane point at z 0. | |
void | BackgroundColor (const Quantity_TypeOfColor Type, Quantity_Parameter &V1, Quantity_Parameter &V2, Quantity_Parameter &V3) const |
Returns the Background color values of the view depending of the color Type. | |
Quantity_Color | BackgroundColor () const |
Returns the Background color object of the view. | |
void | GradientBackgroundColors (Quantity_Color &Color1, Quantity_Color &Color2) const |
Returns the gradient background colour objects of the view. | |
Aspect_GradientBackground | GradientBackground () const |
Returns the gradient background of the view. | |
Quantity_Factor | Scale () const |
Returns the current value of the zoom expressed with respect to SetViewMappingDefault(). | |
void | AxialScale (Standard_Real &Sx, Standard_Real &Sy, Standard_Real &Sz) const |
Returns the current values of the anisotropic (axial) scale factors. | |
void | Center (V3d_Coordinate &Xc, V3d_Coordinate &Yc) const |
Returns the centre of the view. | |
void | Size (Quantity_Length &Width, Quantity_Length &Height) const |
Returns the height and width of the view. | |
Standard_Real | ZSize () const |
Returns the Depth of the view . | |
void | Eye (V3d_Coordinate &X, V3d_Coordinate &Y, V3d_Coordinate &Z) const |
Returns the position of the eye. | |
void | FocalReferencePoint (V3d_Coordinate &X, V3d_Coordinate &Y, V3d_Coordinate &Z) const |
Returns the position of point which emanating the projections. | |
void | ProjReferenceAxe (const Standard_Integer Xpix, const Standard_Integer Ypix, V3d_Coordinate &XP, V3d_Coordinate &YP, V3d_Coordinate &ZP, V3d_Coordinate &VX, V3d_Coordinate &VY, V3d_Coordinate &VZ) const |
Returns the coordinate of the point (Xpix,Ypix) in the view (XP,YP,ZP), and the projection vector of the view passing by the point (for PerspectiveView). | |
Quantity_Length | Depth () const |
Returns the Distance between the Eye and View Point. | |
void | Proj (Quantity_Parameter &Vx, Quantity_Parameter &Vy, Quantity_Parameter &Vz) const |
Returns the projection vector. | |
void | At (V3d_Coordinate &X, V3d_Coordinate &Y, V3d_Coordinate &Z) const |
Returns the position of the view point. | |
void | Up (Quantity_Parameter &Vx, Quantity_Parameter &Vy, Quantity_Parameter &Vz) const |
Returns the vector giving the position of the high point. | |
Quantity_PlaneAngle | Twist () const |
Returns in RADIANS the orientation of the view around the visual axis measured from the Y axis of the screen. | |
V3d_TypeOfShadingModel | ShadingModel () const |
Returns the current shading model. | |
V3d_TypeOfSurfaceDetail | SurfaceDetail () const |
Handle_Graphic3d_TextureEnv | TextureEnv () const |
Standard_Boolean | Transparency () const |
Returns the transparency activity. | |
V3d_TypeOfVisualization | Visualization () const |
Returns the current visualisation mode. | |
Standard_Boolean | Antialiasing () const |
Indicates if the antialiasing is active (True) or inactive (False). | |
Standard_Boolean | ZCueing (Quantity_Length &Depth, Quantity_Length &Width) const |
Returns activity and information on the Zcueing. <Depth> : Depth of plane. <Width> : Thickness around the plane. | |
V3d_TypeOfZclipping | ZClipping (Quantity_Length &Depth, Quantity_Length &Width) const |
Returns current information on the ZClipping. <Depth> : Depth of plane. <Width> : Thickness around the plane. <TypeOfZclipping> : "BACK" "FRONT" "SLICE" "OFF" | |
Standard_Boolean | IfMoreLights () const |
Returns True if One light more can be activated in this View. | |
void | InitActiveLights () |
initializes an iteration on the active Lights. | |
Standard_Boolean | MoreActiveLights () const |
returns true if there are more active Light(s) to return. | |
void | NextActiveLights () |
Go to the next active Light (if there is not, ActiveLight will raise an exception) | |
Handle_V3d_Light | ActiveLight () const |
Standard_Boolean | IfMorePlanes () const |
Returns True if One clipping plane more can be activated in this View. | |
void | InitActivePlanes () |
initializes an iteration on the active Planes. | |
Standard_Boolean | MoreActivePlanes () const |
returns true if there are more active Plane(s) to return. | |
void | NextActivePlanes () |
Go to the next active Plane (if there is not, ActivePlane will raise an exception) | |
Handle_V3d_Plane | ActivePlane () const |
Handle_V3d_Viewer | Viewer () const |
Returns the viewer in which the view has been created. | |
Standard_Boolean | IfWindow () const |
Returns True if MyView is associated with a window . | |
Handle_Aspect_Window | Window () const |
Returns the Aspect Window associated with the view. | |
V3d_TypeOfView | Type () const |
Returns the Type of the View | |
void | Pan (const Standard_Integer Dx, const Standard_Integer Dy, const Quantity_Factor aZoomFactor=1) |
translates the center of the view and zooms the view. and updates the view. | |
void | Zoom (const Standard_Integer X1, const Standard_Integer Y1, const Standard_Integer X2, const Standard_Integer Y2) |
Zoom the view according to a zoom factor computed from the distance between the 2 mouse position <X1,Y1>,<X2,Y2> | |
void | Zoom (const Standard_Integer X, const Standard_Integer Y) |
Zoom the view according to a zoom factor computed from the distance between the last and new mouse position <X,Y> | |
void | StartZoomAtPoint (const Standard_Integer xpix, const Standard_Integer ypix) |
Defines the point (pixel) of zooming (for the method ZoomAtPoint()). | |
void | ZoomAtPoint (const Standard_Integer mouseStartX, const Standard_Integer mouseStartY, const Standard_Integer mouseEndX, const Standard_Integer mouseEndY) |
Zooms the model at a pixel defined by the method StartZoomAtPoint(). | |
void | AxialScale (const Standard_Integer Dx, const Standard_Integer Dy, const V3d_TypeOfAxe Axis) |
Performs anisotropic scaling of <me> view along the given <Axis>. The scale factor is calculated on a basis of the mouse pointer displacement <Dx,Dy>. The calculated scale factor is then passed to SetAxialScale(Sx, Sy, Sz) method. | |
void | StartRotation (const Standard_Integer X, const Standard_Integer Y, const Quantity_Ratio zRotationThreshold=0.0) |
Begin the rotation of the view arround the screen axis according to the mouse position <X,Y>. Warning: Enable rotation around the Z screen axis when <zRotationThreshold> factor is > 0 soon the distance from the start point and the center of the view is > (medium viewSize * <zRotationThreshold> ). Generally a value of 0.4 is usable to rotate around XY screen axis inside the circular treshold area and to rotate around Z screen axis outside this area. | |
void | Rotation (const Standard_Integer X, const Standard_Integer Y) |
Continues the rotation of the view with an angle computed from the last and new mouse position <X,Y>. | |
void | SetFocale (const Quantity_Length Focale) |
Change View Plane Distance for Perspective Views //! Warning! raises TypeMismatch from Standard if the view is not a perspective view. | |
Quantity_Length | Focale () const |
Returns the View Plane Distance for Perspective Views | |
Handle_Visual3d_View | View () const |
Returns the associated Visual3d view. | |
Visual3d_ViewMapping | ViewMapping () const |
Returns the current mapping of the view. | |
Visual3d_ViewOrientation | ViewOrientation () const |
Returns the current orientation of the view. | |
Standard_Boolean | TransientManagerBeginDraw (const Standard_Boolean DoubleBuffer=Standard_False, const Standard_Boolean RetainMode=Standard_False) const |
Begins any graphics in the view <aView> Redraw any structured graphics in the back buffer before if <DoubleBuffer> is TRUE. Restore the front buffer from the back before if <DoubleBuffer> is FALSE. if <RetainMode> is TRUE. the graphic managed itself exposure,resizing ... if <RetainMode> is FALSE. the application must managed itself exposure,resizing ... | |
void | TransientManagerClearDraw () const |
Clear all transient graphics in the view <aView> | |
Standard_Boolean | TransientManagerBeginAddDraw () const |
Begins any add graphics in the view <aView> Redraw any structured graphics in the back buffer before the application must managed itself exposure,resizing ... Warning: Returns TRUE if transient drawing is enabled in the associated view. Returns FALSE ,if nothing works because something is wrong for the transient principle : | |
void | SetAnimationModeOn () |
Activates animation mode. When the animation mode is activated in the view, all Graphic3d_Structure are stored in a graphic object. | |
void | SetAnimationModeOff () |
Deactivates the animation mode. | |
Standard_Boolean | AnimationModeIsOn () const |
Returns the activity of the animation mode. | |
void | SetAnimationMode (const Standard_Boolean anAnimationFlag=Standard_True, const Standard_Boolean aDegenerationFlag=Standard_False) |
Enable/Disable animation/degeneration mode | |
Standard_Boolean | AnimationMode (Standard_Boolean &isDegenerate) const |
Returns the animation and degenerate status. | |
void | SetDegenerateModeOn () |
Activates degenerate mode. When the degenerate mode is activated in the view, all Graphic3d_Structure with the type TOS_COMPUTED displayed in this view are not computed. Warning: Obsolete method , use SetComputedMode() | |
void | SetDegenerateModeOff () |
Deactivates the degenerate mode. Category: Methods to modify the class definition Warning: if the computed mode has been disabled in the viewer the mode will remain degenerated. Warning: Obsolete method , use SetComputedMode() | |
Standard_Boolean | DegenerateModeIsOn () const |
Returns the activity of the degenerate mode. | |
void | SetComputedMode (const Standard_Boolean aMode) |
Switches computed HLR mode in the view | |
Standard_Boolean | ComputedMode () const |
Returns the computed HLR mode state | |
void | WindowFitAll (const Standard_Integer Xmin, const Standard_Integer Ymin, const Standard_Integer Xmax, const Standard_Integer Ymax) |
idem than WindowFit | |
virtual void | SetPlotter (const Handle< Graphic3d_Plotter > &aPlotter) |
Set a plotter for plotting the contents of the view field MyPlotter | |
void | Plot () |
Create a 2D View for plotting the contents of the view | |
void | SetGrid (const gp_Ax3 &aPlane, const Handle< Aspect_Grid > &aGrid) |
Defines or Updates the definition of the grid in <me> | |
void | SetGridGraphicValues (const Handle< Aspect_Grid > &aGrid) |
Defines or Updates the graphic definition of the grid in <me> | |
void | SetGridActivity (const Standard_Boolean aFlag) |
Defines or Updates the activity of the grid in <me> | |
Standard_Real | Tumble (const Standard_Integer NbImages=314, const Standard_Boolean AnimationMode=Standard_False) |
Animates the view <me> Returns the number of images per second if <AnimationMode> is Standard_True, the animation mode is activated. | |
void | ScreenCopy (const Handle< PlotMgt_PlotterDriver > &aPlotterDriver, const Standard_Boolean fWhiteBackground=Standard_True, const Quantity_Factor aScale=1.0) |
dump the view | |
Standard_Boolean | Dump (const Standard_CString theFile, const Graphic3d_BufferType &theBufferType=Graphic3d_BT_RGB) |
dump the full contents of the view at the same scale in the file <theFile>. The file name extension must be one of ".png",".bmp",".jpg",".gif". Returns FALSE when the dump has failed | |
Standard_Boolean | Dump (const Standard_CString theFile, const Aspect_FormatOfSheetPaper theFormat, const Graphic3d_BufferType &theBufferType=Graphic3d_BT_RGB) |
dump the full contents of the view with a different scale according to the required sheet paper size (format) and the ratio width/height of the view. and returns FALSE when the dump has failed Warning : the file name extension must be one of ".png",".bmp",".jpg",".gif" but make becarefull about the time to dump and resulting file size especially for the A0 format. NOTE that you can use after any standard system utility for editing or sending the image file to a laser printer. (i.e: Microsoft Photo Editor on Windows system or Image Viewer on SUN system) | |
Standard_Boolean | Print (const Aspect_Handle hPrnDC=NULL, const Standard_Boolean showDialog=Standard_True, const Standard_Boolean showBackground=Standard_True, const Standard_CString filename=NULL, const Aspect_PrintAlgo printAlgorithm=Aspect_PA_STRETCH) const |
print the contents of the view to printer with preview. <hPrnDC> : If you have already an PrinterDeviceContext (HDC), then you can pass it to the print routines. If you don't have an PrinterDeviceContext, then this parameter should be NULL. <showDialog> : If hPrnDC == NULL, then you can force the print routines to open a Print Dialog box. If you want to do this, then set showDialog to TRUE If you don't want to see a dialog (only possible, if you have a hPrnDC or the dialog box was opened once before) then set <showDialog> to FALSE. <showBackground> : When set to FALSE then print the view without background color (background is white) else set to TRUE for printing with current background color. <filename>: If != NULL, then the view will be printed to a file. <printAlgorithm>: If you want to select the print algorithm, then you can specify one of existing algorithms: Aspect_PA_STRETCH, Aspect_PA_TILE. Returns Standard_True if the data is passed to the printer, otherwise Standard_False if the print operation failed. This might be related to insufficient memory or some internal errors. All this errors are indicated by the message boxes (on level of OpenGl_GraphicDriver). Warning: This function can reuse FBO assigned to the view on level of OpenGl_GraphicDriver; Please take it into account if you use it for your purposes; Warning: Works only under Windows. | |
Standard_Boolean | ToPixMap (Image_PixMap &theImage, const Standard_Integer theWidth, const Standard_Integer theHeight, const Graphic3d_BufferType &theBufferType=Graphic3d_BT_RGB, const Standard_Boolean theForceCentered=Standard_True) |
dump the full contents of the view to a pixmap of pixel size <theWidth>*<theHeight> and buffer type <theBufferType>. If <theForceCentered> is true view scene will be centered. Pixmap will be automatically (re)allocated when needed. | |
void | SetProjModel (const V3d_TypeOfProjectionModel amOdel=V3d_TPM_SCREEN) |
Manages projection model | |
V3d_TypeOfProjectionModel | ProjModel () const |
Returns the current projection model | |
void | SetBackFacingModel (const V3d_TypeOfBackfacingModel aModel=V3d_TOBM_AUTOMATIC) |
Manages display of the back faces When <aModel> is TOBM_AUTOMATIC the object backfaces are displayed only for surface objects and never displayed for solid objects. this was the previous mode. <aModel> is TOBM_ALWAYS_DISPLAYED the object backfaces are always displayed both for surfaces or solids. <aModel> is TOBM_NEVER_DISPLAYED the object backfaces are never displayed. | |
V3d_TypeOfBackfacingModel | BackFacingModel () const |
Returns current state of the back faces display | |
void | EnableDepthTest (const Standard_Boolean enable=Standard_True) const |
turns on/off opengl depth testing | |
Standard_Boolean | IsDepthTestEnabled () const |
returns the current state of the depth testing | |
void | EnableGLLight (const Standard_Boolean enable=Standard_True) const |
turns on/off opengl lighting, currently used in triedron displaying | |
Standard_Boolean | IsGLLightEnabled () const |
returns the current state of the gl lighting currently used in triedron displaying | |
Protected Member Functions | |
V3d_View (const Handle< V3d_Viewer > &VM, const V3d_TypeOfView Type=V3d_ORTHOGRAPHIC) | |
Initialises the view. | |
V3d_View (const Handle< V3d_Viewer > &VM, const Handle< V3d_View > &V, const V3d_TypeOfView Type=V3d_ORTHOGRAPHIC) | |
Initialises the view by copying. | |
Protected Attributes | |
V3d_TypeOfView | MyType |
Handle_Visual3d_View | MyView |
Visual3d_ViewMapping | MyViewMapping |
V3d_TypeOfProjectionModel | MyProjModel |
Friends | |
void | V3d_Viewer::SetViewOn () |
Activates all of the views of a viewer attached to a window. | |
void | V3d_Viewer::SetViewOn (const Handle< V3d_View > &View) |
Activates a particular view in the Viewer . Must be call if the Window attached to the view has been Deiconified . | |
void | V3d_Viewer::SetViewOff () |
Deactivates all the views of a Viewer attached to a window. | |
void | V3d_Viewer::SetViewOff (const Handle< V3d_View > &View) |
Deactivates a particular view in the Viewer. Must be call if the Window attached to the view has been Iconified . |
V3d_View::V3d_View | ( | const Handle< V3d_Viewer > & | VM, |
const V3d_TypeOfView | Type = V3d_ORTHOGRAPHIC |
||
) | [protected] |
V3d_View::V3d_View | ( | const Handle< V3d_Viewer > & | VM, |
const Handle< V3d_View > & | V, | ||
const V3d_TypeOfView | Type = V3d_ORTHOGRAPHIC |
||
) | [protected] |
Handle_V3d_Light V3d_View::ActiveLight | ( | ) | const |
Handle_V3d_Plane V3d_View::ActivePlane | ( | ) | const |
Standard_Boolean V3d_View::AnimationMode | ( | Standard_Boolean & | isDegenerate | ) | const |
Standard_Boolean V3d_View::AnimationModeIsOn | ( | ) | const |
Standard_Boolean V3d_View::Antialiasing | ( | ) | const |
void V3d_View::At | ( | V3d_Coordinate & | X, |
V3d_Coordinate & | Y, | ||
V3d_Coordinate & | Z | ||
) | const |
void V3d_View::AxialScale | ( | Standard_Real & | Sx, |
Standard_Real & | Sy, | ||
Standard_Real & | Sz | ||
) | const |
void V3d_View::AxialScale | ( | const Standard_Integer | Dx, |
const Standard_Integer | Dy, | ||
const V3d_TypeOfAxe | Axis | ||
) |
void V3d_View::BackgroundColor | ( | const Quantity_TypeOfColor | Type, |
Quantity_Parameter & | V1, | ||
Quantity_Parameter & | V2, | ||
Quantity_Parameter & | V3 | ||
) | const |
Quantity_Color V3d_View::BackgroundColor | ( | ) | const |
void V3d_View::Center | ( | V3d_Coordinate & | Xc, |
V3d_Coordinate & | Yc | ||
) | const |
Handle_Aspect_ColorScale V3d_View::ColorScale | ( | ) | const |
Standard_Boolean V3d_View::ComputedMode | ( | ) | const |
Quantity_Length V3d_View::Convert | ( | const Standard_Integer | Vp | ) | const |
void V3d_View::Convert | ( | const Standard_Integer | Xp, |
const Standard_Integer | Yp, | ||
V3d_Coordinate & | Xv, | ||
V3d_Coordinate & | Yv | ||
) | const |
Standard_Integer V3d_View::Convert | ( | const Quantity_Length | Vv | ) | const |
void V3d_View::Convert | ( | const V3d_Coordinate | Xv, |
const V3d_Coordinate | Yv, | ||
Standard_Integer & | Xp, | ||
Standard_Integer & | Yp | ||
) | const |
void V3d_View::Convert | ( | const Standard_Integer | Xp, |
const Standard_Integer | Yp, | ||
V3d_Coordinate & | X, | ||
V3d_Coordinate & | Y, | ||
V3d_Coordinate & | Z | ||
) | const |
void V3d_View::Convert | ( | const V3d_Coordinate | X, |
const V3d_Coordinate | Y, | ||
const V3d_Coordinate | Z, | ||
Standard_Integer & | Xp, | ||
Standard_Integer & | Yp | ||
) | const |
void V3d_View::ConvertToGrid | ( | const Standard_Integer | Xp, |
const Standard_Integer | Yp, | ||
V3d_Coordinate & | Xg, | ||
V3d_Coordinate & | Yg, | ||
V3d_Coordinate & | Zg | ||
) | const |
void V3d_View::ConvertToGrid | ( | const V3d_Coordinate | X, |
const V3d_Coordinate | Y, | ||
const V3d_Coordinate | Z, | ||
V3d_Coordinate & | Xg, | ||
V3d_Coordinate & | Yg, | ||
V3d_Coordinate & | Zg | ||
) | const |
void V3d_View::ConvertWithProj | ( | const Standard_Integer | Xp, |
const Standard_Integer | Yp, | ||
V3d_Coordinate & | X, | ||
V3d_Coordinate & | Y, | ||
V3d_Coordinate & | Z, | ||
Quantity_Parameter & | Vx, | ||
Quantity_Parameter & | Vy, | ||
Quantity_Parameter & | Vz | ||
) | const |
Standard_Boolean V3d_View::DegenerateModeIsOn | ( | ) | const |
Quantity_Length V3d_View::Depth | ( | ) | const |
void V3d_View::DepthFitAll | ( | const Quantity_Coefficient | Aspect = 0.01 , |
const Quantity_Coefficient | Margin = 0.01 |
||
) |
Standard_Boolean V3d_View::Dump | ( | const Standard_CString | theFile, |
const Graphic3d_BufferType & | theBufferType = Graphic3d_BT_RGB |
||
) |
Standard_Boolean V3d_View::Dump | ( | const Standard_CString | theFile, |
const Aspect_FormatOfSheetPaper | theFormat, | ||
const Graphic3d_BufferType & | theBufferType = Graphic3d_BT_RGB |
||
) |
void V3d_View::EnableDepthTest | ( | const Standard_Boolean | enable = Standard_True | ) | const |
void V3d_View::EnableGLLight | ( | const Standard_Boolean | enable = Standard_True | ) | const |
void V3d_View::Eye | ( | V3d_Coordinate & | X, |
V3d_Coordinate & | Y, | ||
V3d_Coordinate & | Z | ||
) | const |
void V3d_View::FitAll | ( | const Quantity_Coefficient | Coef = 0.01 , |
const Standard_Boolean | FitZ = Standard_False , |
||
const Standard_Boolean | update = Standard_True |
||
) |
void V3d_View::FitAll | ( | const V3d_Coordinate | Umin, |
const V3d_Coordinate | Vmin, | ||
const V3d_Coordinate | Umax, | ||
const V3d_Coordinate | Vmax | ||
) |
Quantity_Length V3d_View::Focale | ( | ) | const |
void V3d_View::FocalReferencePoint | ( | V3d_Coordinate & | X, |
V3d_Coordinate & | Y, | ||
V3d_Coordinate & | Z | ||
) | const |
void V3d_View::GradientBackgroundColors | ( | Quantity_Color & | Color1, |
Quantity_Color & | Color2 | ||
) | const |
Standard_Boolean V3d_View::IfMoreLights | ( | ) | const |
Standard_Boolean V3d_View::IfMorePlanes | ( | ) | const |
Standard_Boolean V3d_View::IfWindow | ( | ) | const |
Standard_Boolean V3d_View::IsActiveLight | ( | const Handle< V3d_Light > & | aLight | ) | const |
Standard_Boolean V3d_View::IsActivePlane | ( | const Handle< V3d_Plane > & | aPlane | ) | const |
Standard_Boolean V3d_View::IsDepthTestEnabled | ( | ) | const |
Standard_Boolean V3d_View::IsEmpty | ( | ) | const |
Standard_Boolean V3d_View::IsGLLightEnabled | ( | ) | const |
Standard_Boolean V3d_View::MoreActiveLights | ( | ) | const |
Standard_Boolean V3d_View::MoreActivePlanes | ( | ) | const |
void V3d_View::Move | ( | const Quantity_Length | Dx, |
const Quantity_Length | Dy, | ||
const Quantity_Length | Dz, | ||
const Standard_Boolean | Start = Standard_True |
||
) |
void V3d_View::Move | ( | const V3d_TypeOfAxe | Axe, |
const Quantity_Length | Length, | ||
const Standard_Boolean | Start = Standard_True |
||
) |
void V3d_View::Move | ( | const Quantity_Length | Length, |
const Standard_Boolean | Start = Standard_True |
||
) |
void V3d_View::Pan | ( | const Standard_Integer | Dx, |
const Standard_Integer | Dy, | ||
const Quantity_Factor | aZoomFactor = 1 |
||
) |
void V3d_View::Panning | ( | const Quantity_Length | Dx, |
const Quantity_Length | Dy, | ||
const Quantity_Factor | aZoomFactor = 1 , |
||
const Standard_Boolean | Start = Standard_True |
||
) |
void V3d_View::Place | ( | const Standard_Integer | x, |
const Standard_Integer | y, | ||
const Quantity_Factor | aZoomFactor = 1 |
||
) | [virtual] |
Implements Viewer_View.
void V3d_View::Plot | ( | ) |
Standard_Boolean V3d_View::Print | ( | const Aspect_Handle | hPrnDC = NULL , |
const Standard_Boolean | showDialog = Standard_True , |
||
const Standard_Boolean | showBackground = Standard_True , |
||
const Standard_CString | filename = NULL , |
||
const Aspect_PrintAlgo | printAlgorithm = Aspect_PA_STRETCH |
||
) | const |
void V3d_View::Proj | ( | Quantity_Parameter & | Vx, |
Quantity_Parameter & | Vy, | ||
Quantity_Parameter & | Vz | ||
) | const |
void V3d_View::Project | ( | const V3d_Coordinate | X, |
const V3d_Coordinate | Y, | ||
const V3d_Coordinate | Z, | ||
V3d_Coordinate & | Xp, | ||
V3d_Coordinate & | Yp | ||
) | const |
V3d_TypeOfProjectionModel V3d_View::ProjModel | ( | ) | const |
void V3d_View::ProjReferenceAxe | ( | const Standard_Integer | Xpix, |
const Standard_Integer | Ypix, | ||
V3d_Coordinate & | XP, | ||
V3d_Coordinate & | YP, | ||
V3d_Coordinate & | ZP, | ||
V3d_Coordinate & | VX, | ||
V3d_Coordinate & | VY, | ||
V3d_Coordinate & | VZ | ||
) | const |
void V3d_View::Redraw | ( | ) | const |
void V3d_View::Redraw | ( | const Standard_Integer | x, |
const Standard_Integer | y, | ||
const Standard_Integer | width, | ||
const Standard_Integer | height | ||
) | const |
void V3d_View::Remove | ( | ) | const |
void V3d_View::Reset | ( | const Standard_Boolean | update = Standard_True | ) |
void V3d_View::Rotate | ( | const Quantity_PlaneAngle | Ax, |
const Quantity_PlaneAngle | Ay, | ||
const Quantity_PlaneAngle | Az, | ||
const Standard_Boolean | Start = Standard_True |
||
) |
void V3d_View::Rotate | ( | const Quantity_PlaneAngle | Ax, |
const Quantity_PlaneAngle | Ay, | ||
const Quantity_PlaneAngle | Az, | ||
const V3d_Coordinate | X, | ||
const V3d_Coordinate | Y, | ||
const V3d_Coordinate | Z, | ||
const Standard_Boolean | Start = Standard_True |
||
) |
void V3d_View::Rotate | ( | const V3d_TypeOfAxe | Axe, |
const Quantity_PlaneAngle | Angle, | ||
const V3d_Coordinate | X, | ||
const V3d_Coordinate | Y, | ||
const V3d_Coordinate | Z, | ||
const Standard_Boolean | Start = Standard_True |
||
) |
void V3d_View::Rotate | ( | const V3d_TypeOfAxe | Axe, |
const Quantity_PlaneAngle | Angle, | ||
const Standard_Boolean | Start = Standard_True |
||
) |
void V3d_View::Rotate | ( | const Quantity_PlaneAngle | Angle, |
const Standard_Boolean | Start = Standard_True |
||
) |
Quantity_Factor V3d_View::Scale | ( | ) | const |
void V3d_View::ScreenCopy | ( | const Handle< PlotMgt_PlotterDriver > & | aPlotterDriver, |
const Standard_Boolean | fWhiteBackground = Standard_True , |
||
const Quantity_Factor | aScale = 1.0 |
||
) |
void V3d_View::SetAnimationMode | ( | const Standard_Boolean | anAnimationFlag = Standard_True , |
const Standard_Boolean | aDegenerationFlag = Standard_False |
||
) |
void V3d_View::SetAt | ( | const V3d_Coordinate | X, |
const V3d_Coordinate | Y, | ||
const V3d_Coordinate | Z | ||
) |
void V3d_View::SetAxialScale | ( | const Standard_Real | Sx, |
const Standard_Real | Sy, | ||
const Standard_Real | Sz | ||
) |
void V3d_View::SetAxis | ( | const V3d_Coordinate | X, |
const V3d_Coordinate | Y, | ||
const V3d_Coordinate | Z, | ||
const Quantity_Parameter | Vx, | ||
const Quantity_Parameter | Vy, | ||
const Quantity_Parameter | Vz | ||
) |
void V3d_View::SetBackgroundColor | ( | const Quantity_TypeOfColor | Type, |
const Quantity_Parameter | V1, | ||
const Quantity_Parameter | V2, | ||
const Quantity_Parameter | V3 | ||
) |
void V3d_View::SetBackgroundColor | ( | const Quantity_Color & | Color | ) |
void V3d_View::SetBackgroundImage | ( | const Standard_CString | FileName, |
const Aspect_FillMethod | FillStyle = Aspect_FM_CENTERED , |
||
const Standard_Boolean | update = Standard_False |
||
) |
void V3d_View::SetBgGradientColors | ( | const Quantity_Color & | Color1, |
const Quantity_Color & | Color2, | ||
const Aspect_GradientFillMethod | FillStyle = Aspect_GFM_HOR , |
||
const Standard_Boolean | update = Standard_False |
||
) |
void V3d_View::SetBgGradientColors | ( | const Quantity_NameOfColor | Color1, |
const Quantity_NameOfColor | Color2, | ||
const Aspect_GradientFillMethod | FillStyle = Aspect_GFM_HOR , |
||
const Standard_Boolean | update = Standard_False |
||
) |
void V3d_View::SetBgGradientStyle | ( | const Aspect_GradientFillMethod | AMethod = Aspect_GFM_HOR , |
const Standard_Boolean | update = Standard_False |
||
) |
void V3d_View::SetBgImageStyle | ( | const Aspect_FillMethod | FillStyle, |
const Standard_Boolean | update = Standard_False |
||
) |
void V3d_View::SetCenter | ( | const V3d_Coordinate | Xc, |
const V3d_Coordinate | Yc | ||
) |
void V3d_View::SetDepth | ( | const Quantity_Length | Depth | ) |
void V3d_View::SetFocale | ( | const Quantity_Length | Focale | ) |
void V3d_View::SetGrid | ( | const gp_Ax3 & | aPlane, |
const Handle< Aspect_Grid > & | aGrid | ||
) |
void V3d_View::SetGridGraphicValues | ( | const Handle< Aspect_Grid > & | aGrid | ) |
void V3d_View::SetLayerMgr | ( | const Handle< V3d_LayerMgr > & | aMgr | ) |
void V3d_View::SetLightOff | ( | const Handle< V3d_Light > & | MyLight | ) |
void V3d_View::SetLightOn | ( | const Handle< V3d_Light > & | MyLight | ) |
void V3d_View::SetMagnify | ( | const Handle< Aspect_Window > & | IdWin, |
const Handle< V3d_View > & | aPreviousView, | ||
const Standard_Integer | x1, | ||
const Standard_Integer | y1, | ||
const Standard_Integer | x2, | ||
const Standard_Integer | y2 | ||
) |
void V3d_View::SetPlaneOff | ( | const Handle< V3d_Plane > & | MyPlane | ) |
void V3d_View::SetPlaneOn | ( | const Handle< V3d_Plane > & | MyPlane | ) |
virtual void V3d_View::SetPlotter | ( | const Handle< Graphic3d_Plotter > & | aPlotter | ) | [virtual] |
void V3d_View::SetProj | ( | const Quantity_Parameter | Vx, |
const Quantity_Parameter | Vy, | ||
const Quantity_Parameter | Vz | ||
) |
void V3d_View::SetProj | ( | const V3d_TypeOfOrientation | Orientation | ) |
void V3d_View::SetScale | ( | const Quantity_Factor | Coef | ) |
void V3d_View::SetSize | ( | const Quantity_Length | Size | ) |
void V3d_View::SetSurfaceDetail | ( | const V3d_TypeOfSurfaceDetail | SurfaceDetail | ) |
void V3d_View::SetTextureEnv | ( | const Handle< Graphic3d_TextureEnv > & | ATexture | ) |
void V3d_View::SetTransparency | ( | const Standard_Boolean | AnActivity = Standard_False | ) |
void V3d_View::SetTwist | ( | const Quantity_PlaneAngle | Angle | ) |
void V3d_View::SetUp | ( | const Quantity_Parameter | Vx, |
const Quantity_Parameter | Vy, | ||
const Quantity_Parameter | Vz | ||
) |
void V3d_View::SetUp | ( | const V3d_TypeOfOrientation | Orientation | ) |
void V3d_View::SetViewingVolume | ( | const Standard_Real | Left, |
const Standard_Real | Right, | ||
const Standard_Real | Bottom, | ||
const Standard_Real | Top, | ||
const Standard_Real | ZNear, | ||
const Standard_Real | ZFar | ||
) |
void V3d_View::SetWindow | ( | const Handle< Aspect_Window > & | IdWin | ) |
void V3d_View::SetWindow | ( | const Handle< Aspect_Window > & | aWindow, |
const Aspect_RenderingContext | aContext, | ||
const Aspect_GraphicCallbackProc & | aDisplayCB, | ||
const Standard_Address | aClientData | ||
) |
void V3d_View::SetZoom | ( | const Quantity_Factor | Coef, |
const Standard_Boolean | Start = Standard_True |
||
) |
void V3d_View::SetZSize | ( | const Quantity_Length | Size | ) |
V3d_TypeOfShadingModel V3d_View::ShadingModel | ( | ) | const |
void V3d_View::Size | ( | Quantity_Length & | Width, |
Quantity_Length & | Height | ||
) | const |
void V3d_View::StartRotation | ( | const Standard_Integer | X, |
const Standard_Integer | Y, | ||
const Quantity_Ratio | zRotationThreshold = 0.0 |
||
) |
void V3d_View::StartZoomAtPoint | ( | const Standard_Integer | xpix, |
const Standard_Integer | ypix | ||
) |
Handle_Graphic3d_TextureEnv V3d_View::TextureEnv | ( | ) | const |
Standard_Boolean V3d_View::ToPixMap | ( | Image_PixMap & | theImage, |
const Standard_Integer | theWidth, | ||
const Standard_Integer | theHeight, | ||
const Graphic3d_BufferType & | theBufferType = Graphic3d_BT_RGB , |
||
const Standard_Boolean | theForceCentered = Standard_True |
||
) |
Standard_Boolean V3d_View::TransientManagerBeginDraw | ( | const Standard_Boolean | DoubleBuffer = Standard_False , |
const Standard_Boolean | RetainMode = Standard_False |
||
) | const |
void V3d_View::TransientManagerClearDraw | ( | ) | const |
void V3d_View::Translate | ( | const Quantity_Length | Dx, |
const Quantity_Length | Dy, | ||
const Quantity_Length | Dz, | ||
const Standard_Boolean | Start = Standard_True |
||
) |
void V3d_View::Translate | ( | const V3d_TypeOfAxe | Axe, |
const Quantity_Length | Length, | ||
const Standard_Boolean | Start = Standard_True |
||
) |
void V3d_View::Translate | ( | const Quantity_Length | Length, |
const Standard_Boolean | Start = Standard_True |
||
) |
Standard_Boolean V3d_View::Transparency | ( | ) | const |
void V3d_View::TriedronDisplay | ( | const Aspect_TypeOfTriedronPosition | APosition = Aspect_TOTP_CENTER , |
const Quantity_NameOfColor | AColor = Quantity_NOC_WHITE , |
||
const Standard_Real | AScale = 0.02 , |
||
const V3d_TypeOfVisualization | AMode = V3d_WIREFRAME |
||
) |
Standard_Real V3d_View::Tumble | ( | const Standard_Integer | NbImages = 314 , |
const Standard_Boolean | AnimationMode = Standard_False |
||
) |
void V3d_View::Turn | ( | const Quantity_PlaneAngle | Ax, |
const Quantity_PlaneAngle | Ay, | ||
const Quantity_PlaneAngle | Az, | ||
const Standard_Boolean | Start = Standard_True |
||
) |
void V3d_View::Turn | ( | const V3d_TypeOfAxe | Axe, |
const Quantity_PlaneAngle | Angle, | ||
const Standard_Boolean | Start = Standard_True |
||
) |
void V3d_View::Turn | ( | const Quantity_PlaneAngle | Angle, |
const Standard_Boolean | Start = Standard_True |
||
) |
Quantity_PlaneAngle V3d_View::Twist | ( | ) | const |
V3d_TypeOfView V3d_View::Type | ( | ) | const |
void V3d_View::Up | ( | Quantity_Parameter & | Vx, |
Quantity_Parameter & | Vy, | ||
Quantity_Parameter & | Vz | ||
) | const |
void V3d_View::Update | ( | ) | const [virtual] |
Implements Viewer_View.
void V3d_View::UpdateLights | ( | ) | const |
Handle_Visual3d_View V3d_View::View | ( | ) | const |
Handle_V3d_Viewer V3d_View::Viewer | ( | ) | const |
Visual3d_ViewMapping V3d_View::ViewMapping | ( | ) | const |
Handle_Aspect_Window V3d_View::Window | ( | ) | const |
void V3d_View::WindowFit | ( | const Standard_Integer | Xmin, |
const Standard_Integer | Ymin, | ||
const Standard_Integer | Xmax, | ||
const Standard_Integer | Ymax | ||
) | [virtual] |
Implements Viewer_View.
void V3d_View::WindowFitAll | ( | const Standard_Integer | Xmin, |
const Standard_Integer | Ymin, | ||
const Standard_Integer | Xmax, | ||
const Standard_Integer | Ymax | ||
) |
void V3d_View::ZBufferTriedronSetup | ( | const Quantity_NameOfColor | XColor = Quantity_NOC_RED , |
const Quantity_NameOfColor | YColor = Quantity_NOC_GREEN , |
||
const Quantity_NameOfColor | ZColor = Quantity_NOC_BLUE1 , |
||
const Standard_Real | SizeRatio = 0.8 , |
||
const Standard_Real | AxisDiametr = 0.05 , |
||
const Standard_Integer | NbFacettes = 12 |
||
) |
V3d_TypeOfZclipping V3d_View::ZClipping | ( | Quantity_Length & | Depth, |
Quantity_Length & | Width | ||
) | const |
Standard_Boolean V3d_View::ZCueing | ( | Quantity_Length & | Depth, |
Quantity_Length & | Width | ||
) | const |
void V3d_View::ZFitAll | ( | const Quantity_Coefficient | Coef = 1.0 | ) |
void V3d_View::Zoom | ( | const Standard_Integer | X1, |
const Standard_Integer | Y1, | ||
const Standard_Integer | X2, | ||
const Standard_Integer | Y2 | ||
) |
void V3d_View::ZoomAtPoint | ( | const Standard_Integer | mouseStartX, |
const Standard_Integer | mouseStartY, | ||
const Standard_Integer | mouseEndX, | ||
const Standard_Integer | mouseEndY | ||
) |
Standard_Real V3d_View::ZSize | ( | ) | const |
void V3d_Viewer::SetViewOff | ( | ) | [friend] |
void V3d_Viewer::SetViewOff | ( | const Handle< V3d_View > & | View | ) | [friend] |
void V3d_Viewer::SetViewOn | ( | ) | [friend] |
void V3d_Viewer::SetViewOn | ( | const Handle< V3d_View > & | View | ) | [friend] |
V3d_TypeOfProjectionModel V3d_View::MyProjModel [protected] |
V3d_TypeOfView V3d_View::MyType [protected] |
Handle_Visual3d_View V3d_View::MyView [protected] |
Visual3d_ViewMapping V3d_View::MyViewMapping [protected] |