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

Detailed Description

CLUViz .NET View Control

Inherits UserControl.

Public Member Functions

 ViewCtrl (bool bLoadIntroScript)
 Default constructor. More...
 
 ViewCtrl (bool bLoadIntroScript, bool bCreateSharedRC, __int64 hGLRC)
 Constructor. More...
 
void ClearScript ()
 Unloads the script that has been loaded by SetScript or LoadScript and places 'CLUViz' in the center. More...
 
void ClearScript (System::String^ sText)
 Unloads the script that has been loaded by SetScript or LoadScript and places the given string in the center. More...
 
void ClearScript (System::String^ sText, System::Drawing::Color xBackgroundColor)
 Unloads the script that has been loaded by SetScript or LoadScript and places the given string in the center. More...
 
void EnableDrawing (bool bEnable)
 Enables/Disables the drawing of the CLUViz scene graph. The script is still executed when calling ExecScript() or if the user uses any tools. More...
 
void EnableDrawing (bool bEnable, bool bDoRedisplay)
 Enables/Disables the drawing of the CLUViz scene graph. The script is still executed when calling ExecScript() or if the user uses any tools. More...
 
void EnableViewMouseEvents (bool bEnable)
 Enables/Disables the view mouse events. Must not be called if 'IsLoaded' is false. More...
 
void ExecScript (System::String^ sMessage)
 Executes the script and sets the internal script variable 'ToolName' to the given string. More...
 
void ExecScript (System::String^ sMessage, System::String^ %sScriptOutput)
 Executes the script and sets the internal script variable 'ToolName' to the given string. More...
 
System::String^ GetSceneGraphPrint ()
 Gets the ASCII formatted CluViz scene graph created by the current script. It can be used for debug purposes. More...
 
void GetScriptOutput ([Out] array< System::String^ >^%asText, [Out] bool% bIsError)
 Gets the script output produced during script execution. More...
 
System::String^ GetScriptOutput ([Out] bool% bIsError)
 Gets the script output produced during script execution. More...
 
System::String^ GetScriptOutput ()
 Gets the script output produced during script execution. More...
 
void GetVarColor (System::String^ sVarName, [Out] System::Drawing::Color% colValue)
 Gets the value of a CluViz color variable. More...
 
void GetVarImage (System::String^ sVarName, Rx::InteropNet::Runtime28::IImage^ imgValue)
 Gets the value of a CluViz image variable. More...
 
void GetVarNumber (System::String^ sVarName, [Out] int% iValue)
 Gets the value of a CluViz script variable. More...
 
void GetVarNumber (System::String^ sVarName, [Out] bool% bValue)
 Gets the value of a CluViz script variable. More...
 
void GetVarNumber (System::String^ sVarName, [Out] double% dValue)
 Gets the value of a CluViz script variable. More...
 
void GetVarString (System::String^ sVarName, [Out] System::String^ %sValue)
 Gets the value of a CluViz script variable. More...
 
void GetVarString (System::String^ sVarName, [Out] System::String^ %sValue, int iMaxLen)
 Gets the value of a CluViz script variable. More...
 
void GetVarTensor (System::String^ sVarName, [Out] array< int >^%aiDim, [Out] array< double >^%adValue)
 Gets the values and dimensions of a CluViz tensor. More...
 
void LoadScript (System::String^ sFilename)
 Loads a script from file. More...
 
void LoadScript (System::String^ sFilename, System::String^ sPass)
 Loads a script from file. More...
 
void LockVis (bool bLock)
 Locks or unlocks the visualization. You must NOT call ExecScript while locked. More...
 
void MakeCurrentSharedRC ()
 Makes the shared OpenGL rendering context the current one. More...
 
void PauseDrawing (bool bEnablePause)
 Pause drawing for short period of time. While paused, all keyboard and mouse events are blocked (and queued) until the pause is disabled. More...
 
virtual void Refresh () override
 Forces the control to invalidate its client area and immediately redraw itself. More...
 
void ResumeLayout (bool bPerformLayout)
 Resumes layout. This enables resizing of CLU window. More...
 
void SetScript (System::String^ sScript)
 Sets the CluViz script for this control as a string. More...
 
void SetScript (System::String^ sScript, bool bResetEnv)
 Sets the CluViz script for this control as a string. More...
 
