All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Public Types | Public Member Functions
SciFigs::ImageLayerProperties Class Reference

#include <ImageLayerProperties.h>

Inheritance diagram for SciFigs::ImageLayerProperties:
QGpGuiTools::PropertyWidget

List of all members.

Public Types

enum  Properties {
  XOrigin, YOrigin, XScale, YScale,
  ImageFile
}

Public Member Functions

void addLayer (ImageLayer *layer)
 ImageLayerProperties (QWidget *parent=0)
void removeLayer (ImageLayer *layer)

Member Enumeration Documentation

Enumerator:
XOrigin 
YOrigin 
XScale 
YScale 
ImageFile 

Constructor & Destructor Documentation

References QGpGuiTools::PropertyWidget::addProperty(), ImageFile, TRACE, XOrigin, XScale, YOrigin, and YScale.

    : PropertyWidget(parent)
{
  TRACE;
  setupUi(this);

  addProperty(XOrigin, xEdit, xLabel);
  addProperty(YOrigin, yEdit, yLabel);
  addProperty(XScale, xScaleEdit, xScaleLabel);
  addProperty(YScale, yScaleEdit, yScaleLabel);
  addProperty(ImageFile, imageEdit, imageLabel);

  _referencePoints=0;
}

Member Function Documentation

References TRACE.

Referenced by SciFigs::ImageLayer::addProperties().

{
  TRACE;
  if(_layerSet.contains(layer)) return;
  _layerSet.insert(layer);
  toggleReferencePoints();
}

References SciFigs::ImageLayer::Scale, SciFigs::ImageLayer::toggleTrackingAction(), and TRACE.

Referenced by SciFigs::ImageLayer::removeProperties().

{
  TRACE;
  if(!_layerSet.contains(layer)) return;
  _layerSet.remove(layer);
  toggleReferencePoints();
  if(_layerSet.isEmpty()) {
    layer->toggleTrackingAction(false, ImageLayer::Scale);
    delete _referencePoints;
    _referencePoints=0;
  }
}

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines