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

#include <GridProperties.h>

Inheritance diagram for SciFigs::GridProperties:
QGpGuiTools::PropertyWidget

List of all members.

Public Types

enum  Properties {
  ShowGrid, Smooth, FillValue, FillValueInversed,
  FillType
}

Public Member Functions

 GridProperties (QWidget *parent=0)

Static Public Member Functions

static int area2item (Rect::Area ft)
static Rect::Area item2area (int index)

Member Enumeration Documentation

Enumerator:
ShowGrid 
Smooth 
FillValue 
FillValueInversed 
FillType 

Constructor & Destructor Documentation

SciFigs::GridProperties::GridProperties ( QWidget *  parent = 0)

References QGpGuiTools::PropertyWidget::addProperty(), FillType, FillValue, FillValueInversed, ShowGrid, Smooth, and TRACE.

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

  // Create properties
  addProperty(ShowGrid, showGrid);
  addProperty(Smooth, smooth);
  addProperty(FillValue, valueEdit, valueLabel);
  addProperty(FillValueInversed, valueInversedEdit, valueInversedLabel);
  addProperty(FillType, fillTypeEdit);
}

Member Function Documentation

Referenced by SciFigs::GridPlot::properties().

{
  switch (ft) {
  case Rect::AboveAscDiag:
    return 1;
  case Rect::BelowAscDiag:
    return 2;
  case Rect::AboveDescDiag:
    return 3;
  case Rect::BelowDescDiag:
    return 4;
  default:
    return 0;
  }
}

Referenced by SciFigs::GridPlot::setProperty().

{
  switch (index) {
  case 1:
    return Rect::AboveAscDiag;
  case 2:
    return Rect::BelowAscDiag;
  case 3:
    return Rect::AboveDescDiag;
  case 4:
    return Rect::BelowDescDiag;
  default:
    return Rect::AllRect;
  }
}

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