void SetScript (System::String^ sScript, bool bResetEnv, bool bReparseLatex)
 Sets the CluViz script for this control as a string. More...
 
void SetVarColor (System::String^ sVarName, System::Drawing::Color colValue)
 Sets the value of a CluViz color variable. More...
 
void SetVarImage (System::String^ sVarName, Rx::InteropNet::Runtime28::IImage^ imgValue)
 Sets the value of a CluViz image variable. More...
 
void SetVarNumber (System::String^ sVarName, int iValue)
 Sets the value of a CluViz variable. More...
 
void SetVarNumber (System::String^ sVarName, bool bValue)
 Sets the value of a CluViz variable. More...
 
void SetVarNumber (System::String^ sVarName, float fValue)
 Sets the value of a CluViz variable. More...
 
void SetVarNumber (System::String^ sVarName, double dValue)
 Sets the value of a CluViz variable. More...
 
void SetVarObject (System::String^ sVarName, Rx::Net::StdVboMoniker^ xObject)
 Sets the value of a CluViz vertex buffer object variable. More...
 
void SetVarString (System::String^ sVarName, System::String^ sValue)
 Sets the value of a CluViz variable. More...
 
void SetVarStringList (System::String^ sVarName, array< System::String^ >^asValue)
 Sets the value of a CluViz variable. More...
 
void SetVarTensor (System::String^ sVarName, array< int >^aiDim, array< double >^adData)
 Sets the value of a CluViz tensor variable. More...
 
void SuspendLayout ()
 Suspends layout. This disables resizing of CLU window to achieve better performance while performing layout of windows. More...
 
void Update ()
 Updates the visualization and waits for the completion. More...
 
void Update (bool bWait)
 Updates the visualization. More...
 

Protected Member Functions

 !ViewCtrl ()
 Finalizer. This is called by the garbage collector. More...
 
virtual ~ViewCtrl ()
 Destructor. This is NOT called by the garbage collector. The destructor is used to free native resources explicitly by calling delete on an instance. This does not free the managed resources used. More...
 
System::String^ _GetLastError (System::String^ sPreString)
 Gets the last error. More...
 
void _Init (bool bLoadIntroScript, bool bCreateSharedRC, __int64 hGLRC)
 Initializes this object. More...
 
void _SetPosSize ()
 Sets the position and the size. More...
 
bool _TranslateControlKey (int% iCLUKey, System::Windows::Forms::Keys eKey)
 Translate control key. More...
 
void _UpdateModifierKeys ()
 Updates the modifier keys. More...
 
virtual bool IsInputKey (System::Windows::Forms::Keys eKey) override
 Query if 'eKey' is input key. More...
 
virtual void OnEnabledChanged (System::EventArgs^ e) override
 Executes the enabled changed action. More...
 
virtual void OnGotFocus (System::EventArgs^ e) override
 Executes the got focus action. More...
 
virtual void OnKeyDown (System::Windows::Forms::KeyEventArgs^ e) override
 Executes the key down action. More...
 
virtual void OnKeyPress (System::Windows::Forms::KeyPressEventArgs^ e) override
 Executes the key press action. More...
 
virtual void OnKeyUp (System::Windows::Forms::KeyEventArgs^ e) override
 Executes the key up action. More...
 
virtual void OnLostFocus (System::EventArgs^ e) override
 Executes the lost focus action. More...
 
virtual void OnMouseDown (System::Windows::Forms::MouseEventArgs^ e) override
 Executes the mouse down action. More...
 
virtual void OnMouseEnter (System::EventArgs^ e) override
 Executes the mouse enter action. More...
 
virtual void OnMouseLeave (System::EventArgs^ e) override
 Executes the mouse leave action. More...
 
virtual void OnMouseMove (System::Windows::Forms::MouseEventArgs^ e) override
 Executes the mouse move action. More...
 
virtual void OnMouseUp (System::Windows::Forms::MouseEventArgs^ e) override
 Executes the mouse up action. More...
 
virtual void OnPaint (System::Windows::Forms::PaintEventArgs^ e) override
 Paints this window. More...
 
virtual void OnPaintBackground (System::Windows::Forms::PaintEventArgs^ e) override
 Executes the paint background action. More...
 
virtual void OnParentChanged (System::EventArgs^ e) override
 Executes the parent changed action. More...
 
virtual void OnResize (System::EventArgs^ e) override
 Executes the resize action. More...
 
void OnViewMouseEvent (CLUViz::SMouseEventData *pvData, void *pvContext)
 Executes the view mouse event action. More...
 
void OnViewMouseEventInvoked (CLUViz::Net::ViewCtrl^ sender, CLUViz::Net::SMouseEventData^ xData)
 
virtual void WndProc (System::Windows::Forms::Message% m) override
 WndProc. More...
 

Properties

System::Windows::Forms::CreateParams^  CreateParams [get]
 Adds the class styles VREDRAW, HREDRAW and OWNDC to support OpenGL rendering. More...
 
bool FocusOnMouseOver
 Gets or sets a value indicating whether this control gets the focus on mouse over. More...
 
__int64 SharedGLRC [get]
 Gets the shared OpenGL rendering context. Is 0 if no shared context has been created. More...
 

Events

ViewMouseEventHandler^  ViewMouseEvent
 Occurs when the mouse interaction with the control triggers an action. More...
 
ViewMouseEventHandler^  ViewMouseEventInvoked
 Occurs when the mouse interaction with the control triggers an action. The listeners of this events are More...
 

Constructor & Destructor Documentation

CLUViz::Net::ViewCtrl::ViewCtrl ( bool  bLoadIntroScript)

Default constructor.

Creates a WinForms user control that can be placed on a form. This control allows interaction with a loaded CluViz script that visualizes its content using OpenGL.

Parameters
bLoadIntroScriptTrue to load an intro script for demonstration.
CLUViz::Net::ViewCtrl::ViewCtrl ( bool  bLoadIntroScript,
bool  bCreateSharedRC,
__int64  hGLRC 
)

Constructor.

Creates a WinForms user control that can be placed on a form. This control allows interaction with a loaded CluViz script that visualizes its content using OpenGL.

If you want to place multiple user controls on your form that should share OpenGL resources you must create the first user control with bCreateSharedRC set to true and hGLRC set to 0. This creates a shared rendering context. All further controls must be created with bCreateSharedRC set to false. In this case you must provide the created shared rendering context as the parameter hGLRC. You get the shared rendering context using the property SharedGLRC.

Parameters
bLoadIntroScriptTrue to load an intro script for demonstration.
bCreateSharedRCTrue to create a shared OpenGL rendering context.
hGLRCThe shared OpenGL rendering context to use. Is ignored if bCreateSharedRC is true.
virtual CLUViz::Net::ViewCtrl::~ViewCtrl ( )
protectedvirtual

Destructor. This is NOT called by the garbage collector. The destructor is used to free native resources explicitly by calling delete on an instance. This does not free the managed resources used.

CLUViz::Net::ViewCtrl::!ViewCtrl ( )
protected

Finalizer. This is called by the garbage collector.

Member Function Documentation

System::String ^ CLUViz::Net::ViewCtrl::_GetLastError ( System::String^  sPreString)
protected

Gets the last error.

Parameters
sPreString[in] If non-null, the pre string.
Returns
Null if it fails, else the last error.
void CLUViz::Net::ViewCtrl::_Init ( bool  bLoadIntroScript,
bool  bCreateSharedRC,
__int64  hGLRC 
)
protected

Initializes this object.

Parameters
bLoadIntroScriptTrue to load intro script.
bCreateSharedRCTrue to create shared rendering context.
hGLRCThe shared rendering context.
void CLUViz::Net::ViewCtrl::_SetPosSize ( )
protected

Sets the position and the size.

bool CLUViz::Net::ViewCtrl::_TranslateControlKey ( int%  iCLUKey,
System::Windows::Forms::Keys  eKey 
)
protected

Translate control key.

Parameters
iCLUKey[in,out] Zero-based index of the clu key.
eKeyThe key.
Returns
True if it succeeds, false if forms key isn't a CLUViz key.
void CLUViz::Net::ViewCtrl::_UpdateModifierKeys ( )
protected

Updates the modifier keys.

void CLUViz::Net::ViewCtrl::ClearScript ( )

Unloads the script that has been loaded by SetScript or LoadScript and places 'CLUViz' in the center.

