11 #ifndef __UT_Camera_h__
12 #define __UT_Camera_h__
101 return !(*
this == other);
163 x = winx[1] - winx[0];
164 y = winy[1] - winy[0];
169 x = (winx[0] + winx[1]) * 0.5 - 0.5;
170 y = (winy[0] + winy[1]) * 0.5 - 0.5;
197 #endif // __UT_Camera_h__
void setWindow(fpreal x, fpreal y, fpreal sizex, fpreal sizey)
sets the window from a window offset and a window size
void getWindowCenter(fpreal &x, fpreal &y) const
bool operator!=(const UT_CameraParms &other) const
JSON reader class which handles parsing of JSON or bJSON files.
Class which writes ASCII or binary JSON streams.
UT_API size_t UTformatBuffer(char *buffer, size_t buffer_size, const UT_CameraParms &camp)
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
bool isOrthographic() const
returns true if the camera is orthographic
UN_API void setFromOptions(UN_GraphData *graph_data, const UN_Options &graph_opts)
Load and set the graph based on the given options.
void getWindowSize(fpreal &x, fpreal &y) const
GA_API const UT_StringHolder transform
IMATH_HOSTDEVICE const Vec2< S > & operator*=(Vec2< S > &v, const Matrix22< T > &m) IMATH_NOEXCEPT
Vector-matrix multiplication: v *= m.
A map of string to various well defined value types.
GA_API const UT_StringHolder parms
SIM_API const UT_StringHolder position
fpreal getAspectRatio() const
Class to store JSON objects as C++ objects.
OBJ_ProjectionType projection
GLubyte GLubyte GLubyte GLubyte w
UT_OptionsHolder metadata