#include <VolumeSliceView.h>
Inheritance diagram for ChildClass:
The volume can be from many types of data, including CT, MR, Iso-C, etc. Future extensions for rendering multiple volumes should not be included here, but should become a new view.
Public Member Functions | |
Abstract Interface | |
virtual std::auto_ptr< View > | clone (void) const |
virtual const View & | root (void) const |
virtual const int | size (void) const |
virtual const Viewport & | viewport (void) const |
virtual void | reposition (const int x, const int y) |
virtual void | resize (const unsigned int width, const unsigned int height) |
virtual void | flip (const bool x, const bool y) |
virtual void | rotate (const float angle) |
virtual void | zoom (const float scale) |
virtual void | shift (const float x, const float y) |
virtual void | home (void) |
virtual std::auto_ptr<View> clone | ( | void | ) | const [virtual, inherited] |
Construct a clone of this object and return it.
Clones will share their rendered data pointer, but not their children or other data.
virtual const View& root | ( | void | ) | const [virtual, inherited] |
Access the bottom node of a view chain.
This is the node that provides the overall context for the view.
virtual const int size | ( | void | ) | const [virtual, inherited] |
virtual const Viewport& viewport | ( | void | ) | const [virtual, inherited] |
virtual void reposition | ( | const int | x, | |
const int | y | |||
) | [virtual, inherited] |
Changes the position of the viewport.
x | - desired x position (pixels) of lower left corner | |
y | - desired y position (pixels) of lower left corner |
virtual void resize | ( | const unsigned int | width, | |
const unsigned int | height | |||
) | [virtual, inherited] |
Changes the size of the viewport.
width | - desired width of the viewport | |
height | - desired height of the viewport |
virtual void flip | ( | const bool | x, | |
const bool | y | |||
) | [virtual, inherited] |
Flip the view in the provided direction(s).
x | - if true, flip the view in the x direction | |
y | - if true, flip the view in the y direction |
virtual void rotate | ( | const float | angle | ) | [virtual, inherited] |
Rotate the view CCW by the given angle.
angle | - angle in degrees to rotate the view |
virtual void zoom | ( | const float | scale | ) | [virtual, inherited] |
Scale the view by the given constant.
scale | - constant by which the view should be multiplied |
virtual void shift | ( | const float | x, | |
const float | y | |||
) | [virtual, inherited] |
Shift the view in the x and y directions.
x | - desired shift in the x direction (pixels) | |
y | - desired shift in the y direction (pixels) |
virtual void home | ( | void | ) | [virtual, inherited] |
Reset the view manipulation xform to the identity.