The HCamera class is the data type of a HOOPS Camera Attribute. More...

#include <HUtility.h>

Public Member Functions

bool CameraDifferent (HCamera &cam)
 
bool CameraDifferentByAngle (HCamera &cam)
 
void GetFromView (HBaseView *view)
 
void InvalidateCamera ()
 
void Set () const
 
void Show ()
 

Public Attributes

float field_height
 The height of the field of view.
 
float field_width
 The width of the field of view.
 
HPoint position
 The location of the camera.
 
char projection [128]
 The projection mode which can be "orthographic", "perspective" or "stretched".
 
HPoint target
 The area that the camera is directed at.
 
HPoint up_vector
 The direction of up.
 
bool valid
 True if the object has been initialized.
 

Detailed Description

The HCamera class is the data type of a HOOPS Camera Attribute.

HCamera represents all the data needed to define a HOOPS Camera.

Member Function Documentation

◆ CameraDifferent()

bool HCamera::CameraDifferent ( HCamera cam)

This method compares the setting of a given camera with this camera's settings.

Parameters
camThe camera to compare with.
Returns
True if this camera is different in anyway from the given camera or false if they are the same.

◆ CameraDifferentByAngle()

bool HCamera::CameraDifferentByAngle ( HCamera cam)

This method compares the setting of a given camera with this camera's settings based on the camera orientation only.

Parameters
camThe camera to compare with.
Returns
True if this camera is different in anyway from the given camera or false if they are the same.

◆ GetFromView()

void HCamera::GetFromView ( HBaseView view)

This method initializes the camera with the same camera settings under the view's scene key.

Parameters
viewA pointer to the HBaseView object from which to extract camera information.

◆ InvalidateCamera()

void HCamera::InvalidateCamera ( )
inline

This method invalidates the current camera settings.

◆ Set()

void HCamera::Set ( ) const

This method sets the camera on the currently open segment based on this object's member variables.

◆ Show()

void HCamera::Show ( )

The is method extracts the camera from the currently open segment and populates into this camera's settings.


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