#include <Annotation.h>
Definition at line 18 of file Annotation.h.
Enumerator |
---|
TOP_LEFT |
|
TOP_RIGHT |
|
BOTTOM_LEFT |
|
BOTTOM_RIGHT |
|
INTERIOR |
|
Definition at line 71 of file Annotation.h.
casa::Annotation::Annotation |
( |
QWidget * |
parent = NULL | ) |
|
virtual casa::Annotation::~Annotation |
( |
| ) |
|
|
virtual |
bool casa::Annotation::contains |
( |
int |
posX, |
|
|
int |
posY |
|
) |
| const |
void casa::Annotation::draw |
( |
QPainter * |
painter | ) |
|
virtual void casa::Annotation::drawAnnotation |
( |
QPainter * |
painter | ) |
|
|
pure virtual |
void casa::Annotation::drawCorner |
( |
MouseLocation |
cornerLocation, |
|
|
QPainter * |
painter, |
|
|
int |
cornerX, |
|
|
int |
cornerY |
|
) |
| |
|
private |
void casa::Annotation::init |
( |
| ) |
|
|
protected |
bool casa::Annotation::isInCorner |
( |
int |
cornerX, |
|
|
int |
cornerY, |
|
|
int |
mouseX, |
|
|
int |
mouseY |
|
) |
| const |
|
private |
bool casa::Annotation::isSelected |
( |
| ) |
const |
void casa::Annotation::mousePositionMoved |
( |
int |
mouseX, |
|
|
int |
mouseY |
|
) |
| |
(mouseX,mouseY) are the new position of the mouse.
The difference between the stored position and the new position is used to calculate how much to move the top left corner of the annotation.
void casa::Annotation::move |
( |
int |
positionX, |
|
|
int |
positionY |
|
) |
| |
Moves the top left corner of the annotation to (positionX, positionY);.
void casa::Annotation::propertiesChanged |
( |
| ) |
|
|
virtual |
bool casa::Annotation::registerMousePosition |
( |
int |
mouseX, |
|
|
int |
mouseY |
|
) |
| |
Stores the passed in values as reference points so that they can be later used to calculate how much to move the annotation.
Returns true if the mouse location has changed, say from a top right corner to the interior region of the annotation.
void casa::Annotation::setDimensions |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
void casa::Annotation::setDimensionsPosition |
( |
int |
locationX, |
|
|
int |
locationY |
|
) |
| |
Changes the size of the annotation.
(locationX, locationY) are assumed to be the newer bottom right corner of the annotation.
void casa::Annotation::setSelected |
( |
bool |
selected | ) |
|
void casa::Annotation::showEditor |
( |
| ) |
|
const int casa::Annotation::CORNER_SIZE |
|
private |
QColor casa::Annotation::foregroundColor |
|
private |
int casa::Annotation::height |
|
protected |
const int casa::Annotation::MIN_HEIGHT |
|
private |
const int casa::Annotation::MIN_WIDTH |
|
private |
int casa::Annotation::mouseDownX |
|
protected |
Stored reference point for later calculation move amounts.
Definition at line 67 of file Annotation.h.
int casa::Annotation::mouseDownY |
|
protected |
int casa::Annotation::pixelX |
|
protected |
Top left corner of the annotation.
Definition at line 61 of file Annotation.h.
int casa::Annotation::pixelY |
|
protected |
bool casa::Annotation::selected |
|
private |
int casa::Annotation::width |
|
protected |
The documentation for this class was generated from the following file: