GLIMSView Source Code Documentation

VectorLayer Class Reference

#include <vectorlayer.h>

List of all members.


Detailed Description

A part of the display that will be drawn to the view according to its rank.

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 ()
VectorDatagetData ()

Protected Attributes

VectorDatamData
SelectionSetmSelSet
bool mVisible
bool mEditable
DspAttr mLyrAttr

Constructor & Destructor Documentation

VectorLayer::VectorLayer ( VectorData data  ) 

Definition at line 3 of file vectorlayer.cpp.

References mEditable, and mVisible.


Member Function Documentation

void VectorLayer::draw ( QPainter &  p,
Rect imgclip,
double  scale 
) [virtual]

void VectorLayer::setVisible ( bool  state  )  [inline]

Definition at line 26 of file vectorlayer.h.

References mVisible.

bool VectorLayer::isVisible (  )  [inline]

Definition at line 29 of file vectorlayer.h.

References mVisible.

void VectorLayer::setEditable ( bool  state  )  [inline]

Definition at line 32 of file vectorlayer.h.

References mEditable.

bool VectorLayer::isEditable (  )  [inline]

Definition at line 35 of file vectorlayer.h.

References mEditable.

VectorData* VectorLayer::getData (  )  [inline]

Definition at line 38 of file vectorlayer.h.

References mData.

Referenced by VectorEditor::activeLayerChanged(), and VectorEditor::clearAllLayerSelections().


Member Data Documentation

Definition at line 16 of file vectorlayer.h.

Referenced by draw(), and getData().

Definition at line 17 of file vectorlayer.h.

Referenced by draw().

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().

Definition at line 20 of file vectorlayer.h.

Referenced by draw().


The documentation for this class was generated from the following files:

Home | Search | Disclaimers & Privacy | Contact Us
GLIMSView Maintainer: dsoltesz@usgs.gov