#include <vectorlayer.h>
A vector layer is able to draw itself by recieving a QPainter object and drawing its VectorData member onto it.
Definition at line 14 of file vectorlayer.h.
Public Member Functions | |
VectorLayer (VectorData *data) | |
virtual void | draw (QPainter &p, Rect &imgclip, double scale) |
void | setVisible (bool state) |
bool | isVisible () |
void | setEditable (bool state) |
bool | isEditable () |
VectorData * | getData () |
Protected Attributes | |
VectorData * | mData |
SelectionSet & | mSelSet |
bool | mVisible |
bool | mEditable |
DspAttr | mLyrAttr |
VectorLayer::VectorLayer | ( | VectorData * | data | ) |
void VectorLayer::draw | ( | QPainter & | p, | |
Rect & | imgclip, | |||
double | scale | |||
) | [virtual] |
Definition at line 10 of file vectorlayer.cpp.
References DspAttr::color, Shape::getAttr(), VectorData::getType(), VectorData::getXYSet(), SelectionSet::isSelNode(), SelectionSet::isSelObj(), mData, mLyrAttr, mSelSet, VectorData::POINT, Line::size(), DspAttr::style, DspAttr::width, Rect::x, Node::x, Rect::y, and Node::y.
Referenced by View::paintEvent().
void VectorLayer::setVisible | ( | bool | state | ) | [inline] |
bool VectorLayer::isVisible | ( | ) | [inline] |
void VectorLayer::setEditable | ( | bool | state | ) | [inline] |
bool VectorLayer::isEditable | ( | ) | [inline] |
VectorData* VectorLayer::getData | ( | ) | [inline] |
Definition at line 38 of file vectorlayer.h.
References mData.
Referenced by VectorEditor::activeLayerChanged(), and VectorEditor::clearAllLayerSelections().
VectorData* VectorLayer::mData [protected] |
SelectionSet& VectorLayer::mSelSet [protected] |
bool VectorLayer::mVisible [protected] |
Definition at line 18 of file vectorlayer.h.
Referenced by isVisible(), setVisible(), and VectorLayer().
bool VectorLayer::mEditable [protected] |
Definition at line 19 of file vectorlayer.h.
Referenced by isEditable(), setEditable(), and VectorLayer().
DspAttr VectorLayer::mLyrAttr [protected] |
Home |
Search |
Disclaimers & Privacy |
Contact Us GLIMSView Maintainer: dsoltesz@usgs.gov |