#include <V3d_Camera.hxx>
Public Member Functions | |
Standard_EXPORT | V3d_Camera (const Handle(V3d_View)&aView) |
Creates the camera which relatives of View . | |
Standard_EXPORT void | SetPosition (const V3d_Coordinate X, const V3d_Coordinate Y, const V3d_Coordinate Z) |
Defines the position of the camera. . . | |
Standard_EXPORT void | SetAngle (const Quantity_PlaneAngle Angle) |
Defines the angular position of camera. //! Warning! raises BadValue from Viewer if Abs(Angle) > 2*PI; If the angle is <= 0 ou > PI . . | |
Standard_EXPORT void | SetAperture (const Quantity_PlaneAngle Angle) |
Defines the Aperture. //! Warning! raises BadValue from Viewer if angle <= 0 or > PI . | |
Standard_EXPORT void | SetTarget (const V3d_Coordinate X, const V3d_Coordinate Y, const V3d_Coordinate Z) |
Defines the target of the camera. . | |
Standard_EXPORT void | SetRadius (const Quantity_Parameter Radius) |
Define the radius. //! Warning! raises BadValue from Viewer if radius <= 0 . . | |
Standard_EXPORT void | OnHideFace (const Handle(V3d_View)&aView) |
Calculate the position of the camera, on the hide face of the picking sphere. . | |
Standard_EXPORT void | OnSeeFace (const Handle(V3d_View)&aView) |
Calculate the position of the camera, on the seen face of the picking sphere. . | |
Standard_EXPORT void | Tracking (const Handle(V3d_View)&aView, const V3d_TypeOfPickCamera WathPick, const Standard_Integer Xpix, const Standard_Integer Ypix) |
Tracking the camera position, or the picking sphere, or the radius of the picking sphere, that depends of initial picking "WhatPick" (see the pick method). If WhatPick is SPACECAMERA, then the parameters Xpix, Ypix are the coordinates of a translation vector. . | |
Standard_EXPORT void | AerialPilot (const Handle(V3d_View)&aView, const Standard_Integer Xpix, const Standard_Integer Ypix) |
Permits the driving of the camera in aerial mode. The user believes fly in plane ... . | |
Standard_EXPORT void | EarthPilot (const Handle(V3d_View)&aView, const Standard_Integer Xpix, const Standard_Integer Ypix) |
Permits the driving of the camera in earth mode. The user believes drive a car ... . | |
Standard_EXPORT void | Move (const Quantity_Parameter Dist) |
The camera move or move back in the direction camera, target of camera. . | |
Standard_EXPORT void | GoUp (const Quantity_Parameter Haut) |
The camera go up or go down on the z axis, the direction of camera is the same. . | |
Standard_EXPORT void | Display (const Handle(V3d_View)&aView, const V3d_TypeOfRepresentation Representation) |
Display the graphic structure of camera in the choosen view. We have two types of representation. - SIMPLE : Only the camera position is displayed. - COMPLETE : The position camera, the picking sphere and the radius of sphere are displayed. . | |
Standard_EXPORT void | Erase () |
Erase the graphic structure of camera. . | |
Standard_EXPORT void | Position (V3d_Coordinate &X, V3d_Coordinate &Y, V3d_Coordinate &Z) const |
Returns the position of the camera. . | |
Standard_EXPORT void | Target (V3d_Coordinate &X, V3d_Coordinate &Y, V3d_Coordinate &Z) const |
Returns the position of the target of camera. . | |
Standard_EXPORT Quantity_PlaneAngle | Angle () const |
Returns the angle. . | |
Standard_EXPORT Quantity_PlaneAngle | Aperture () const |
Returns the Aperture. . | |
Standard_EXPORT Quantity_Parameter | Radius () const |
Returns the radius of the picking sphere. . | |
Standard_EXPORT Standard_Boolean | SeeOrHide (const Handle(V3d_View)&aView) const |
Returns a Boolean on the status seen or hidden of the camera. If True the camera has seen. If False the camera has hidden. . | |
Standard_EXPORT V3d_TypeOfPickCamera | Pick (const Handle(V3d_View)&aView, const Standard_Integer Xpix, const Standard_Integer Ypix) const |
Returns the type of pick element. "POSITIONCAMERA" : Representation of camera position. "SPACECAMERA" : Representation of picking sphere. "ExtRADIUSCAMERA" : Representation of extern arrow. "IntRADIUSCAMERA" : Representation of intern arrow. "RADIUSTEXTCAMERA": Representation of radius value. "NOTHINGCAMERA" : Any component of camera. Determinate which type of tracking apply. . | |
Standard_EXPORT const | Handle (Standard_Type)&DynamicType() const |
Private Member Functions | |
Standard_EXPORT void | Symbol (const Handle(Graphic3d_Group)&gsymbol, const Handle(V3d_View)&aView) const |
Defined the representation of camera position. . | |
Static Private Member Functions | |
static Standard_EXPORT void | SymetricPointOnSphere (const Handle(V3d_View)&aView, const Graphic3d_Vertex &Center, const Graphic3d_Vertex &aPoint, const Quantity_Parameter Radius, V3d_Coordinate &X, V3d_Coordinate &Y, V3d_Coordinate &Z, Quantity_Parameter &VX, Quantity_Parameter &VY, Quantity_Parameter &VZ) |
Returns the symetric point coordinates of "aPoint" on the sphere of center "Center" and radius "Radius". VX,VY,VZ is the project vector of view. . | |
Private Attributes | |
Graphic3d_Vertex | MyPosition |
Graphic3d_Vertex | MyTarget |
Quantity_PlaneAngle | MyAngle |
Quantity_PlaneAngle | MyAperture |
Handle_Graphic3d_Structure | MyGraphicStructure |
Handle_Graphic3d_Structure | MyGraphicStructure1 |
V3d_TypeOfRepresentation | MyTypeOfRepresentation |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|