MaxContext Class Reference
 
 
 
MaxContext Class Reference

This reference page is linked to from the following overview topics: Porting Object Plug-ins to Nitrous, About RenderItem.


#include <MaxContext.h>

Inheritance diagram for MaxContext:
MaxHeapOperators

Class Description

MaxContext contains pointers to all the viewports the given object will be displayed.

This is setup by system and is passed to plugin via IObjectDisplay::AddRenderItem function. It is an optional information for plugin developers, plugins can add/customize render items at that time according to this information.

Instances of MaxContext are very temporary objects and should only be used inside IObjectDisplay::AddRenderItem. Plugins should not store this object.

Public Member Functions

GraphicsDriverAPI  MaxContext ()
virtual GraphicsDriverAPI  ~MaxContext ()
GraphicsDriverAPI size_t  GetNumberOfViewports () const
  Get the number of viewport pointers of this context.
GraphicsDriverAPI ViewExp GetViewport (size_t i) const
  Get the i-th viewport pointer of this context.

Protected Attributes

MaxContextImpl *  mpImpl

Constructor & Destructor Documentation

GraphicsDriverAPI MaxContext ( )
virtual GraphicsDriverAPI ~MaxContext ( ) [virtual]

Member Function Documentation

GraphicsDriverAPI size_t GetNumberOfViewports ( ) const

Get the number of viewport pointers of this context.

Returns:
the number of viewport pointers of this context.
GraphicsDriverAPI ViewExp* GetViewport ( size_t  i ) const

Get the i-th viewport pointer of this context.

Parameters:
i the index in this context.
Returns:
the i-th viewport pointer of this context.

Member Data Documentation

MaxContextImpl* mpImpl [protected]