void CLUViz::Net::ViewCtrl::ClearScript ( System::String^  sText)

Unloads the script that has been loaded by SetScript or LoadScript and places the given string in the center.

Parameters
sText[in] The text to be placed in the center of this control.
void CLUViz::Net::ViewCtrl::ClearScript ( System::String^  sText,
System::Drawing::Color  xBackgroundColor 
)

Unloads the script that has been loaded by SetScript or LoadScript and places the given string in the center.

Parameters
sText[in] The text to be placed in the center of this control.
xBackgroundColorThe background color.
void CLUViz::Net::ViewCtrl::EnableDrawing ( bool  bEnable)

Enables/Disables the drawing of the CLUViz scene graph. The script is still executed when calling ExecScript() or if the user uses any tools.

Disable the drawing will also disable all Keyboard / Mouse events.

Parameters
bEnabletrue to enable, false to disable.
void CLUViz::Net::ViewCtrl::EnableDrawing ( bool  bEnable,
bool  bDoRedisplay 
)

Enables/Disables the drawing of the CLUViz scene graph. The script is still executed when calling ExecScript() or if the user uses any tools.

Parameters
bEnabletrue to enable, false to disable.
bDoRedisplaytrue to do redisplay.
void CLUViz::Net::ViewCtrl::EnableViewMouseEvents ( bool  bEnable)

Enables/Disables the view mouse events. Must not be called if 'IsLoaded' is false.

Parameters
bEnabletrue to enable, false to disable.
void CLUViz::Net::ViewCtrl::ExecScript ( System::String^  sMessage)

Executes the script and sets the internal script variable 'ToolName' to the given string.

Parameters
sMessage[in] The tool name string.

Use the following code snippet in your script and call ExecScript("SetBGColorWhite") to change the background color of the script visualization:

if (ToolName == "SetBGColorWhite") { _BGColor = White; }

void CLUViz::Net::ViewCtrl::ExecScript ( System::String^  sMessage,
System::String^ %  sScriptOutput 
)

Executes the script and sets the internal script variable 'ToolName' to the given string.

Parameters
sMessage[in] The tool name string.
sScriptOutput[out] Contains any text the script has procuded during execution.

Use the following code snippet in your script and call ExecScript("SetBGColorWhite") to change the background color of the script visualization:

if (ToolName == "SetBGColorWhite") { _BGColor = White; }

System::String ^ CLUViz::Net::ViewCtrl::GetSceneGraphPrint ( )

Gets the ASCII formatted CluViz scene graph created by the current script. It can be used for debug purposes.

Returns
The scene graph as a string.
void CLUViz::Net::ViewCtrl::GetScriptOutput ( [Out] array< System::String^ >^%  asText,
[Out] bool%  bIsError 
)

Gets the script output produced during script execution.

Parameters
asText[out] An array of output string.
bIsError[out] Is true if the output contains error strings.
System::String ^ CLUViz::Net::ViewCtrl::GetScriptOutput ( [Out] bool%  bIsError)

Gets the script output produced during script execution.

Parameters
bIsError[out] Is true if the output contains error strings.
Returns
The output.
System::String ^ CLUViz::Net::ViewCtrl::GetScriptOutput ( )

Gets the script output produced during script execution.

Returns
The output.
void CLUViz::Net::ViewCtrl::GetVarColor ( System::String^  sVarName,
[Out] System::Drawing::Color%  colValue 
)

Gets the value of a CluViz color variable.

Parameters
sVarName[in] The name of the color variable.
colValue[out] The returned color.
void CLUViz::Net::ViewCtrl::GetVarImage ( System::String^  sVarName,
Rx::InteropNet::Runtime28::IImage imgValue 
)

Gets the value of a CluViz image variable.

Parameters
sVarName[in] The name of the image variable.
imgValue[out] The returned image.
void CLUViz::Net::ViewCtrl::GetVarNumber ( System::String^  sVarName,
[Out] int%  iValue 
)

Gets the value of a CluViz script variable.

Parameters
sVarName[in] The name of the variable.
iValue[out] The returned value.
void CLUViz::Net::ViewCtrl::GetVarNumber ( System::String^  sVarName,
[Out] bool%  bValue 
)

