Raytrix Light Field SDK  v3.0
Logo
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Events Groups Pages
CLUViz::Net::ViewImageTool Class Reference

Detailed Description

Class to enable simple visualization of objects drawn an a given image.

Supported objects are points, lines, line strips, circles and texts.

Inherits CLUViz::Net::ViewToolBase.

Public Member Functions

 ViewImageTool ()
 Default constructor. More...
 
 ViewImageTool (ViewCtrl^ xViewCtrl)
 Constructor that attaches to the given view control. See AttachTo. More...
 
void AddCircleList (System::String^ sName, array< Rx::Net::ColorCircle2D >^aCircleList, CircleViewPars^ xPars, bool bClearScene)
 Adds one or more colored circles to the tool script. More...
 
void AddCircleList (System::String^ sName, array< Rx::Net::Circle2D >^aCircleList, Rx::Net::Vector4D vColor, CircleViewPars^ xPars, bool bClearScene)
 Adds one or more colored circles to the tool script. More...
 
void AddLineStripList (System::String^ sName, array< Rx::Net::LineStrip2D^ >^aLineStripList, LineStripViewPars^ xPars, bool bClearScene)
 Adds one or more colored line strips to the tool script. More...
 
void AddLineStripList (System::String^ sName, array< Rx::Net::LineStrip2D^ >^aLineStripList, array< bool >^aLineStripListMask, LineStripViewPars^ xPars, bool bClearScene)
 Adds one or more colored line strips to the tool script. More...
 
void AddPointList (System::String^ sName, array< Rx::Net::ColorPoint2D >^aPointList, PointViewPars^ xPars, bool bClearScene)
 Adds one or more colored points to the tool script. More...
 
void AddPointList (System::String^ sName, array< Rx::Net::Vector2D >^aPointList, Rx::Net::Vector4D vColor, PointViewPars^ xPars, bool bClearScene)
 Adds one or more colored points to the tool script. More...
 
void AddText (System::String^ sName, Rx::Net::Text2D xText)
 Adds a text to the tool script. More...
 
void AddText (System::String^ sName, array< Rx::Net::Text2D >^aTextList)
 Adds one or more texts to the tool script. More...
 
void AttachTo (ViewCtrl^ xViewCtrl)
 Attaches to the given view control. Detaches from last view control by calling Detach. Loads the provided tool script. More...
 
void ClearImage ()
 Clears the image set by SetImage. More...
 
void ClearObjectsAndText ()
 Clears all objects and texts added to the tool script. More...
 
void Detach ()
 Detaches this ViewToolBase from the last view control. This resets the loaded script and makes this class invalid. More...
 
void DrawToScene (System::String^ sName, bool bClearScene)
 Makes the given scene current. All further drawings are done in this scene. More...
 
void EnableLineStripAnimation (System::String^ sName, bool bEnable, bool bPointsOnly, bool bEnablePicking)
 Enables or disables the animation of the given line strips. More...
 
void SelectObject (System::String^ sName, int iIndex)
 Selects the object (circle, point, etc.) with the given index from the list of objects (circle list, point list, etc.) described by the given name. More...
 
void SetImage (Rx::InteropNet::Runtime28::IImage^ xImage, bool bUpdate)
 Sets the image handled by this view image tool. More...
 

Protected Member Functions

virtual void _LoadToolScript () override
 Loads the tool script. More...
 

Protected Attributes

Rx::Net::StdVboMoniker^ m_xObject
 The standard VBO moniker More...
 
ViewCtrlm_xViewCtrl
 The view control More...
 

Properties

int CircleEdgeCount
 Gets or sets the number of edges that describes a circle. The higher the number the slower the drawing. Default: 32. More...
 
bool IsValid [get]
 Gets a value indicating whether this ViewToolBase is valid. This base is valid if ViewToolBase or AttachTo has been called with a valid reference to a ViewCtrl. More...
 
ViewCtrl^  ViewControl [get]
 Gets the view control that has this ViewToolBase attached. More...
 

Constructor & Destructor Documentation

CLUViz::Net::ViewImageTool::ViewImageTool ( )

Default constructor.

To make the instance valid, you have to call AttachTo with a valid reference to a view control.

CLUViz::Net::ViewImageTool::ViewImageTool ( ViewCtrl xViewCtrl)

Constructor that attaches to the given view control. See AttachTo.

Parameters
xViewCtrl[in] The view control to attach to.

Member Function Documentation

virtual void CLUViz::Net::ViewImageTool::_LoadToolScript ( )
overrideprotectedvirtual

Loads the tool script.

Implements CLUViz::Net::ViewToolBase.

void CLUViz::Net::ViewImageTool::AddCircleList ( System::String^  sName,
array< Rx::Net::ColorCircle2D >^  aCircleList,
CircleViewPars xPars,
bool  bClearScene 
)

Adds one or more colored circles to the tool script.

Parameters
sName[in] The name of the circle list. This should be an unique string.
aCircleList[in] The circle list.
xPars[in] Parameter instance determining the visual appearance of the circles.
bClearSceneTrue to clear the drawing scene before drawing new objects.
void CLUViz::Net::ViewImageTool::AddCircleList ( System::String^  sName,
array< Rx::Net::Circle2D >^  aCircleList,
Rx::Net::Vector4D  vColor,
CircleViewPars xPars,
bool  bClearScene 
)

Adds one or more colored circles to the tool script.

Parameters
sName[in] The name of the circle list. This should be an unique string.
aCircleList[in] The circle list.
vColorThe color applied to each circle in the list.
xPars[in] Parameter instance determining the visual appearance of the circles.
bClearSceneTrue to clear the drawing scene before drawing new objects.
void CLUViz::Net::ViewImageTool::AddLineStripList ( System::String^  sName,
array< Rx::Net::LineStrip2D^ >^  aLineStripList,
LineStripViewPars xPars,
bool  bClearScene 
)

