LibreOffice Module svx (master) 1
|
#include <camera3d.hxx>
Public Member Functions | |
Camera3D (const basegfx::B3DPoint &rPos, const basegfx::B3DPoint &rLookAt, double fFocalLen=35.0) | |
Camera3D () | |
void | SetViewWindow (double fX, double fY, double fW, double fH) |
void | SetPosition (const basegfx::B3DPoint &rNewPos) |
const basegfx::B3DPoint & | GetPosition () const |
void | SetLookAt (const basegfx::B3DPoint &rNewLookAt) |
void | SetPosAndLookAt (const basegfx::B3DPoint &rNewPos, const basegfx::B3DPoint &rNewLookAt) |
void | SetFocalLength (double fLen) |
double | GetFocalLength () const |
void | SetBankAngle (double fAngle) |
void | SetAutoAdjustProjection (bool bAdjust) |
Public Member Functions inherited from Viewport3D | |
Viewport3D () | |
void | SetVRP (const basegfx::B3DPoint &rNewVRP) |
void | SetVPN (const basegfx::B3DVector &rNewVPN) |
void | SetVUV (const basegfx::B3DVector &rNewVUV) |
void | SetPRP (const basegfx::B3DPoint &rNewPRP) |
const basegfx::B3DPoint & | GetVRP () const |
const basegfx::B3DVector & | GetVUV () const |
void | SetProjection (ProjectionType ePrj) |
ProjectionType | GetProjection () const |
void | SetViewWindow (double fX, double fY, double fW, double fH) |
void | SetDeviceWindow (const tools::Rectangle &rRect) |
const tools::Rectangle & | GetDeviceWindow () const |
const basegfx::B3DPoint & | GetViewPoint () |
Private Attributes | |
basegfx::B3DPoint | aPosition |
basegfx::B3DPoint | aLookAt |
double | fFocalLength |
double | fBankAngle |
bool | bAutoAdjustProjection |
Additional Inherited Members | |
Protected Attributes inherited from Viewport3D | |
basegfx::B3DHomMatrix | aViewTf |
basegfx::B3DPoint | aVRP |
basegfx::B3DVector | aVPN |
basegfx::B3DVector | aVUV |
basegfx::B3DPoint | aPRP |
ProjectionType | eProjection |
tools::Rectangle | aDeviceRect |
struct { | |
double X | |
double Y | |
double W | |
double H | |
} | aViewWin |
basegfx::B3DPoint | aViewPoint |
bool | bTfValid |
Definition at line 34 of file camera3d.hxx.
Camera3D::Camera3D | ( | const basegfx::B3DPoint & | rPos, |
const basegfx::B3DPoint & | rLookAt, | ||
double | fFocalLen = 35.0 |
||
) |
Definition at line 22 of file camera3d.cxx.
References SetFocalLength(), SetLookAt(), and SetPosition().
Camera3D::Camera3D | ( | ) |
Definition at line 32 of file camera3d.cxx.
|
inline |
Definition at line 57 of file camera3d.hxx.
Referenced by sdr::properties::E3dSceneProperties::PostItemChange(), and sdr::properties::E3dSceneProperties::SetSceneItemsFromCamera().
|
inline |
Definition at line 51 of file camera3d.hxx.
Referenced by sdr::properties::E3dSceneProperties::PostItemChange(), E3dScene::SetDefaultAttributes(), and sdr::properties::E3dSceneProperties::SetSceneItemsFromCamera().
|
inline |
Definition at line 62 of file camera3d.hxx.
Referenced by Svx3DPreviewControl::Construct(), Svx3DLightControl::Construct2(), EnhancedCustomShape3d::Create3DObject(), SvxDrawPage::CreateSdrObject_(), E3dView::InitScene(), and Svx3DSceneObject::setPropertyValueImpl().
void Camera3D::SetBankAngle | ( | double | fAngle | ) |
Definition at line 83 of file camera3d.cxx.
References aLookAt, aPosition, fBankAngle, basegfx::B3DVector::getPerpendicular(), basegfx::Tuple3D< typename TYPE >::getX(), basegfx::Tuple3D< typename TYPE >::getY(), basegfx::Tuple3D< typename TYPE >::getZ(), basegfx::B3DVector::normalize(), basegfx::B3DHomMatrix::rotate(), basegfx::B3DHomMatrix::set(), Viewport3D::SetVUV(), and basegfx::Tuple3D< typename TYPE >::setY().
Referenced by SetLookAt(), SetPosAndLookAt(), and SetPosition().
void Camera3D::SetFocalLength | ( | double | fLen | ) |
Definition at line 172 of file camera3d.cxx.
References Viewport3D::aViewWin, fFocalLength, and Viewport3D::SetPRP().
Referenced by Camera3D(), Svx3DPreviewControl::Construct(), Svx3DLightControl::Construct2(), EnhancedCustomShape3d::Create3DObject(), SvxDrawPage::CreateSdrObject_(), E3dView::InitScene(), sdr::properties::E3dSceneProperties::PostItemChange(), E3dScene::SetDefaultAttributes(), Svx3DSceneObject::setPropertyValueImpl(), and SetViewWindow().
void Camera3D::SetLookAt | ( | const basegfx::B3DPoint & | rNewLookAt | ) |
Definition at line 59 of file camera3d.cxx.
References aLookAt, aPosition, fBankAngle, SetBankAngle(), and Viewport3D::SetVPN().
Referenced by Camera3D().
void Camera3D::SetPosAndLookAt | ( | const basegfx::B3DPoint & | rNewPos, |
const basegfx::B3DPoint & | rNewLookAt | ||
) |
Definition at line 69 of file camera3d.cxx.
References aLookAt, aPosition, fBankAngle, SetBankAngle(), Viewport3D::SetVPN(), and Viewport3D::SetVRP().
Referenced by Svx3DPreviewControl::Construct(), Svx3DLightControl::Construct2(), EnhancedCustomShape3d::Create3DObject(), SvxDrawPage::CreateSdrObject_(), E3dView::InitScene(), and Svx3DSceneObject::setPropertyValueImpl().
void Camera3D::SetPosition | ( | const basegfx::B3DPoint & | rNewPos | ) |
Definition at line 48 of file camera3d.cxx.
References aLookAt, aPosition, fBankAngle, SetBankAngle(), Viewport3D::SetVPN(), and Viewport3D::SetVRP().
Referenced by Camera3D(), sdr::properties::E3dSceneProperties::PostItemChange(), and E3dScene::SetDefaultAttributes().
void Camera3D::SetViewWindow | ( | double | fX, |
double | fY, | ||
double | fW, | ||
double | fH | ||
) |
Definition at line 41 of file camera3d.cxx.
References bAutoAdjustProjection, fFocalLength, SetFocalLength(), and Viewport3D::SetViewWindow().
Referenced by Svx3DPreviewControl::Construct(), Svx3DLightControl::Construct2(), EnhancedCustomShape3d::Create3DObject(), SvxDrawPage::CreateSdrObject_(), E3dView::InitScene(), E3dScene::SetDefaultAttributes(), and Svx3DSceneObject::setPropertyValueImpl().
|
private |
Definition at line 37 of file camera3d.hxx.
Referenced by SetBankAngle(), SetLookAt(), SetPosAndLookAt(), and SetPosition().
|
private |
Definition at line 36 of file camera3d.hxx.
Referenced by SetBankAngle(), SetLookAt(), SetPosAndLookAt(), and SetPosition().
|
private |
Definition at line 41 of file camera3d.hxx.
Referenced by SetViewWindow().
|
private |
Definition at line 39 of file camera3d.hxx.
Referenced by SetBankAngle(), SetLookAt(), SetPosAndLookAt(), and SetPosition().
|
private |
Definition at line 38 of file camera3d.hxx.
Referenced by SetFocalLength(), and SetViewWindow().