|
| | MiniPaletteGraphics (QGraphicsView *graphicsview, AObject *object=0, int dims=0, float width=-10000, float height=-10000, float left=-10000, float top=-10000, bool with_view=true) |
| | Parameters: graphicsview: the existing graphic view where the palette should be drawn object: object to display or edit the palette for width: width of the display in the graphics view.
|
| |
| virtual | ~MiniPaletteGraphics () |
| |
| AObject * | getObject () |
| |
| void | setObject (AObject *obj, int dims=1) |
| | set or change the observed object
|
| |
| void | setRange (double min, double max, int dim) |
| |
| void | updateDisplay () |
| |
| void | resize (float x, float y, float w, float h) |
| |
| float | width () const |
| |
| float | height () const |
| |
| float | top () const |
| |
| float | left () const |
| |
| void | clear () |
| |
| void | update (const Observable *observable, void *arg) |
| | This method is called whenever the observed object is changed.
|
| |
| double | min (int dim) const |
| |
| double | max (int dim) const |
| |
| int | observedDimensions () const |
| |
| std::pair< double, double > | range (int dim) const |
| |
| virtual | ~Observer () |
| |
MiniPaletteGraphics is an element which draws a palette in a GraphicsView scene.
It is used by MiniPaletteWidget, but can be used alone in a QGraphicsView.
It provides a small sized palette widget which can be used to display the palette.
The palette view displayes the palette assigned to an object, and the view may be zoomed to a given values range.
Definition at line 25 of file minipalette.h.
| anatomist::MiniPaletteGraphics::MiniPaletteGraphics |
( |
QGraphicsView * | graphicsview, |
|
|
AObject * | object = 0, |
|
|
int | dims = 0, |
|
|
float | width = -10000, |
|
|
float | height = -10000, |
|
|
float | left = -10000, |
|
|
float | top = -10000, |
|
|
bool | with_view = true ) |
Parameters: graphicsview: the existing graphic view where the palette should be drawn object: object to display or edit the palette for width: width of the display in the graphics view.
-10000 (default) means whole scene width. height: height of the display in the graphics view. -10000 (default) means whole scene height. left: left position of the display in the graphics view. -10000 (default) means centered in scene. top: top position of the display in the graphics view. -10000 (default) means centered in scene. with_view: bool if false, the palette view will not be displayed.
References height(), left(), top(), and width().