LibreOffice Module tools (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
B3dCamera Class Referencefinal

#include <b3dtrans.hxx>

Inheritance diagram for B3dCamera:
[legend]
Collaboration diagram for B3dCamera:
[legend]

Public Member Functions

 B3dCamera (const basegfx::B3DPoint &rPos=basegfx::B3DPoint(0.0, 0.0, 1.0), const basegfx::B3DVector &rLkAt=basegfx::B3DVector(0.0, 0.0, 0.0), double fFocLen=35.0, double fBnkAng=0.0)
 
virtual ~B3dCamera () override
 
 B3dCamera (B3dCamera const &)=default
 
 B3dCamera (B3dCamera &&)=default
 
B3dCameraoperator= (B3dCamera const &)=default
 
B3dCameraoperator= (B3dCamera &&)=default
 
- Public Member Functions inherited from B3dViewport
 B3dViewport ()
 
virtual ~B3dViewport () override
 
 B3dViewport (B3dViewport const &)=default
 
 B3dViewport (B3dViewport &&)=default
 
B3dViewportoperator= (B3dViewport const &)=default
 
B3dViewportoperator= (B3dViewport &&)=default
 
void SetVUV (const basegfx::B3DVector &rNewVUV)
 
void SetViewportValues (const basegfx::B3DPoint &rNewVRP, const basegfx::B3DVector &rNewVPN, const basegfx::B3DVector &rNewVUV)
 
const basegfx::B3DPointGetVRP () const
 
const basegfx::B3DVectorGetVPN () const
 
const basegfx::B3DVectorGetVUV () const
 
- Public Member Functions inherited from B3dTransformationSet
 B3dTransformationSet ()
 
virtual ~B3dTransformationSet ()
 
 B3dTransformationSet (B3dTransformationSet const &)=default
 
 B3dTransformationSet (B3dTransformationSet &&)=default
 
B3dTransformationSetoperator= (B3dTransformationSet const &)=default
 
B3dTransformationSetoperator= (B3dTransformationSet &&)=default
 
void Reset ()
 reset values More...
 
void SetOrientation (const basegfx::B3DPoint &rVRP=basegfx::B3DPoint(0.0, 0.0, 1.0), const basegfx::B3DVector &rVPN=basegfx::B3DVector(0.0, 0.0, 1.0), const basegfx::B3DVector &rVUP=basegfx::B3DVector(0.0, 1.0, 0.0))
 Set the orientation. More...
 
void SetProjection (const basegfx::B3DHomMatrix &mProject)
 Projections for transformations. More...
 
const basegfx::B3DHomMatrixGetProjection ()
 
double GetRatio () const
 
void SetRatio (double fNew)
 
void SetDeviceRectangle (double fL=-1.0, double fR=1.0, double fB=-1.0, double fT=1.0)
 
double GetDeviceRectangleWidth () const
 
void SetPerspective (bool bNew)
 
void SetViewportRectangle (tools::Rectangle const &rRect, tools::Rectangle const &rVisible)
 
void SetViewportRectangle (tools::Rectangle const &rRect)
 
void CalcViewport ()
 Transformations for viewport. More...
 
basegfx::B3DPoint WorldToEyeCoor (const basegfx::B3DPoint &rVec)
 
basegfx::B3DPoint EyeToWorldCoor (const basegfx::B3DPoint &rVec)
 

Private Member Functions

void CalcNewViewportValues ()
 
void CalcFocalLength ()
 
virtual void DeviceRectangleChange () override
 

Private Attributes

basegfx::B3DPoint aPosition
 
basegfx::B3DVector aLookAt
 
double fFocalLength
 
double fBankAngle
 

Additional Inherited Members

- Static Public Member Functions inherited from B3dTransformationSet
static void Frustum (basegfx::B3DHomMatrix &rTarget, double fLeft=-1.0, double fRight=1.0, double fBottom=-1.0, double fTop=1.0, double fNear=0.001, double fFar=1.0)
 
static void Ortho (basegfx::B3DHomMatrix &rTarget, double fLeft=-1.0, double fRight=1.0, double fBottom=-1.0, double fTop=1.0, double fNear=0.0, double fFar=1.0)
 
static void Orientation (basegfx::B3DHomMatrix &rTarget, const basegfx::B3DPoint &aVRP=basegfx::B3DPoint(0.0, 0.0, 1.0), basegfx::B3DVector aVPN=basegfx::B3DVector(0.0, 0.0, 1.0), basegfx::B3DVector aVUP=basegfx::B3DVector(0.0, 1.0, 0.0))
 
- Protected Member Functions inherited from B3dViewport
void CalcOrientation ()
 
- Protected Member Functions inherited from B3dTransformationSet
void PostSetObjectTrans ()
 Object transformation. More...
 
void PostSetOrientation ()
 
void PostSetProjection ()
 
virtual void DeviceRectangleChange ()
 

Detailed Description

Definition at line 188 of file b3dtrans.hxx.

Constructor & Destructor Documentation

◆ B3dCamera() [1/3]

B3dCamera::B3dCamera ( const basegfx::B3DPoint rPos = basegfx::B3DPoint(0.0, 0.0, 1.0),
const basegfx::B3DVector rLkAt = basegfx::B3DVector(0.0, 0.0, 0.0),
double  fFocLen = 35.0,
double  fBnkAng = 0.0 
)

Definition at line 389 of file b3dtrans.cxx.

References CalcNewViewportValues().

◆ ~B3dCamera()

B3dCamera::~B3dCamera ( )
overridevirtual

Definition at line 400 of file b3dtrans.cxx.

◆ B3dCamera() [2/3]

B3dCamera::B3dCamera ( B3dCamera const &  )
default

◆ B3dCamera() [3/3]

B3dCamera::B3dCamera ( B3dCamera &&  )
default

Member Function Documentation

◆ CalcFocalLength()

void B3dCamera::CalcFocalLength ( )
private

◆ CalcNewViewportValues()

void B3dCamera::CalcNewViewportValues ( )
private

◆ DeviceRectangleChange()

void B3dCamera::DeviceRectangleChange ( )
overrideprivatevirtual

Reimplemented from B3dTransformationSet.

Definition at line 404 of file b3dtrans.cxx.

References CalcNewViewportValues(), and B3dTransformationSet::DeviceRectangleChange().

◆ operator=() [1/2]

B3dCamera & B3dCamera::operator= ( B3dCamera &&  )
default

◆ operator=() [2/2]

B3dCamera & B3dCamera::operator= ( B3dCamera const &  )
default

Member Data Documentation

◆ aLookAt

basegfx::B3DVector B3dCamera::aLookAt
private

Definition at line 209 of file b3dtrans.hxx.

Referenced by CalcNewViewportValues().

◆ aPosition

basegfx::B3DPoint B3dCamera::aPosition
private

Definition at line 208 of file b3dtrans.hxx.

Referenced by CalcNewViewportValues().

◆ fBankAngle

double B3dCamera::fBankAngle
private

Definition at line 211 of file b3dtrans.hxx.

Referenced by CalcNewViewportValues().

◆ fFocalLength

double B3dCamera::fFocalLength
private

Definition at line 210 of file b3dtrans.hxx.

Referenced by CalcFocalLength().


The documentation for this class was generated from the following files: