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

Detailed Description

A view image depth 3D tool.

Inherits CLUViz::Net::ViewToolBase.

Public Member Functions

 ViewImageDepth3dTool ()
 Default constructor. More...
 
 ViewImageDepth3dTool (ViewCtrl^ xViewCtrl)
 Constructor that attaches to the given view control. See AttachTo. 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 Clear ()
 Clears this object to its blank/initial state. More...
 
void Detach ()
 Detaches this ViewToolBase from the last view control. This resets the loaded script and makes this class invalid. More...
 
void SetImageDepth (Rx::InteropNet::Runtime28::IImage^ imgTexture, Rx::InteropNet::Runtime28::IImage^ imgDepth, double dObjectWidth, double dObjectScale, double dDepthMin, double dDepthMax)
 Sets the image depth. More...
 

Protected Member Functions

virtual ~ViewImageDepth3dTool ()
 Destructor. More...
 
void _Init ()
 Initializes this object. More...
 
virtual void _LoadToolScript () override
 Loads the internal 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...
 
System::Double UnitsPerMM [get, set]
 Gets or sets a factor that is applied to each vertex. Default is 1. More...
 
ViewCtrl^  ViewControl [get]
 Gets the view control that has this ViewToolBase attached. More...
 

Constructor & Destructor Documentation

CLUViz::Net::ViewImageDepth3dTool::ViewImageDepth3dTool ( )

Default constructor.

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

CLUViz::Net::ViewImageDepth3dTool::ViewImageDepth3dTool ( ViewCtrl xViewCtrl)

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

Parameters
xViewCtrl[in] The view control to attach to.
virtual CLUViz::Net::ViewImageDepth3dTool::~ViewImageDepth3dTool ( )
protectedvirtual

Destructor.

Member Function Documentation

void CLUViz::Net::ViewImageDepth3dTool::_Init ( )
protected

Initializes this object.

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

Loads the internal tool script.

Implements CLUViz::Net::ViewToolBase.

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::ViewImageDepth3dTool::Clear ( )

Clears this object to its blank/initial state.

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::ViewImageDepth3dTool::SetImageDepth ( Rx::InteropNet::Runtime28::IImage imgTexture,
Rx::InteropNet::Runtime28::IImage imgDepth,
double  dObjectWidth,
double  dObjectScale,
double  dDepthMin,
double  dDepthMax 
)

Sets the image depth.

Parameters
imgTexture[in] The texture image.
imgDepth[in] The depth image.
dObjectWidthWidth of the object.
dObjectScaleThe object scale.
dDepthMinThe minimum depth.
dDepthMaxThe maximum depth.

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.

System:: Double CLUViz::Net::ViewImageDepth3dTool::UnitsPerMM
getset

Gets or sets a factor that is applied to each vertex. Default is 1.

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

Gets the view control that has this ViewToolBase attached.