code::CookieCutter Class Reference

List of all members.

Detailed Description

Algorithm main class, whose methods are invoked by various listeners in w2cookiecutter_main.cc Interface code auto-generated by w2algcreator.

Author:
kmanross
Version:
Id
code_CookieCutter.h,v 1.15 2012/03/06 22:05:00 Valliappa.Lakshmanan Exp


Public Types

typedef std::vector< SpaceTimeRef > loci

Public Member Functions

 CookieCutter (const std::string &outputDir, const std::string &outputLBName, bool realtime, const std::string &Radius, const std::string &Expiry, const std::string &Fudge, const std::string &Dilate, bool Contour, bool Min, const std::string &pathsDir, const std::string &Tilt)
 Algorithm constructor, called from w2cookiecutter_main with the command-line options passed in.
void processInputField (const code::Index::Record &rec)
void handleEndOfRadarIndex ()
int readPathFiles (const std::string &inputDir)
bool shouldReadFile (const std::string &fileName)
void parsePath (const std::string &fileName)
void testOut ()
void writeData (BoundingBox box, Image< float > kachunk, RadialSet *rs)
 Get the data within the bounds from the RadialSet into an Image.
SingleContourData makeGraphicalBounds (BoundingBox box, const Angle elevation)
 Create the contours for the box; store if you want to makethe volume cone.
SingleContourData makeGraphicalPath (std::vector< SpaceTimeRef > verticies)
 Create the contours for the box; store if you want to makethe volume cone.
std::vector< SpaceTimeRef > getNearestVertex (SpaceTimeRef str, std::string filename, bool &reachedEnd)
 Given the latest RadialSet, loop get the latest vertex from a path as well as all points leading up to the latest.
Location getCenterLocation (Location radar, Location vertex, Angle elevation)
 Since we will allow the user to 'tilt' the column, we need to calculate the vertex as a function of height above ground.
void getBounds (Location radar, Location center_loc, Angle elevation, BoundingBox &box)
 Get the boud of the box.
void getBounds (Location radar, Location center_loc, Angle elevation)
 Get the boud of the box.
std::vector< int > getSubsetCorners (const RadialSet &rs, const Location &pt, Location &target)
 Important method for getting the integers needed for the boundries for the subset of data we're interested in, as determined [see getTarget()] by user-defined path location, height, user-defined 'tilt', and user-defined 'dilation'.
void getData (const RadialSet &rs, std::vector< int > pts, std::string fname, Location target_loc, Location path_loc)
 Given the RadialSet of data and the bounding integers [see getSubsetCorners()], get the actual data within the subset area.
SingleContourData getGraphicalBounds (const RadialSet &rs, std::vector< int > pts)
 Given the RadialSet of data and the bounding integers [see getSubsetCorners()], make the graphical bounding box.
void writeOutData (std::string fname)
 Write out the data for the subset to a .csv file in the user-defined output directory, inckuding min and max and their respective Locations/AzRangeHeights.
Location getTarget (const Location &path_loc, const Location &radar_loc, const Angle &elev)
 Get the "target Location" which is dependent upon the user-defined 'tilt' and 'dilation' values.
Length getRadius (const Length &ht)
 Get the increas in search radius (dilation) which is dependent upon the user-defined 'tilt' and 'dilation' values.
void writeOutGraphics (ContourData pc, Angle elev)
 Write out the graphical bounds.
void processCone ()
 Write out the graphical bounds for VOLUME.
void writeOutRadialSet (RadialSet rs)
 Write out the RadialSet.
void drawPath ()
 Write out the user-defind paths from the input .xml files.


Member Typedef Documentation

typedef std::vector< SpaceTimeRef > code::CookieCutter::loci


Constructor & Destructor Documentation

code::CookieCutter::CookieCutter ( const std::string &  outputDir,
const std::string &  outputLBName,
bool  realtime,
const std::string &  Radius,
const std::string &  Expiry,
const std::string &  Fudge,
const std::string &  Dilate,
bool  Contour,
bool  Min,
const std::string &  pathsDir,
const std::string &  Tilt 
)

