3ds Max C++ API Reference
CameraState Struct Reference

Note: The camera looks down the negative Z axis, with X to the right and Y up. More...

#include <object.h>

+ Inheritance diagram for CameraState:

Public Member Functions

 CameraState ()
 

Public Attributes

DWORD cbStruct
 
BOOL isOrtho
 Flag to indicate if the camera uses orthographic projection (TRUE) or perspective (FALSE). More...
 
float fov
 The camera field-of-view in radians. More...
 
float tdist
 Target distance for free cameras. More...
 
BOOL horzLine
 Horizon line display state. More...
 
int manualClip
 Flag to indicate if camera has manual clipping enabled. More...
 
float hither
 Hither clipping plane distance. More...
 
float yon
 Yon clipping plane distance. More...
 
float nearRange
 Near camera range radius. More...
 
float farRange
 Far camera range radius. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from MaxHeapOperators
static UtilExport voidoperator new (size_t size)
 Standard new operator used to allocate objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e)
 Standard new operator used to allocate objects if there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new (size_t size, const char *filename, int line)
 New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate objects that takes the type of memory, filename and line number where the new was called If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e, const char *filename, int line)
 New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new (size_t size, unsigned long flags)
 New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e, unsigned long flags)
 New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size, const char *filename, int line)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate arrays of objects. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e, const char *filename, int line)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size, unsigned long flags)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e, unsigned long flags)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport void operator delete (void *ptr)
 Standard delete operator used to deallocate an object If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e)
 Standard delete operator used to deallocate an object If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete (void *ptr, const char *filename, int line)
 Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, int block_type, const char *filename, int line)
 Delete operator used to deallocate an object that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e, const char *filename, int line)
 Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete (void *ptr, unsigned long flags)
 Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e, unsigned long flags)
 Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr)
 Standard delete operator used to deallocate an array of objects If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e)
 Standard delete operator used to deallocate an array of objects If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, int block_type, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr, unsigned long flags)
 Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e, unsigned long flags)
 Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, void *placement_ptr)
 Placement new operator. More...
 
static UtilExport void operator delete (void *ptr, void *placement_ptr)
 Placement delete operator. More...
 
static UtilExport voidaligned_malloc (size_t size, size_t alignment)
 Allocates memory on a specified alignment boundary. More...
 
static UtilExport voidaligned_realloc (void *ptr, size_t size, size_t alignment)
 Reallocates memory on a specified alignment boundary. More...
 
static UtilExport void aligned_free (void *ptr)
 Frees a block of memory that was allocated with aligned_malloc/aligned_realloc. More...
 

Detailed Description

Note: The camera looks down the negative Z axis, with X to the right and Y up.

See also
Class GenCamera

Constructor & Destructor Documentation

◆ CameraState()

CameraState ( )
inline
2790  : hither(0.0f), manualClip(0) , nearRange(0.0f),
2791  isOrtho(0), fov(0.0f), yon(0.0f), tdist(0.0f), horzLine(0), farRange(0.0f) {cbStruct = sizeof(CameraState);}
BOOL horzLine
Horizon line display state.
Definition: object.h:2800
float farRange
Far camera range radius.
Definition: object.h:2810
DWORD cbStruct
Definition: object.h:2792
BOOL isOrtho
Flag to indicate if the camera uses orthographic projection (TRUE) or perspective (FALSE).
Definition: object.h:2794
float nearRange
Near camera range radius.
Definition: object.h:2808
float fov
The camera field-of-view in radians.
Definition: object.h:2796
float hither
Hither clipping plane distance.
Definition: object.h:2804
float tdist
Target distance for free cameras.
Definition: object.h:2798
float yon
Yon clipping plane distance.
Definition: object.h:2806
CameraState()
Definition: object.h:2790
int manualClip
Flag to indicate if camera has manual clipping enabled.
Definition: object.h:2802

Member Data Documentation

◆ cbStruct

DWORD cbStruct

◆ isOrtho

BOOL isOrtho

Flag to indicate if the camera uses orthographic projection (TRUE) or perspective (FALSE).

◆ fov

float fov

The camera field-of-view in radians.

◆ tdist

float tdist

Target distance for free cameras.

◆ horzLine

BOOL horzLine

Horizon line display state.

◆ manualClip

int manualClip

Flag to indicate if camera has manual clipping enabled.

◆ hither

float hither

Hither clipping plane distance.

◆ yon

float yon

Yon clipping plane distance.

◆ nearRange

float nearRange

Near camera range radius.

◆ farRange

float farRange

Far camera range radius.