OCC Main Page | Visualization | Toolkits | Packages | Class Hierarchy | Data Structures | File List | Data Fields | Globals

Visualization
TKV3d
V3d


V3d_Camera Class Reference

Creation and modification of a spot.
.

#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


Constructor & Destructor Documentation

Standard_EXPORT V3d_Camera::V3d_Camera const Handle(V3d_View)&  aView  ) 
 


Member Function Documentation

Standard_EXPORT void V3d_Camera::AerialPilot const Handle(V3d_View)&  aView,
const Standard_Integer  Xpix,
const Standard_Integer  Ypix
 

Standard_EXPORT Quantity_PlaneAngle V3d_Camera::Angle  )  const
 

Standard_EXPORT Quantity_PlaneAngle V3d_Camera::Aperture  )  const
 

Standard_EXPORT void V3d_Camera::Display const Handle(V3d_View)&  aView,
const V3d_TypeOfRepresentation  Representation
 

Standard_EXPORT void V3d_Camera::EarthPilot const Handle(V3d_View)&  aView,
const Standard_Integer  Xpix,
const Standard_Integer  Ypix
 

Standard_EXPORT void V3d_Camera::Erase  ) 
 

Standard_EXPORT void V3d_Camera::GoUp const Quantity_Parameter  Haut  ) 
 

Standard_EXPORT const V3d_Camera::Handle Standard_Type   )  const
 

Standard_EXPORT void V3d_Camera::Move const Quantity_Parameter  Dist  ) 
 

Standard_EXPORT void V3d_Camera::OnHideFace const Handle(V3d_View)&  aView  ) 
 

Standard_EXPORT void V3d_Camera::OnSeeFace const Handle(V3d_View)&  aView  ) 
 

Standard_EXPORT V3d_TypeOfPickCamera V3d_Camera::Pick const Handle(V3d_View)&  aView,
const Standard_Integer  Xpix,
const Standard_Integer  Ypix
const
 

Standard_EXPORT void V3d_Camera::Position V3d_Coordinate X,
V3d_Coordinate Y,
V3d_Coordinate Z
const
 

Standard_EXPORT Quantity_Parameter V3d_Camera::Radius  )  const
 

Standard_EXPORT Standard_Boolean V3d_Camera::SeeOrHide const Handle(V3d_View)&  aView  )  const
 

Standard_EXPORT void V3d_Camera::SetAngle const Quantity_PlaneAngle  Angle  ) 
 

Standard_EXPORT void V3d_Camera::SetAperture const Quantity_PlaneAngle  Angle  ) 
 

Standard_EXPORT void V3d_Camera::SetPosition const V3d_Coordinate  X,
const V3d_Coordinate  Y,
const V3d_Coordinate  Z
 

Standard_EXPORT void V3d_Camera::SetRadius const Quantity_Parameter  Radius  ) 
 

Standard_EXPORT void V3d_Camera::SetTarget const V3d_Coordinate  X,
const V3d_Coordinate  Y,
const V3d_Coordinate  Z
 

Standard_EXPORT void V3d_Camera::Symbol const Handle(Graphic3d_Group)&  gsymbol,
const Handle(V3d_View)&  aView
const [private]
 

static Standard_EXPORT void V3d_Camera::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
[static, private]
 

Standard_EXPORT void V3d_Camera::Target V3d_Coordinate X,
V3d_Coordinate Y,
V3d_Coordinate Z
const
 

Standard_EXPORT void V3d_Camera::Tracking const Handle(V3d_View)&  aView,
const V3d_TypeOfPickCamera  WathPick,
const Standard_Integer  Xpix,
const Standard_Integer  Ypix
 


Field Documentation

Quantity_PlaneAngle V3d_Camera::MyAngle [private]
 

Quantity_PlaneAngle V3d_Camera::MyAperture [private]
 

Handle_Graphic3d_Structure V3d_Camera::MyGraphicStructure [private]
 

Handle_Graphic3d_Structure V3d_Camera::MyGraphicStructure1 [private]
 

Graphic3d_Vertex V3d_Camera::MyPosition [private]
 

Graphic3d_Vertex V3d_Camera::MyTarget [private]
 

V3d_TypeOfRepresentation V3d_Camera::MyTypeOfRepresentation [private]
 


The documentation for this class was generated from the following file:
Generated on Mon Aug 25 13:56:24 2008 for OpenCASCADE by  doxygen 1.4.1