qCC_db  version 2.5.4 (Qt) - 19 Apr 2014
 All Classes Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | Public Attributes | List of all members
ccViewportParameters Class Reference

Standard parameters for GL displays/viewports. More...

#include <ccGenericGLDisplay.h>

Inheritance diagram for ccViewportParameters:
Inheritance graph
[legend]
Collaboration diagram for ccViewportParameters:
Collaboration graph
[legend]

Public Member Functions

 ccViewportParameters ()
 Default constructor.
 
 ccViewportParameters (const ccViewportParameters &params)
 Copy constructor.
 
virtual bool isSerializable () const
 Returns whether object is serializable of not.
 
virtual bool toFile (QFile &out) const
 Saves data to binay stream. More...
 
virtual bool fromFile (QFile &in, short dataVersion, int flags)
 Loads data from binay stream. More...
 
- Public Member Functions inherited from ccSerializableObject
virtual ~ccSerializableObject ()
 Desctructor.
 

Public Attributes

float pixelSize
 Current pixel size (in 'current unit'/pixel) More...
 
float zoom
 Current zoom.
 
ccGLMatrix viewMat
 Visualization matrix (rotation only)
 
float defaultPointSize
 Point size.
 
float defaultLineWidth
 Line width.
 
bool perspectiveView
 Perspective view state.
 
bool objectCenteredView
 Whether view is centered on displayed scene (true) or on the user eye (false) More...
 
CCVector3 pivotPoint
 Rotation pivot point (for object-centered view modes)
 
CCVector3 cameraCenter
 Camera center (for perspective mode)
 
float fov
 Camera F.O.V. (field of view - for perspective mode only)
 
float perspectiveAspectRatio
 Camera aspect ratio (perspective mode only)
 
float orthoAspectRatio
 3D view aspect ratio (ortho mode only) More...
 

Additional Inherited Members

- Public Types inherited from ccSerializableObject
enum  DeserializationFlags { DF_POINT_COORDS_64_BITS = 1, DF_SCALAR_VAL_32_BITS = 2 }
 Deserialization flags (bit-field) More...
 
- Static Public Member Functions inherited from ccSerializableObject
static bool WriteError ()
 Sends a custom error message (write error) and returns 'false'. More...
 
static bool ReadError ()
 Sends a custom error message (read error) and returns 'false'. More...
 
static bool MemoryError ()
 Sends a custom error message (not enough memory) and returns 'false'. More...
 
static bool CorruptError ()
 Sends a custom error message (corrupted file) and returns 'false'. More...
 

Detailed Description

Standard parameters for GL displays/viewports.

Member Function Documentation

bool ccViewportParameters::fromFile ( QFile &  in,
short  dataVersion,
int  flags 
)
virtual

Loads data from binay stream.

Parameters
ininput file (already opened)
dataVersionfile version
flagsdeserialization flags (see ccSerializableObject::DeserializationFlags)
Returns
success

Reimplemented from ccSerializableObject.

bool ccViewportParameters::toFile ( QFile &  out) const
virtual

Saves data to binay stream.

Parameters
outoutput file (already opened)
Returns
success

Reimplemented from ccSerializableObject.

Member Data Documentation

bool ccViewportParameters::objectCenteredView

Whether view is centered on displayed scene (true) or on the user eye (false)

Always true for ortho. mode.

float ccViewportParameters::orthoAspectRatio

3D view aspect ratio (ortho mode only)

AR = width / height

float ccViewportParameters::pixelSize

Current pixel size (in 'current unit'/pixel)

This scale is valid eveywhere in ortho. mode or at the focal distance in perspective mode. Warning: doesn't take current zoom into account!


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