Gets the value of a CluViz script variable.

Parameters
sVarName[in] The name of the variable.
bValue[out] The returned value.
void CLUViz::Net::ViewCtrl::GetVarNumber ( System::String^  sVarName,
[Out] double%  dValue 
)

Gets the value of a CluViz script variable.

Parameters
sVarName[in] The name of the variable.
dValue[out] The returned value.
void CLUViz::Net::ViewCtrl::GetVarString ( System::String^  sVarName,
[Out] System::String^ %  sValue 
)

Gets the value of a CluViz script variable.

Parameters
sVarName[in] The name of the variable.
sValue[out] The returned string.
void CLUViz::Net::ViewCtrl::GetVarString ( System::String^  sVarName,
[Out] System::String^ %  sValue,
int  iMaxLen 
)

Gets the value of a CluViz script variable.

Parameters
sVarName[in] The name of the variable.
sValue[out] The returned string.
iMaxLenThe maximum number of characters that should be returned.
void CLUViz::Net::ViewCtrl::GetVarTensor ( System::String^  sVarName,
[Out] array< int >^%  aiDim,
[Out] array< double >^%  adValue 
)

Gets the values and dimensions of a CluViz tensor.

Parameters
sVarName[in] The name of the tensor.
aiDim[out] The returned tensor dimensions. The size of this array is the number of dimensions.
adValue[out] The returned tensor values.
virtual bool CLUViz::Net::ViewCtrl::IsInputKey ( System::Windows::Forms::Keys  eKey)
overrideprotectedvirtual

Query if 'eKey' is input key.

Parameters
eKeyThe key.
Returns
True if input key, false if not.
void CLUViz::Net::ViewCtrl::LoadScript ( System::String^  sFilename)

Loads a script from file.

Parameters
sFilename[in] IThe file name of the CluViz script.
void CLUViz::Net::ViewCtrl::LoadScript ( System::String^  sFilename,
System::String^  sPass 
)

Loads a script from file.

Parameters
sFilename[in] IThe file name of the CluViz script.
sPass[in] The password of the encrypted script.
void CLUViz::Net::ViewCtrl::LockVis ( bool  bLock)

Locks or unlocks the visualization. You must NOT call ExecScript while locked.

Parameters
bLockTrue to lock, false to unlock.
void CLUViz::Net::ViewCtrl::MakeCurrentSharedRC ( )

Makes the shared OpenGL rendering context the current one.

This is required if you want to call OpenGL methods using this context by your own.

virtual void CLUViz::Net::ViewCtrl::OnEnabledChanged ( System::EventArgs^  e)
overrideprotectedvirtual

Executes the enabled changed action.

Parameters
e[in,out] If non-null, the System::EventArgs^ to process.
virtual void CLUViz::Net::ViewCtrl::OnGotFocus ( System::EventArgs^  e)
overrideprotectedvirtual

Executes the got focus action.

Parameters
e[in,out] If non-null, the System::EventArgs^ to process.
virtual void CLUViz::Net::ViewCtrl::OnKeyDown ( System::Windows::Forms::KeyEventArgs^  e)
overrideprotectedvirtual

Executes the key down action.

Parameters
e[in,out] If non-null, the System::Windows::Forms::KeyEventArgs^ to process.
virtual void CLUViz::Net::ViewCtrl::OnKeyPress ( System::Windows::Forms::KeyPressEventArgs^  e)
overrideprotectedvirtual

Executes the key press action.

Parameters
e[in,out] If non-null, the System::Windows::Forms::KeyPressEventArgs^ to process.
virtual void CLUViz::Net::ViewCtrl::OnKeyUp ( System::Windows::Forms::KeyEventArgs^  e)
overrideprotectedvirtual

Executes the key up action.

Parameters
e[in,out] If non-null, the System::Windows::Forms::KeyEventArgs^ to process.
virtual void CLUViz::Net::ViewCtrl::OnLostFocus ( System::EventArgs^  e)
overrideprotectedvirtual

Executes the lost focus action.

Parameters
e[in,out] If non-null, the System::EventArgs^ to process.
virtual void CLUViz::Net::ViewCtrl::OnMouseDown ( System::Windows::Forms::MouseEventArgs^  e)
overrideprotectedvirtual

