Fovia's C++ Client/Server API
|
Public Member Functions | |
virtual signed int | AskInterface (const BGUID *piid, IRoot **ppr)=0 |
virtual signed int | ClearPolygon ()=0 |
virtual signed int | DecRef ()=0 |
virtual signed int | GetID (signed long long *id)=0 |
virtual signed int | IncRef ()=0 |
virtual signed int | MouseDragged (signed int x, signed int y)=0 |
virtual signed int | MousePressed (signed int x, signed int y)=0 |
virtual signed int | MouseReleased (signed int x, signed int y)=0 |
virtual signed int | ReleaseSessionResources ()=0 |
virtual signed int | SetRenderParamsReceiver (IRenderParamsReceiver *pReceiver)=0 |
virtual signed int | SetSegLabelIndex (signed int labelIndex)=0 |
virtual signed int | SetSegmenter (IVolumeSegmentationContext *pSegmenter, SEGMENTATION_PARAMS *pSegParams)=0 |
![]() | |
template<class T > | |
signed int | AskInterface (T **pp) |
Adaptor for free hand cut segmentation via mouse interaction. While the mouse is dragged, each mouse point is captured. Then, when the mouse is released, all the points are used to create a polygon that is the shape to project into the volume for the cutting operation. See IVolumeSegmentationContext::FreeHandCut() for more information about this segmentation technique. Use ILibrary::CreateObject() to create this object.
Listens to: MousePressed(), MouseDragged(), MouseReleased()
|
pure virtual |
|
pure virtual |
Clears the polygon points, can be used if the user cancels the polygon draw to not segment
|
pure virtual |
Decreases the reference count on this object by 1. If the reference count reaches 0, the object is deallocated.
Implements IRoot.
|
pure virtual |
Returns the integer that represents the server side object that contains the octree.
|
pure virtual |
Increases the reference count on this object by 1. You do not need to call this after an object is first created. It is 1 by default.
Implements IRoot.
|
pure virtual |
Call this function when the mouse is dragged on a rendered image (mouse button is down and the mouse has moved).
x | The horizontal offset from the left side of the rendered image. |
y | The vertical offset from the top of the rendered image. |
|
pure virtual |
Call this function when the mouse is first pressed on a rendered image.
x | The horizontal offset from the left side of the rendered image. |
y | The vertical offset from the top of the rendered image. |
|
pure virtual |
Call this function when the mouse is first released on a rendered image.
x | The horizontal offset from the left side of the rendered image. |
y | The vertical offset from the top of the rendered image. |
|
pure virtual |
Releases server side resources associated with this object.
|
pure virtual |
In order for a mouse adaptor to function properly, it must be attached to an IRenderEngineContext or IRenderQueue object.
pReceiver | The IRenderParamsReceiver to attach to this adaptor. |
|
pure virtual |
Set the label for segmetnation output (the label value to segment into)
labelIndex | the lable index value to segment into (defaults to 1) |
|
pure virtual |
Before using this adaptor during interaction, you should call this function to appropriately initialize the IVolumeSegmentation Object it will use.
pSegmenter | the IVolumeSegmentation Object it will use. |
pSegParams | The address of SEGMENTATION_PARAMS object to use. |