Module vrMeasurement
[frames] | no frames]

Module vrMeasurement

Functions
 
createCircleMeasurement(node1, hitPoint1, node2, hitPoint2, node3, hitPoint3)
Creates a circle measurement.
 
createGapMeasurement(node1, hitPoint1, node2, hitPoint2)
Creates a gap measurement.
 
createLineObjectMeasurement(lineNode, linehitPoint, node2)
Creates a line to object measurement.
 
createObjectObjectMeasurement(node1, node2)
Creates an object to object measurement.
 
createPointObjectMeasurement(node1, hitPoint1, node2)
Creates a point to object measurement.
 
createPointPointMeasurement(node1, hitPoint1, node2, hitPoint2)
Creates a point to point measurement.
 
removeAllMeasurements()
Removes all existing measurements.
 
removeSelectedMeasurement()
Remove the currently selected measurement.
 
updateAllMeasurements()
Update all measurements.
 
updateMeasurement()
Update the selected measurement.
 
zoomOnMeasurement()
Zoom on the selected measurement.
Function Details

createCircleMeasurement(node1, hitPoint1, node2, hitPoint2, node3, hitPoint3)

 

Creates a circle measurement.

There are two functions:

The function can be called without parameters. The interaction mode accordingly and the picking can be done with the mouse.

The function with parameters can be used when the interaction mode can not be used (e.g. in an immersive scenario).

The parameters will have to come from a separate intersection test.

Parameters:
  • node1 (vrNodePtr) - The first node.
  • hitPoint1 (Pnt3f) - The intersection point on node1.
  • node2 (vrNodePtr) - The second node.
  • hitPoint2 (Pnt3f) - The intersection point on node2.
  • node3 (vrNodePtr) - The third node.
  • hitPoint3 (Pnt3f) - The intersection point on node3.

createGapMeasurement(node1, hitPoint1, node2, hitPoint2)

 

Creates a gap measurement.

There are two functions:

The function can be called without parameters. The interaction mode accordingly and the picking can be done with the mouse.

The function with parameters can be used when the interaction mode can not be used (e.g. in an immersive scenario).

The parameters will have to come from a separate intersection test

.(This command is only available in VRED Professional.)

Parameters:
  • node1 (vrNodePtr) - The first node.
  • hitPoint1 (Pnt3f) - The intersection point on node1.
  • node2 (vrNodePtr) - The second node.
  • hitPoint2 (Pnt3f) - The intersection point on node2.

createLineObjectMeasurement(lineNode, linehitPoint, node2)

 

Creates a line to object measurement.

There are two functions:

The function can be called without parameters. The interaction mode accordingly and the picking can be done with the mouse.

The function with parameters can be used when the interaction mode can not be used (e.g. in an immersive scenario).

The parameters will have to come from a separate intersection test.

Parameters:
  • lineNode - The line node.
  • linehitPoint - The intersection point on the line node.
  • node2 (vrNodePtr) - The second node (no hit point needed here).
  • node1 (vrNodePtr)
  • hitPoint1 (Pnt3f)

createObjectObjectMeasurement(node1, node2)

 

Creates an object to object measurement.

There are two functions:

The function can be called without parameters. The interaction mode accordingly and the picking can be done with the mouse.

The function with parameters can be used when the interaction mode can not be used (e.g. in an immersive scenario).

The parameters will have to come from a separate intersection test.

Parameters:
  • node1 (vrNodePtr) - The first node.
  • node2 (vrNodePtr) - The second node.

createPointObjectMeasurement(node1, hitPoint1, node2)

 

Creates a point to object measurement.

There are two functions:

The function can be called without parameters. The interaction mode accordingly and the picking can be done with the mouse.

The function with parameters can be used when the interaction mode can not be used (e.g. in an immersive scenario).

The parameters will have to come from a separate intersection test.

Parameters:
  • node1 (vrNodePtr) - The first node.
  • hitPoint1 (Pnt3f) - The intersection point on node1.
  • node2 (vrNodePtr) - The second node (no hit point is needed here for this measurement).

createPointPointMeasurement(node1, hitPoint1, node2, hitPoint2)

 

Creates a point to point measurement.

There are two functions:

The function can be called without parameters. The interaction mode accordingly and the picking can be done with the mouse.

The function with parameters can be used when the interaction mode can not be used (e.g. in an immersive scenario).

The parameters will have to come from a separate intersection test.

Parameters:
  • node1 (vrNodePtr) - The first node.
  • hitPoint1 (Pnt3f) - The intersection point on node1.
  • node2 (vrNodePtr) - The second node.
  • hitPoint2 (Pnt3f) - The intersection point on node2.

removeSelectedMeasurement()

 

Remove the currently selected measurement. The last created measurement is automatically selected.