Executes the mouse down action.

Parameters
e[in,out] If non-null, the System::Windows::Forms::MouseEventArgs^ to process.
virtual void CLUViz::Net::ViewCtrl::OnMouseEnter ( System::EventArgs^  e)
overrideprotectedvirtual

Executes the mouse enter action.

Parameters
e[in,out] If non-null, the System::EventArgs^ to process.
virtual void CLUViz::Net::ViewCtrl::OnMouseLeave ( System::EventArgs^  e)
overrideprotectedvirtual

Executes the mouse leave action.

Parameters
e[in,out] If non-null, the System::EventArgs^ to process.
virtual void CLUViz::Net::ViewCtrl::OnMouseMove ( System::Windows::Forms::MouseEventArgs^  e)
overrideprotectedvirtual

Executes the mouse move action.

Parameters
e[in,out] If non-null, the System::Windows::Forms::MouseEventArgs^ to process.
virtual void CLUViz::Net::ViewCtrl::OnMouseUp ( System::Windows::Forms::MouseEventArgs^  e)
overrideprotectedvirtual

Executes the mouse up action.

Parameters
e[in,out] If non-null, the System::Windows::Forms::MouseEventArgs^ to process.
virtual void CLUViz::Net::ViewCtrl::OnPaint ( System::Windows::Forms::PaintEventArgs^  e)
overrideprotectedvirtual

Paints this window.

Parameters
e[in,out] If non-null, the System::Windows::Forms::PaintEventArgs^ to process.
virtual void CLUViz::Net::ViewCtrl::OnPaintBackground ( System::Windows::Forms::PaintEventArgs^  e)
overrideprotectedvirtual

Executes the paint background action.

Parameters
e[in,out] If non-null, the System::Windows::Forms::PaintEventArgs^ to process.
virtual void CLUViz::Net::ViewCtrl::OnParentChanged ( System::EventArgs^  e)
overrideprotectedvirtual

Executes the parent changed action.

Parameters
e[in,out] If non-null, the System::EventArgs^ to process.
virtual void CLUViz::Net::ViewCtrl::OnResize ( System::EventArgs^  e)
overrideprotectedvirtual

Executes the resize action.

Parameters
e[in,out] If non-null, the System::EventArgs^ to process.
void CLUViz::Net::ViewCtrl::OnViewMouseEvent ( CLUViz::SMouseEventData *  pvData,
void *  pvContext 
)
protected

Executes the view mouse event action.

Parameters
pvData[in,out] If non-null, information describing the pv.
pvContext[in,out] If non-null, context for the pv.
void CLUViz::Net::ViewCtrl::OnViewMouseEventInvoked ( CLUViz::Net::ViewCtrl sender,
CLUViz::Net::SMouseEventData xData 
)
protected
void CLUViz::Net::ViewCtrl::PauseDrawing ( bool  bEnablePause)

Pause drawing for short period of time. While paused, all keyboard and mouse events are blocked (and queued) until the pause is disabled.

Parameters
bEnablePausetrue to enable, false to disable the pause.
virtual void CLUViz::Net::ViewCtrl::Refresh ( )
overridevirtual

Forces the control to invalidate its client area and immediately redraw itself.

void CLUViz::Net::ViewCtrl::ResumeLayout ( bool  bPerformLayout)

Resumes layout. This enables resizing of CLU window.

Parameters
bPerformLayoutTrue to perform layout and resize CLU window.
void CLUViz::Net::ViewCtrl::SetScript ( System::String^  sScript)

Sets the CluViz script for this control as a string.

Parameters
sScript[in] The string containing the CluViz script content.
void CLUViz::Net::ViewCtrl::SetScript ( System::String^  sScript,
bool  bResetEnv 
)

Sets the CluViz script for this control as a string.

Parameters
sScript[in] The string containing the CluViz script content.
bResetEnvTrue to reset environment variables set by former scripts.
void CLUViz::Net::ViewCtrl::SetScript ( System::String^  sScript,
bool  bResetEnv,
bool  bReparseLatex 
)

Sets the CluViz script for this control as a string.

Parameters
sScript[in] The string containing the CluViz script content.
bResetEnvTrue to reset environment variables set by former scripts.
bReparseLatexTrue to reparse latex.
void CLUViz::Net::ViewCtrl::SetVarColor ( System::String^  sVarName,
System::Drawing::Color  colValue 
)