Adds one or more colored line strips to the tool script.

Parameters
sName[in] The name of the line strip list. This should be an unique string.
aLineStripList[in] The line strip list.
xPars[in] Parameter instance determining the visual appearance of the line strips.
bClearSceneTrue to clear the drawing scene before drawing new objects.
void CLUViz::Net::ViewImageTool::AddLineStripList ( System::String^  sName,
array< Rx::Net::LineStrip2D^ >^  aLineStripList,
array< bool >^  aLineStripListMask,
LineStripViewPars xPars,
bool  bClearScene 
)

Adds one or more colored line strips to the tool script.

This method provides a way to make some line strips invisible. You can specify a list of flags that must have the same size as the line strip list. Each flag determines the visibility of the line strip at the same array position.

Parameters
sName[in] The name of the line strip list. This should be an unique string.
aLineStripList[in] The line strip list.
aLineStripListMask[in] A list of flags for each line strip determining its visibility.
xPars[in] Parameter instance determining the visual appearance of the line strips.
bClearSceneTrue to clear the drawing scene before drawing new objects.
void CLUViz::Net::ViewImageTool::AddPointList ( System::String^  sName,
array< Rx::Net::ColorPoint2D >^  aPointList,
PointViewPars xPars,
bool  bClearScene 
)

Adds one or more colored points to the tool script.

Parameters
sName[in] The name of the point list. This should be an unique string.
aPointList[in] The point list.
xPars[in] Parameter instance determining the visual appearance of the points.
bClearSceneTrue to clear the drawing scene before drawing new objects.
void CLUViz::Net::ViewImageTool::AddPointList ( System::String^  sName,
array< Rx::Net::Vector2D >^  aPointList,
Rx::Net::Vector4D  vColor,
PointViewPars xPars,
bool  bClearScene 
)

Adds one or more colored points to the tool script.

Parameters
sName[in] The name of the point list. This should be an unique string.
aPointList[in] The point list.
vColorThe color applied to each point in the list.
xPars[in] Parameter instance determining the visual appearance of the points.
bClearSceneTrue to clear the drawing scene before drawing new objects.
void CLUViz::Net::ViewImageTool::AddText ( System::String^  sName,
Rx::Net::Text2D  xText 
)

Adds a text to the tool script.

Parameters
sName[in] The name of the text. This should be an unique string.
xTextThe 2D text.
void CLUViz::Net::ViewImageTool::AddText ( System::String^  sName,
array< Rx::Net::Text2D >^  aTextList 
)

Adds one or more texts to the tool script.

Parameters
sName[in] The name of the text list. This should be an unique string.
aTextList[in] The list of 2D texts.
void CLUViz::Net::ViewToolBase::AttachTo ( ViewCtrl xViewCtrl)
inherited

Attaches to the given view control. Detaches from last view control by calling Detach. Loads the provided tool script.

Parameters
xViewCtrl[in] The view control.
void CLUViz::Net::ViewImageTool::ClearImage ( )

Clears the image set by SetImage.

void CLUViz::Net::ViewImageTool::ClearObjectsAndText ( )

Clears all objects and texts added to the tool script.

void CLUViz::Net::ViewToolBase::Detach ( )
inherited

Detaches this ViewToolBase from the last view control. This resets the loaded script and makes this class invalid.

void CLUViz::Net::ViewImageTool::DrawToScene ( System::String^  sName,
bool  bClearScene 
)

Makes the given scene current. All further drawings are done in this scene.

Parameters
sName[in] The name of the scene.
bClearSceneTrue to clear the drawing scene before drawing new objects.
void CLUViz::Net::ViewImageTool::EnableLineStripAnimation ( System::String^  sName,
bool  bEnable,
bool  bPointsOnly,
bool  bEnablePicking 
)

Enables or disables the animation of the given line strips.

Parameters
sName[in] The name of the line strip list passed to the add function that added the desired strip.
bEnableTrue to enable the animation, false to disable it.
bPointsOnlyTrue to animate only the points of the line strips, false to enable the entire line strips.
bEnablePickingTrue to enable mouse over appearance, false to disable it.
void CLUViz::Net::ViewImageTool::SelectObject ( System::String^  sName,
int  iIndex 
)

Selects the object (circle, point, etc.) with the given index from the list of objects (circle list, point list, etc.) described by the given name.

Parameters
sName[in] The name of the list passed to the add function that added the desired object.
iIndexThe index of the desired object in its list.
void CLUViz::Net::ViewImageTool::SetImage ( Rx::InteropNet::Runtime28::IImage xImage,
bool  bUpdate 
)

Sets the image handled by this view image tool.

Parameters
xImage[in] The image.
bUpdateTrue to update only the image content. False to provide an image with a changed image format.

Member Data Documentation

Rx::Net::StdVboMoniker ^ CLUViz::Net::ViewToolBase::m_xObject
protectedinherited

The standard VBO moniker

ViewCtrl ^ CLUViz::Net::ViewToolBase::m_xViewCtrl
protectedinherited

The view control

Property Documentation

int CLUViz::Net::ViewToolBase::CircleEdgeCount
inherited

Gets or sets the number of edges that describes a circle. The higher the number the slower the drawing. Default: 32.

bool CLUViz::Net::ViewToolBase::IsValid
getinherited

Gets a value indicating whether this ViewToolBase is valid. This base is valid if ViewToolBase or AttachTo has been called with a valid reference to a ViewCtrl.

ViewCtrl^ CLUViz::Net::ViewToolBase::ViewControl
getinherited

Gets the view control that has this ViewToolBase attached.