GEO_CaptureData Class Reference

#include <GEO_CaptureData.h>

List of all members.

Classes

class  geo_PtEntry

Public Member Functions

 GEO_CaptureData ()
 ~GEO_CaptureData ()
void initialize (const UT_String &sop_path, float capture_frame, int num_pts=0, int num_regions=0, int num_entries_per_pnt=0)
unsigned int getNumRegions () const
const UT_StringregionPath (unsigned i) const
const UT_Matrix4regionXform (unsigned i) const
int regionID (unsigned i) const
int regionPrimNum (unsigned i) const
float taperX (unsigned i) const
float taperZ (unsigned i) const
float topCap (unsigned i) const
float botCap (unsigned i) const
float minWeight (unsigned i) const
float maxWeight (unsigned i) const
int changeString (const char *from, const char *to, bool fullword)
void updateRegionPath (unsigned int i, const UT_String &new_path, int new_op_id)
int findRegion (const UT_String &region_path, unsigned primnum) const
 returns the CaptureData index for the given OP path/ID
int findRegion (int OPuniqueID, unsigned primnum) const
void getRegionList (int OPuniqueID, UT_IntArray &regions) const
int appendRegion (int opID, const UT_String &path, int tube_prim_num, const UT_Matrix4 &xform, float taperx, float taperz, float bot_cap, float top_cap, float min_weight, float max_weight)
 create space for new region and return the new index
int saveOverrideFile (const UT_String &filename, const GB_PointGroup *pt_group=0, const GEO_Detail *gdp=0, int binary=0) const
int saveOverrideFile (ostream &os, const GB_PointGroup *pt_group=0, const GEO_Detail *gdp=0, int binary=0) const
bool loadOverrideFile (const char *filename, int &line_num)
void appendSortedPtEntry (int point_num, int idx, float weight)
int getNumEntriesPerPt () const
int getNumStoredPts () const
void transferToGdp (GEO_Detail *gdp, bool destroy, float blend, bool relative_skel_root) const
int transferFromGdp (const GEO_Detail *gdp, const GB_PointGroup *pt_group)
float getPointWeight (int point_idx, int region_idx, int *prev_array_idx=NULL)

Static Public Member Functions

static void parseDetailData (const float *data, int idx, UT_Matrix4 &xform, float &taperx, float &taperz, float &top_scale, float &bot_scale)
static void parsePointData (const float *data, int idx, int &region_idx, float &weight)


Detailed Description

Definition at line 111 of file GEO_CaptureData.h.


Constructor & Destructor Documentation

GEO_CaptureData::GEO_CaptureData (  ) 

GEO_CaptureData::~GEO_CaptureData (  ) 


Member Function Documentation

int GEO_CaptureData::appendRegion ( int  opID,
const UT_String path,
int  tube_prim_num,
const UT_Matrix4 xform,
float  taperx,
float  taperz,
float  bot_cap,
float  top_cap,
float  min_weight,
float  max_weight 
)

create space for new region and return the new index

void GEO_CaptureData::appendSortedPtEntry ( int  point_num,
int  idx,
float  weight 
)

Per point Data methods adds a non-zero weighted point entry. assumes that we're inserting in sorted order without duplicates.

float GEO_CaptureData::botCap ( unsigned  i  )  const [inline]

Definition at line 140 of file GEO_CaptureData.h.

int GEO_CaptureData::changeString ( const char *  from,
const char *  to,
bool  fullword 
)

int GEO_CaptureData::findRegion ( int  OPuniqueID,
unsigned  primnum 
) const

int GEO_CaptureData::findRegion ( const UT_String region_path,
unsigned  primnum 
) const

returns the CaptureData index for the given OP path/ID

int GEO_CaptureData::getNumEntriesPerPt (  )  const [inline]

Definition at line 188 of file GEO_CaptureData.h.

unsigned int GEO_CaptureData::getNumRegions (  )  const [inline]

Capture Region Methods

Definition at line 124 of file GEO_CaptureData.h.

int GEO_CaptureData::getNumStoredPts (  )  const [inline]

Definition at line 189 of file GEO_CaptureData.h.

float GEO_CaptureData::getPointWeight ( int  point_idx,
int  region_idx,
int *  prev_array_idx = NULL 
)

Retrieves the weight of the point at the specified index. The weight corresponds to the region at region_idx index.

Parameters:
prev_array_idx - an optional speed optimization param. If this is called in a loop for consecutive points, set to 0 initially and pass the same variable to this function while in the loop.

void GEO_CaptureData::getRegionList ( int  OPuniqueID,
UT_IntArray regions 
) const

void GEO_CaptureData::initialize ( const UT_String sop_path,
float  capture_frame,
int  num_pts = 0,
int  num_regions = 0,
int  num_entries_per_pnt = 0 
)

bool GEO_CaptureData::loadOverrideFile ( const char *  filename,
int &  line_num 
)

float GEO_CaptureData::maxWeight ( unsigned  i  )  const [inline]

Definition at line 144 of file GEO_CaptureData.h.

float GEO_CaptureData::minWeight ( unsigned  i  )  const [inline]

Definition at line 142 of file GEO_CaptureData.h.

static void GEO_CaptureData::parseDetailData ( const float *  data,
int  idx,
UT_Matrix4 xform,
float &  taperx,
float &  taperz,
float &  top_scale,
float &  bot_scale 
) [static]

verb method to get the region data out of the raw float array data from a gdp's detail attribute

static void GEO_CaptureData::parsePointData ( const float *  data,
int  idx,
int &  region_idx,
float &  weight 
) [static]

int GEO_CaptureData::regionID ( unsigned  i  )  const [inline]

Definition at line 130 of file GEO_CaptureData.h.

const UT_String& GEO_CaptureData::regionPath ( unsigned  i  )  const [inline]

Definition at line 126 of file GEO_CaptureData.h.

int GEO_CaptureData::regionPrimNum ( unsigned  i  )  const [inline]

Definition at line 132 of file GEO_CaptureData.h.

const UT_Matrix4& GEO_CaptureData::regionXform ( unsigned  i  )  const [inline]

Definition at line 128 of file GEO_CaptureData.h.

int GEO_CaptureData::saveOverrideFile ( ostream &  os,
const GB_PointGroup pt_group = 0,
const GEO_Detail gdp = 0,
int  binary = 0 
) const

int GEO_CaptureData::saveOverrideFile ( const UT_String filename,
const GB_PointGroup pt_group = 0,
const GEO_Detail gdp = 0,
int  binary = 0 
) const

float GEO_CaptureData::taperX ( unsigned  i  )  const [inline]

Definition at line 134 of file GEO_CaptureData.h.

float GEO_CaptureData::taperZ ( unsigned  i  )  const [inline]

Definition at line 136 of file GEO_CaptureData.h.

float GEO_CaptureData::topCap ( unsigned  i  )  const [inline]

Definition at line 138 of file GEO_CaptureData.h.

int GEO_CaptureData::transferFromGdp ( const GEO_Detail gdp,
const GB_PointGroup pt_group 
)

void GEO_CaptureData::transferToGdp ( GEO_Detail gdp,
bool  destroy,
float  blend,
bool  relative_skel_root 
) const

puts our data into the given gdp's point and detail attributes returns 1 on success, 0 otherwise transferToGdp doesn't have any failure case so doesn't return anything.

void GEO_CaptureData::updateRegionPath ( unsigned int  i,
const UT_String new_path,
int  new_op_id 
)


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

Generated on Thu May 24 00:09:37 2012 for HDK by  doxygen 1.5.9