Overture  Version 25
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
GridStretcher Class Reference

#include <GridStretcher.h>

Public Types

enum  ReturnValueEnum { answerNotProcessed =0, parametersChanged =1, gridWasChanged =2 }
 
enum  PickingOptionsEnum { pickToDoNothing, pickToStretchInDirection1, pickToStretchInDirection2, pickToStretchInDirection3 }
 

Public Member Functions

 GridStretcher (int domainDimension, int rangeDimension)
 
 ~GridStretcher ()
 
int buildDialog (DialogData &dialog)
 
int update (aString &answer, DialogData &dialog, MappingInformation &mapInfo, StretchTransform &stretchedMapping)
 
int update (aString &answer, DialogData &dialog, MappingInformation &mapInfo, realArray &x, const IntegerArray &gridIndexRange, const IntegerArray &projectIndexRange, DataPointMapping &dpm, Mapping *surface=NULL)
 

Protected Member Functions

int update (aString &answer, DialogData &dialog, MappingInformation &mapInfo, realArray *px, IntegerArray const *pgridIndexRange, IntegerArray const *pprojectIndexRange, DataPointMapping *dpm, Mapping *surface=NULL, StretchTransform *stretchedMapping=NULL)
 
int periodicUpdate (realArray &x, const IntegerArray &indexRange, Mapping &map)
 
int applyStretching (StretchTransform &stretchedDPM)
 
bool checkForStretchCommands (const aString &answer, GenericGraphicsInterface &gi, DialogData &dialog)
 

Protected Attributes

PickingOptionsEnum pickingOption
 
int domainDimension
 
int rangeDimension
 
int stretchID
 
int numberOfStretch
 
RealArray stretchParams
 
int projectStretchedGridOntoReferenceSurface
 
int gridIsStretched
 
real defaultWeight
 
real defaultExponent
 

Member Enumeration Documentation

Enumerator
pickToDoNothing 
pickToStretchInDirection1 
pickToStretchInDirection2 
pickToStretchInDirection3 
Enumerator
answerNotProcessed 
parametersChanged 
gridWasChanged 

Constructor & Destructor Documentation

GridStretcher::GridStretcher ( int  domainDimension,
int  rangeDimension 
)
GridStretcher::~GridStretcher ( )

Member Function Documentation

int GridStretcher::applyStretching ( StretchTransform &  stretchedDPM)
protected
int GridStretcher::buildDialog ( DialogData &  dialog)
bool GridStretcher::checkForStretchCommands ( const aString &  answer,
GenericGraphicsInterface &  gi,
DialogData &  dialog 
)
protected
int GridStretcher::periodicUpdate ( realArray &  x,
const IntegerArray &  indexRange,
Mapping &  map 
)
protected
int GridStretcher::update ( aString &  answer,
DialogData &  dialog,
MappingInformation &  mapInfo,
StretchTransform &  stretchedMapping 
)
int GridStretcher::update ( aString &  answer,
DialogData &  dialog,
MappingInformation &  mapInfo,
realArray &  x,
const IntegerArray &  gridIndexRange,
const IntegerArray &  projectIndexRange,
DataPointMapping &  dpm,
Mapping *  surface = NULL 
)

References NULL, and update().

int GridStretcher::update ( aString &  answer,
DialogData &  dialog,
MappingInformation &  mapInfo,
realArray *  px,
IntegerArray const *  pgridIndexRange,
IntegerArray const *  pprojectIndexRange,
DataPointMapping *  dpm,
Mapping *  surface = NULL,
StretchTransform *  stretchedMapping = NULL 
)
protected

References DialogData::addInfoLabel(), GUIState::addPrefix(), DialogData::addRadioBox(), answerNotProcessed, GenericGraphicsInterface::appendToTheDefaultPrompt(), applyStretching(), assert, aString, axis1, axis2, axis3, checkForStretchCommands(), defaultExponent, defaultWeight, domainDimension, dr, GenericGraphicsInterface::getAnswer(), MappingProjectionParameters::getIntArray(), Mapping::getIsPeriodic(), DialogData::getRadioBox(), StretchTransform::getStretchedSquare(), MappingInformation::graphXInterface, gridIndexRange, gridIsStretched, gridWasChanged, i2, Mapping::inverseMap(), DataPointMapping::map(), Mapping::mapGrid(), max(), min(), SelectionInfo::nSelect, NULL, Overture::nullIntArray(), Overture::nullRealDistributedArray(), GenericGraphicsInterface::outputString(), GenericGraphicsInterface::outputToCommandFile(), parametersChanged, periodicUpdate(), pickingOption, pickToDoNothing, pickToStretchInDirection1, pickToStretchInDirection2, pickToStretchInDirection3, GenericGraphicsInterface::popGUI(), Mapping::project(), projectStretchedGridOntoReferenceSurface, GenericGraphicsInterface::pushGUI(), r, R, rangeDimension, GenericGraphicsInterface::savePickCommands(), MappingProjectionParameters::setAdjustForCornersWhenMarching(), RadioBox::setCurrentChoice(), DataPointMapping::setDataPoints(), DialogData::setExitCommand(), MappingProjectionParameters::setIsAMarchingAlgorithm(), Mapping::setIsPeriodic(), StretchTransform::setMapping(), DialogData::setTextBoxes(), DialogData::setTextLabel(), DialogData::setToggleState(), DialogData::setWindowTitle(), sPrintF(), sScanF(), GenericGraphicsInterface::stopReadingCommandFile(), stretchID, stretchParams, GenericGraphicsInterface::unAppendTheDefaultPrompt(), SelectionInfo::x, and x.

Member Data Documentation

real GridStretcher::defaultExponent
protected

Referenced by GridStretcher(), and update().

real GridStretcher::defaultWeight
protected

Referenced by GridStretcher(), and update().

int GridStretcher::domainDimension
protected
int GridStretcher::gridIsStretched
protected

Referenced by GridStretcher(), and update().

int GridStretcher::numberOfStretch
protected

Referenced by GridStretcher().

PickingOptionsEnum GridStretcher::pickingOption
protected

Referenced by GridStretcher(), and update().

int GridStretcher::projectStretchedGridOntoReferenceSurface
protected

Referenced by buildDialog(), GridStretcher(), and update().

int GridStretcher::rangeDimension
protected

Referenced by GridStretcher(), and update().

int GridStretcher::stretchID
protected
RealArray GridStretcher::stretchParams
protected

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