Sets the value of a CluViz color variable.

Parameters
sVarName[in] The name of the color variable.
colValueThe color.
void CLUViz::Net::ViewCtrl::SetVarImage ( System::String^  sVarName,
Rx::InteropNet::Runtime28::IImage imgValue 
)

Sets the value of a CluViz image variable.

Parameters
sVarName[in] The name of the image variable.
imgValue[in,out] The image.
void CLUViz::Net::ViewCtrl::SetVarNumber ( System::String^  sVarName,
int  iValue 
)

Sets the value of a CluViz variable.

Parameters
sVarName[in] The name of the variable.
iValueThe value of the variable.
void CLUViz::Net::ViewCtrl::SetVarNumber ( System::String^  sVarName,
bool  bValue 
)

Sets the value of a CluViz variable.

Parameters
sVarName[in] The name of the variable.
bValueThe value of the variable.
void CLUViz::Net::ViewCtrl::SetVarNumber ( System::String^  sVarName,
float  fValue 
)

Sets the value of a CluViz variable.

Parameters
sVarName[in] The name of the variable.
fValueThe value of the variable.
void CLUViz::Net::ViewCtrl::SetVarNumber ( System::String^  sVarName,
double  dValue 
)

Sets the value of a CluViz variable.

Parameters
sVarName[in] The name of the variable.
dValueThe value of the variable.
void CLUViz::Net::ViewCtrl::SetVarObject ( System::String^  sVarName,
Rx::Net::StdVboMoniker^  xObject 
)

Sets the value of a CluViz vertex buffer object variable.

Parameters
sVarName[in] The name of the vertex buffer object variable.
xObject[in,out] The vertex buffer object.
void CLUViz::Net::ViewCtrl::SetVarString ( System::String^  sVarName,
System::String^  sValue 
)

Sets the value of a CluViz variable.

Parameters
sVarName[in] The name of the variable.
sValue[in] The value of the variable.
void CLUViz::Net::ViewCtrl::SetVarStringList ( System::String^  sVarName,
array< System::String^ >^  asValue 
)

Sets the value of a CluViz variable.

Parameters
sVarName[in] The name of the variable.
sValue[in] The value of the variable.
void CLUViz::Net::ViewCtrl::SetVarTensor ( System::String^  sVarName,
array< int >^  aiDim,
array< double >^  adData 
)

Sets the value of a CluViz tensor variable.

Parameters
sVarName[in] The name of the tensor.
aiDim[in,out] The dimensions of the tensor.
adData[in,out] The values of the tensor.
void CLUViz::Net::ViewCtrl::SuspendLayout ( )

Suspends layout. This disables resizing of CLU window to achieve better performance while performing layout of windows.

void CLUViz::Net::ViewCtrl::Update ( )

Updates the visualization and waits for the completion.

void CLUViz::Net::ViewCtrl::Update ( bool  bWait)

Updates the visualization.

Parameters
bWaitTrue to wait for the completion.
virtual void CLUViz::Net::ViewCtrl::WndProc ( System::Windows::Forms::Message%  m)
overrideprotectedvirtual

WndProc.

Parameters
m[in,out] The System::Windows::Forms::Message % to process.

Property Documentation

System:: Windows:: Forms:: CreateParams^ CLUViz::Net::ViewCtrl::CreateParams
getprotected

Adds the class styles VREDRAW, HREDRAW and OWNDC to support OpenGL rendering.

bool CLUViz::Net::ViewCtrl::FocusOnMouseOver

Gets or sets a value indicating whether this control gets the focus on mouse over.

__int64 CLUViz::Net::ViewCtrl::SharedGLRC
get

Gets the shared OpenGL rendering context. Is 0 if no shared context has been created.

Event Documentation

ViewMouseEventHandler^ CLUViz::Net::ViewCtrl::ViewMouseEvent

Occurs when the mouse interaction with the control triggers an action.

ViewMouseEventHandler^ CLUViz::Net::ViewCtrl::ViewMouseEventInvoked

Occurs when the mouse interaction with the control triggers an action. The listeners of this events are

allowed to call arbitrary script executes within the event handler.