This reference page is linked to from the following overview topics: Porting Object Plug-ins to Nitrous, About RenderItem.
#include <MaxContext.h>
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 |
GraphicsDriverAPI MaxContext | ( | ) |
virtual GraphicsDriverAPI ~MaxContext | ( | ) | [virtual] |
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.
i | the index in this context. |
MaxContextImpl*
mpImpl [protected] |