Algorithm constructor, called from w2cookiecutter_main with the command-line options passed in.


Member Function Documentation

void code::CookieCutter::drawPath (  ) 

Write out the user-defind paths from the input .xml files.

void code::CookieCutter::getBounds ( Location  radar,
Location  center_loc,
Angle  elevation 
)

Get the boud of the box.

void code::CookieCutter::getBounds ( Location  radar,
Location  center_loc,
Angle  elevation,
BoundingBox box 
)

Get the boud of the box.

Location code::CookieCutter::getCenterLocation ( Location  radar,
Location  vertex,
Angle  elevation 
)

Since we will allow the user to 'tilt' the column, we need to calculate the vertex as a function of height above ground.

void code::CookieCutter::getData ( const RadialSet &  rs,
std::vector< int >  pts,
std::string  fname,
Location  target_loc,
Location  path_loc 
)

Given the RadialSet of data and the bounding integers [see getSubsetCorners()], get the actual data within the subset area.

SingleContourData code::CookieCutter::getGraphicalBounds ( const RadialSet &  rs,
std::vector< int >  pts 
)

Given the RadialSet of data and the bounding integers [see getSubsetCorners()], make the graphical bounding box.

std::vector< SpaceTimeRef > code::CookieCutter::getNearestVertex ( SpaceTimeRef  str,
std::string  filename,
bool reachedEnd 
)

Given the latest RadialSet, loop get the latest vertex from a path as well as all points leading up to the latest.

This allows for path history (aides in creating path contour.

It is assumed that the paths are increasing time order.

Length code::CookieCutter::getRadius ( const Length &  ht  ) 

Get the increas in search radius (dilation) which is dependent upon the user-defined 'tilt' and 'dilation' values.

std::vector< int > code::CookieCutter::getSubsetCorners ( const RadialSet &  rs,
const Location &  pt,
Location &  target 
)

Important method for getting the integers needed for the boundries for the subset of data we're interested in, as determined [see getTarget()] by user-defined path location, height, user-defined 'tilt', and user-defined 'dilation'.

Location code::CookieCutter::getTarget ( const Location &  path_loc,
const Location &  radar_loc,
const Angle &  elev 
)

Get the "target Location" which is dependent upon the user-defined 'tilt' and 'dilation' values.

void code::CookieCutter::handleEndOfRadarIndex (  )  [inline]

SingleContourData code::CookieCutter::makeGraphicalBounds ( BoundingBox  box,
const Angle  elevation 
)

Create the contours for the box; store if you want to makethe volume cone.

SingleContourData code::CookieCutter::makeGraphicalPath ( std::vector< SpaceTimeRef >  verticies  ) 

Create the contours for the box; store if you want to makethe volume cone.

void code::CookieCutter::parsePath ( const std::string &  fileName  ) 

void code::CookieCutter::processCone (  ) 

Write out the graphical bounds for VOLUME.

void code::CookieCutter::processInputField ( const code::Index::Record &  rec  ) 

int code::CookieCutter::readPathFiles ( const std::string &  inputDir  ) 

bool code::CookieCutter::shouldReadFile ( const std::string &  fileName  ) 

void code::CookieCutter::testOut (  ) 

void code::CookieCutter::writeData ( BoundingBox  box,
Image< float >  kachunk,
RadialSet *  rs 
)

Get the data within the bounds from the RadialSet into an Image.

void code::CookieCutter::writeOutData ( std::string  fname  ) 

Write out the data for the subset to a .csv file in the user-defined output directory, inckuding min and max and their respective Locations/AzRangeHeights.

void code::CookieCutter::writeOutGraphics ( ContourData  pc,
Angle  elev 
)

Write out the graphical bounds.

void code::CookieCutter::writeOutRadialSet ( RadialSet  rs  ) 

Write out the RadialSet.


Generated on Fri May 4 13:40:21 2012 for WDSS-IIw2algs by  doxygen 1.4.7