Abstract interface for objects that can render using OpenGL. More...
#include <irender_viewport_gl.h>

Public Types | |
| enum | redraw_type_t { SYNCHRONOUS, ASYNCHRONOUS } |
Enumerates redraw request types. More... | |
| typedef sigc::signal< void, redraw_type_t > | redraw_request_signal_t |
| Used to signal any connected user interface components that a redraw is requested. | |
Public Member Functions | |
| virtual bool | get_ndc (icamera &Camera, const unsigned long PixelWidth, const unsigned long PixelHeight, rectangle &CameraRect, rectangle &WindowRect)=0 |
| Returns the normalized device coordinates for the viewport, allowing for mismatches between the aspect ratio of the window and the camera. | |
| virtual void | render_viewport (icamera &Camera, const unsigned long PixelWidth, const unsigned long PixelHeight, GLdouble ViewMatrix[16], GLdouble ProjectionMatrix[16], GLint Viewport[4])=0 |
| Redraws the document. | |
| virtual void | render_viewport_selection (const selection_state &SelectionState, icamera &Camera, const unsigned long PixelWidth, const unsigned long PixelHeight, const rectangle &Rectangle, GLdouble ViewMatrix[16], GLdouble ProjectionMatrix[16], GLint Viewport[4])=0 |
| Draws the document in OpenGL selection mode, so selection "hits" can be extracted. | |
| virtual redraw_request_signal_t & | redraw_request_signal ()=0 |
Protected Member Functions | |
| irender_viewport () | |
| irender_viewport (const irender_viewport &Other) | |
| irender_viewport & | operator= (const irender_viewport &) |
| virtual | ~irender_viewport () |
Abstract interface for objects that can render using OpenGL.
| typedef sigc::signal<void, redraw_type_t> k3d::gl::irender_viewport::redraw_request_signal_t |
Used to signal any connected user interface components that a redraw is requested.
| k3d::gl::irender_viewport::irender_viewport | ( | ) | [inline, protected] |
| k3d::gl::irender_viewport::irender_viewport | ( | const irender_viewport & | Other | ) | [inline, protected] |
| virtual k3d::gl::irender_viewport::~irender_viewport | ( | ) | [inline, protected, virtual] |
| virtual bool k3d::gl::irender_viewport::get_ndc | ( | icamera & | Camera, | |
| const unsigned long | PixelWidth, | |||
| const unsigned long | PixelHeight, | |||
| rectangle & | CameraRect, | |||
| rectangle & | WindowRect | |||
| ) | [pure virtual] |
Returns the normalized device coordinates for the viewport, allowing for mismatches between the aspect ratio of the window and the camera.
Implemented in module::opengl::render_engine.
| irender_viewport& k3d::gl::irender_viewport::operator= | ( | const irender_viewport & | ) | [inline, protected] |
| virtual redraw_request_signal_t& k3d::gl::irender_viewport::redraw_request_signal | ( | ) | [pure virtual] |
Implemented in module::opengl::render_engine.
Referenced by k3d::ngui::viewport::control::set_gl_engine().
| virtual void k3d::gl::irender_viewport::render_viewport | ( | icamera & | Camera, | |
| const unsigned long | PixelWidth, | |||
| const unsigned long | PixelHeight, | |||
| GLdouble | ViewMatrix[16], | |||
| GLdouble | ProjectionMatrix[16], | |||
| GLint | Viewport[4] | |||
| ) | [pure virtual] |
Redraws the document.
Implemented in module::opengl::render_engine.
Referenced by module::wgl::camera_to_bitmap::on_assign_pixels().
| virtual void k3d::gl::irender_viewport::render_viewport_selection | ( | const selection_state & | SelectionState, | |
| icamera & | Camera, | |||
| const unsigned long | PixelWidth, | |||
| const unsigned long | PixelHeight, | |||
| const rectangle & | Rectangle, | |||
| GLdouble | ViewMatrix[16], | |||
| GLdouble | ProjectionMatrix[16], | |||
| GLint | Viewport[4] | |||
| ) | [pure virtual] |
Draws the document in OpenGL selection mode, so selection "hits" can be extracted.
| SelectionState | The geometry components to be drawn | |
| PixelWidth | The width of the viewport in pixels | |
| PixelHeight | The width of the viewport in pixels | |
| FontListBase | ||
| Rectangle | Defines the selection region as a rectangle in screen (pixel coordinates) | |
| ViewMatrix | Returns the OpenGL view matrix used for drawing (the camera-to-world matrix) | |
| ProjectionMatrix | Returns the OpenGL projection matrix used for drawing | |
| Viewport | Returns the OpenGL viewport used for drawing |
Implemented in module::opengl::render_engine.
1.6.3