Bookshelf Contents Previous Next Glossary Index Search

AlOrthographicCamera

Interface to orthographic modeling cameras.

Synopsis

#include <AlOrthographicCamera.h>
class AlOrthographicCamera : public AlCamera
AlOrthographicCamera();
virtual ~AlOrthographicCamera();
virtual statusCode deleteObject();
virtual AlObject* copyWrapper() const;
statusCode create( AlWindow::AlViewType );
virtual AlObjectType type() const;

Description

This class provides an interface to orthographic cameras, primarily so that one can manipulate the image planes on those cameras. In general, little can be done to ortho cameras, as they are more of a modeling tool than geometry. In that regard, this class contains little functionality.

It is possible to create a new orthographic camera through the create() call. The valid parameters to that call are defined in AlWindow.h. Note that creating an orthographic camera automatically creates the associated modeling window.

Summary

AlOrthographicCamera::AlOrthographicCamera()

Description

Constructs an AlOrthographicCamera wrapper object.

AlOrthographicCamera::~AlOrthographicCamera()

Description

Deletes an AlOrthographicCamera wrapper object.

statusCode AlOrthographicCamera::deleteObject()

Description

Deletes the orthographic camera node.

Return Codes

sSuccess - the camera data was successfully deleted

sInvalidObject - the camera was not valid

AlObject* AlOrthographicCamera::copyWrapper() const

Description

Makes a copy of the AlCamera. The returned AlCamera will reference the same data as the original.

AlObjectType AlOrthographicCamera::type() const

Description

Returns the class identifier 'kOrthographicCameraType'.

AlOrthographicCamera* AlOrthographicCamera::asOrthographicCameraPtr()

Description

A virtual function that returns a non-null pointer to itself, indicating that it is safe to cast to an object of this class.

statusCode AlOrthographicCamera::create( AlWindow::AlViewType viewType )

Description

Creates an orthographic camera, with the associated window.

Arguments

viewType - type of window required

Return Codes

sSuccess - everything was created

sInsufficientMemory - there was not enough memory

sFailure - camera was not created

sInvalidArgument - the viewType must be one of kFront, kRight, kTop



Bookshelf Contents Previous Next Glossary Index Search

[email protected]
Copyright © 1998, Alias|Wavefront, a division of Silicon Graphics Limited. All rights reserved.