LibreOffice Module tools (master) 1
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
B3dViewport Class Reference

Viewport for B3D. More...

#include <b3dtrans.hxx>

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

Public Member Functions

 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)
 

Protected Member Functions

void CalcOrientation ()
 
- Protected Member Functions inherited from B3dTransformationSet
void PostSetObjectTrans ()
 Object transformation. More...
 
void PostSetOrientation ()
 
void PostSetProjection ()
 
virtual void DeviceRectangleChange ()
 

Private Attributes

basegfx::B3DPoint aVRP
 
basegfx::B3DVector aVPN
 
basegfx::B3DVector aVUV
 

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))
 

Detailed Description

Viewport for B3D.

Uses a simplified model, in which a point is described using a View Reference Point (VRP).

Definition at line 156 of file b3dtrans.hxx.

Constructor & Destructor Documentation

◆ B3dViewport() [1/3]

B3dViewport::B3dViewport ( )

Definition at line 353 of file b3dtrans.cxx.

References CalcOrientation().

◆ ~B3dViewport()

B3dViewport::~B3dViewport ( )
overridevirtual

Definition at line 361 of file b3dtrans.cxx.

◆ B3dViewport() [2/3]

B3dViewport::B3dViewport ( B3dViewport const &  )
default

◆ B3dViewport() [3/3]

B3dViewport::B3dViewport ( B3dViewport &&  )
default

Member Function Documentation

◆ CalcOrientation()

void B3dViewport::CalcOrientation ( )
protected

Definition at line 382 of file b3dtrans.cxx.

References aVPN, aVRP, aVUV, and B3dTransformationSet::SetOrientation().

Referenced by B3dViewport(), SetViewportValues(), and SetVUV().

◆ GetVPN()

const basegfx::B3DVector & B3dViewport::GetVPN ( ) const
inline

Definition at line 179 of file b3dtrans.hxx.

◆ GetVRP()

const basegfx::B3DPoint & B3dViewport::GetVRP ( ) const
inline

Definition at line 178 of file b3dtrans.hxx.

◆ GetVUV()

const basegfx::B3DVector & B3dViewport::GetVUV ( ) const
inline

Definition at line 180 of file b3dtrans.hxx.

◆ operator=() [1/2]

B3dViewport & B3dViewport::operator= ( B3dViewport &&  )
default

◆ operator=() [2/2]

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

◆ SetViewportValues()

void B3dViewport::SetViewportValues ( const basegfx::B3DPoint rNewVRP,
const basegfx::B3DVector rNewVPN,
const basegfx::B3DVector rNewVUV 
)

Definition at line 371 of file b3dtrans.cxx.

References aVPN, aVRP, aVUV, and CalcOrientation().

Referenced by B3dCamera::CalcNewViewportValues().

◆ SetVUV()

void B3dViewport::SetVUV ( const basegfx::B3DVector rNewVUV)

Definition at line 365 of file b3dtrans.cxx.

References aVUV, and CalcOrientation().

Referenced by B3dCamera::CalcNewViewportValues().

Member Data Documentation

◆ aVPN

basegfx::B3DVector B3dViewport::aVPN
private

Definition at line 160 of file b3dtrans.hxx.

Referenced by CalcOrientation(), and SetViewportValues().

◆ aVRP

basegfx::B3DPoint B3dViewport::aVRP
private

Definition at line 159 of file b3dtrans.hxx.

Referenced by CalcOrientation(), and SetViewportValues().

◆ aVUV

basegfx::B3DVector B3dViewport::aVUV
private

Definition at line 161 of file b3dtrans.hxx.

Referenced by CalcOrientation(), SetViewportValues(), and SetVUV().


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