OpenVSPAPI  3.19.0
Functions
Measure Tool Functions

This group of API functions can be used to control the Ruler Tool through the API.

Click here to return to the main page. More...

Functions

string AddRuler (const string &in startgeomid, int startsurfindx, double startu, double startw, const string &in endgeomid, int endsurfindx, double endu, double endw, const string &in name)
 
string [] GetAllRulers ()
 
void DelRuler (const string &in id)
 
void DeleteAllRulers ()
 
string AddProbe (const string &in geomid, int surfindx, double u, double w, const string &in name)
 
string [] GetAllProbes ()
 
void DelProbe (const string &in id)
 
void DeleteAllProbes ()
 

Detailed Description

Function Documentation

◆ AddProbe()

string AddProbe ( const string &in  geomid,
int  surfindx,
double  u,
double  w,
const string &in  name 
)

Create a new Probe and add it to the Measure Tool

Parameters
[in]geomidParent Geom ID
[in]surfindxMain surface index from the parent Geom
[in]uSurface u (0 - 1) coordinate
[in]wSurface w (0 - 1) coordinate
[in]nameProbe name
Returns
Probe ID

◆ AddRuler()

string AddRuler ( const string &in  startgeomid,
int  startsurfindx,
double  startu,
double  startw,
const string &in  endgeomid,
int  endsurfindx,
double  endu,
double  endw,
const string &in  name 
)

Create a new Ruler and add it to the Measure Tool

Parameters
[in]startgeomidStart parent Geom ID
[in]startsurfindxMain surface index from the staring parent Geom
[in]startuSurface u (0 - 1) start coordinate
[in]startwSurface w (0 - 1) start coordinate
[in]endgeomidEnd parent Geom ID
[in]endsurfindxMain surface index on the end parent Geom
[in]enduSurface u (0 - 1) end coordinate
[in]endwSurface w (0 - 1) end coordinate
[in]nameRuler name
Returns
Ruler ID

◆ DeleteAllProbes()

void DeleteAllProbes ( )

Delete all Probes from the Measure Tool

◆ DeleteAllRulers()

void DeleteAllRulers ( )

Delete all Rulers from the Meaure Tool

◆ DelProbe()

void DelProbe ( const string &in  id)

Delete a specific Probe from the Measure Tool

Parameters
[in]idProbe ID

◆ DelRuler()

void DelRuler ( const string &in  id)

Delete a particular Ruler from the Meaure Tool

Parameters
[in]idRuler ID

◆ GetAllProbes()

string [] GetAllProbes ( )

Get an array of all Probe IDs from the Measure Tool

Returns
[in] Array of Probe IDs

◆ GetAllRulers()

string [] GetAllRulers ( )

Get an array of all Ruler IDs from the Measure Tool

Returns
Array of Ruler IDs