pCon.planner Plugin SDK  Version 8.9
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Events
Public Member Functions | Properties | List of all members
X3g::Plugin::IOpenGLRenderer Class Reference

Realtime OpenGL Renderer. More...

Public Member Functions

IImageRenderImage (int pWidth, int pHeight)
 Renders image with given width and height. More...
 
ImageRenderImage (int pWidth, int pHeight, IEnumerable< DbEntity^ >^pEntities)
 Renders image of given modelspace entities with given width and height. More...
 

Properties

ICamera^  Camera [get]
 Camera parameters. More...
 
IRenderStyle^  Style [get, set]
 Rendering style. More...
 
System::Drawing::Color BackgroundColor
 Sets custom background color. More...
 

Detailed Description

Realtime OpenGL Renderer.

Member Function Documentation

X3g::Plugin::IImage X3g::Plugin::IOpenGLRenderer::RenderImage ( int  pWidth,
int  pHeight 
)

Renders image with given width and height.

Returned image has pre-multiplied alpha in case of transparent background.

Image X3g::Plugin::IOpenGLRenderer::RenderImage ( int  pWidth,
int  pHeight,
IEnumerable< DbEntity^ >^  pEntities 
)

Renders image of given modelspace entities with given width and height.

Returned image has pre-multiplied alpha in case of transparent background.

Property Documentation

System:: Drawing:: Color X3g::Plugin::IOpenGLRenderer::BackgroundColor

Sets custom background color.

White by default.

ICamera^ X3g::Plugin::IOpenGLRenderer::Camera
get

Camera parameters.

It's not allowed to assign another camera reference. Use ICamera::CopyFrom() instead.

IRenderStyle^ X3g::Plugin::IOpenGLRenderer::Style
getset

Rendering style.