Inheritance diagram for DzPBufferView:
Methods | |
void | aimCamera () |
void | frameCamera () |
Boolean | getAxesOn () |
Color | getBackground () |
DzCamera | getCamera () |
DzDrawStyle | getDrawStyle () |
Boolean | getFloorOn () |
Image | getImage () |
Boolean | hardwareRender (DzRenderHandler handler) |
Boolean | isValid () |
Number | pickOnGizmo (Point pnt) |
DzMaterial | pickOnMaterial (Point pnt) |
DzNode | pickOnNode (Point pnt) |
Boolean | redraw (Boolean drawGizmos) |
Boolean | renderThumbnail (DzRenderHandler handler) |
void | resetCamera () |
void | resize (Size size) |
void | setAxesOn (Boolean onOff) |
void | setBackground (Color color) |
void | setCamera (DzCamera cam) |
void | setDrawStyle (DzDrawStyle style) |
void | setFloorOn (Boolean onOff) |
Size | size () |
Constructors | |
DzPBufferView (Size size) | |
DzPBufferView () | |
Signals | |
void | activeCameraChanged (DzCamera cam) |
Signature: "activeCameraChanged(DzCamera*)" | |
void | axesOnChanged (Boolean onOff) |
Signature: "axesOnChanged(bool)" | |
void | backgroundColorChanged (Color color) |
Signature: "backgroundColorChanged(const QColor&)" | |
void | drawStyleChanged (DzDrawStyle style) |
Signature: "drawStyleChanged(DzDrawStyle*)" | |
void | floorOnChanged (Boolean onOff) |
Signature: "floorOnChanged(bool)" | |
void | sizeChanged (Size size) |
Signature: "sizeChanged(const QSize&)" | |
void | viewChanged () |
Signature: "viewChanged()" |
DzPBufferView::DzPBufferView | ( | ) |
Default Constructor
DzPBufferView::DzPBufferView | ( | Size | size | ) |
Creates a view with the given size.
size | The sive of the view - i.e. the size of the rendered image |
void DzPBufferView::activeCameraChanged | ( | DzCamera | cam | ) | [signal] |
Signature: "activeCameraChanged(DzCamera*)"
Emitted when the camera for the view has been changed.
void DzPBufferView::aimCamera | ( | ) |
Aims the view's camera at the currently selected item(s) in the scene.
void DzPBufferView::axesOnChanged | ( | Boolean | onOff | ) | [signal] |
Signature: "axesOnChanged(bool)"
Emitted when drawing of the axes in the view is enabled or disabled.
void DzPBufferView::backgroundColorChanged | ( | Color | color | ) | [signal] |
Signature: "backgroundColorChanged(const QColor&)"
Emitted when the background color for the view has been changed.
void DzPBufferView::drawStyleChanged | ( | DzDrawStyle | style | ) | [signal] |
Signature: "drawStyleChanged(DzDrawStyle*)"
Emitted when the drawstyle for the view has been changed.
void DzPBufferView::floorOnChanged | ( | Boolean | onOff | ) | [signal] |
Signature: "floorOnChanged(bool)"
Emitted when drawing of the floor in the view is enabled or disabled.
void DzPBufferView::frameCamera | ( | ) |
Frames the currently selected scene item(s) in the view's camera.
Boolean DzPBufferView::getAxesOn | ( | ) |
Color DzPBufferView::getBackground | ( | ) |
DzCamera DzPBufferView::getCamera | ( | ) |
DzDrawStyle DzPBufferView::getDrawStyle | ( | ) |
Boolean DzPBufferView::getFloorOn | ( | ) |
QImage DzPBufferView::getImage | ( | ) |
Boolean DzPBufferView::hardwareRender | ( | DzRenderHandler | handler | ) |
Performs a hardware-rendering operation through this view.
handler | The render-handler for the operation. |
Boolean DzPBufferView::isValid | ( | ) |
Performs a view tool gizmo-picking operation through the view.
pnt | The point in the view to perform the picking operation. |
DzMaterial DzPBufferView::pickOnMaterial | ( | Point | pnt | ) |
Performs a material-picking operation through the view.
pnt | The point in the view to perform the picking operation. |
Performs a node-picking operation through the view.
pnt | The point in the view to perform the picking operation. |
Renders the current scene through the view
drawGizmos | Whether or not the current viewtool is drawn. If true, the current view tool will be drawn in the render, otherwise, the current view tool will not be visible in the render. |
Boolean DzPBufferView::renderThumbnail | ( | DzRenderHandler | handler | ) |
Performs a thumbnail-rendering operation through this view.
handler | The render-handler for the operation. |
void DzPBufferView::resetCamera | ( | ) |
Reset's the view's camera.
void DzPBufferView::resize | ( | Size | size | ) |
Resizes the view.
size | The new size of the view. |
void DzPBufferView::setAxesOn | ( | Boolean | onOff | ) |
Sets whether or not to draw the world-space axes when rendering the scene.
onOff | If true, the axes are drawn, otherwise, the axes will not be visible. |
void DzPBufferView::setBackground | ( | Color | color | ) |
Sets the background color for the view.
color | The new background color for the view. |
void DzPBufferView::setCamera | ( | DzCamera | cam | ) |
Sets the camera that the view will be rendered through
cam | The camera that the view will render through. This object should be owned by the scene, or by the caller. It is expected that this object remain valid as long as the view is using it. |
void DzPBufferView::setDrawStyle | ( | DzDrawStyle | style | ) |
Sets the drawstyle used by the view when rendering the scene.
style | The new drawstyle for the view. The view takes ownership of this object and deletes it when it is no longer used. |
void DzPBufferView::setFloorOn | ( | Boolean | onOff | ) |
Sets whether or not to draw the floor when rendering the scene.
onOff | If true, the floor is drawn, otherwise, the floor will not be visible. |
Size DzPBufferView::size | ( | ) |
void DzPBufferView::sizeChanged | ( | Size | size | ) | [signal] |
Signature: "sizeChanged(const QSize&)"
Emitted when the size of the view has been changed.
void DzPBufferView::viewChanged | ( | ) | [signal] |
Signature: "viewChanged()"
Emitted when the view has changed.