3ds Max C++ API Reference
Loading...
Searching...
No Matches
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).
 
float fov
 The camera field-of-view in radians.
 
float tdist
 Target distance for free cameras.
 
BOOL horzLine
 Horizon line display state.
 
int manualClip
 Flag to indicate if camera has manual clipping enabled.
 
float hither
 Hither clipping plane distance.
 
float yon
 Yon clipping plane distance.
 
float nearRange
 Near camera range radius.
 
float farRange
 Far camera range radius.
 

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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
static UtilExport voidoperator new[] (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate arrays of objects.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
static UtilExport voidoperator new (size_t size, void *placement_ptr)
 Placement new operator.
 
static UtilExport void operator delete (void *ptr, void *placement_ptr)
 Placement delete operator.
 
static UtilExport voidaligned_malloc (size_t size, size_t alignment)
 Allocates memory on a specified alignment boundary.
 
static UtilExport voidaligned_realloc (void *ptr, size_t size, size_t alignment)
 Reallocates memory on a specified alignment boundary.
 
static UtilExport void aligned_free (void *ptr)
 Frees a block of memory that was allocated with aligned_malloc/aligned_realloc.
 

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
2795 : hither(0.0f), manualClip(0) , nearRange(0.0f),
2796 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:2805
float farRange
Far camera range radius.
Definition: object.h:2815
DWORD cbStruct
Definition: object.h:2797
BOOL isOrtho
Flag to indicate if the camera uses orthographic projection (TRUE) or perspective (FALSE).
Definition: object.h:2799
float nearRange
Near camera range radius.
Definition: object.h:2813
float fov
The camera field-of-view in radians.
Definition: object.h:2801
float hither
Hither clipping plane distance.
Definition: object.h:2809
float tdist
Target distance for free cameras.
Definition: object.h:2803
float yon
Yon clipping plane distance.
Definition: object.h:2811
CameraState()
Definition: object.h:2795
int manualClip
Flag to indicate if camera has manual clipping enabled.
Definition: object.h:2807

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.