Related Scripting Object: View
The View object represents an instance of a view in Softimage. More...
#include <xsi_view.h>
Inheritance diagram for View:

Public Member Functions |
|
| View () | |
| ~View () | |
| View (const CRef &in_ref) | |
| View (const View &in_obj) | |
| bool | IsA (siClassID in_ClassID) const |
| siClassID | GetClassID () const |
| View & | operator= (const View &in_obj) |
| View & | operator= (const CRef &in_ref) |
| CRefArray | GetViews () const |
| siViewState | GetState () const |
| CStatus | PutState (siViewState in_lState) |
| bool | GetVisible () const |
| CStatus | PutVisible (bool in_bFlag) |
| bool | GetFloating () const |
| CValue | GetAttributeValue (const CString &in_strParamName) const |
| CStatus | PutAttributeValue (const CString &in_strParamName, const CValue &in_value) |
| CStatus | BeginEdit () |
| CStatus | EndEdit () |
| CStatus | Move (LONG in_x, LONG in_y) |
| CStatus | Resize (LONG in_w, LONG in_h) |
| CStatus | GetRectangle (LONG &out_lLeft, LONG &out_lTop, LONG &out_lRight, LONG &out_lBottom) const |
| CStatus | Refresh () |
Views are accessible from Layout::GetViews or View::GetViews if the view is a relational view. View objects are created with Layout::CreateView.
With view objects, you can:
Application app;
// Creates some sample views
Layout layout = app.GetDesktop().GetActiveLayout();
View v;
layout.CreateView( L"Explorer", L"My Explorer", v );
layout.CreateView( L"Browser", L"My Browser", v );
layout.CreateView( L"NetView", L"My NetView", v );
// position for the first view to cascade
LONG px = 50;
LONG py = 20;
// delta between each view
LONG dx = 20;
LONG dy = 20;
CRefArray views = layout.GetViews();
for ( LONG i=0; i<views.GetCount() ; i++)
{
View vw = views[i];
if( vw.GetFloating() && vw.GetName() != L"script_editor" )
{
vw.Move( px, py );
px += dx;
py += dy;
vw.PutState( siNormal ); // put view at the top so far
}
}
| View | ( | ) |
Default constructor.
| ~View | ( | ) |
Default destructor.
Constructor.
| in_ref | constant reference object. |
Copy constructor.
| in_obj | constant class object. |
| bool IsA | ( | siClassID | in_ClassID | ) | const [virtual] |
Returns true if a given class type is compatible with this API class.
| in_ClassID | class type. |
Reimplemented from UIPersistable.
| siClassID GetClassID | ( | ) | const [virtual] |
Returns the type of the API class.
Reimplemented from UIPersistable.
Creates an object from another object. The newly created object is set to empty if the input object is not compatible.
| in_obj | constant class object. |
Creates an object from a reference object. The newly created object is set to empty if the input reference object is not compatible.
| in_ref | constant class object. |
Reimplemented from UIPersistable.
| CRefArray GetViews | ( | ) | const |
Returns an array of View objects defined for this View. A View can have sub views if it was defined as a relational view.
| siViewState GetState | ( | ) | const |
Returns the state of a view. View states are mutually exclusive.
| CStatus PutState | ( | siViewState | in_lState | ) |
Sets the state of a view. View states are mutually exclusive.
| in_lState | View state value. |
CStatus::Fail failure
| bool GetVisible | ( | ) | const |
Returns true if the view is visible or false otherwise.
| CStatus PutVisible | ( | bool | in_bFlag | ) |
Make the view visible if the flag is true or hidden otherwise.
| in_bFlag | Visible flag. |
CStatus::Fail failure
| bool GetFloating | ( | ) | const |
Returns true if the view is floating or false if the view is embedded inside another one.
Returns a view specific attribute value.
| in_strParamName | Name of the attribute. |
Sets a view specific attribute value.
| in_strParamName | Name of the attribute. | |
| in_value | The new attribute value. |
CStatus::Fail failure
| CStatus BeginEdit | ( | ) |
Puts the view in edit mode. The edit mode allows you to change several view attributes in bulk without affecting the current UI. Call the View::EndEdit method to quit the edit mode.
CStatus::Fail failure
| CStatus EndEdit | ( | ) |
Requests an end to an edit operation on this View. This function updates the view with the attribute changes performed so far. This has no effect if the view is not in edit mode.
CStatus::Fail failure
| CStatus Move | ( | LONG | in_x, | |
| LONG | in_y | |||
| ) |
Moves a view to the specified global screen coordinate.
| in_x | Position in X. | |
| in_y | Position in Y. |
CStatus::Fail failure
| CStatus Resize | ( | LONG | in_w, | |
| LONG | in_h | |||
| ) |
Changes the size of a view.
| in_w | New width. | |
| in_h | New height |
CStatus::Fail failure
| CStatus GetRectangle | ( | LONG & | out_lLeft, | |
| LONG & | out_lTop, | |||
| LONG & | out_lRight, | |||
| LONG & | out_lBottom | |||
| ) | const |
Returns the rectangle of a view in screen coordinates.
| out_lLeft | Returns the left screen coordinate of a view. | |
| out_lTop | Returns the top screen coordinate of a view. | |
| out_lRight | Returns the right screen coordinate of a view. | |
| out_lBottom | Returns the bottom screen coordinate of a view. |
CStatus::Fail failure
| CStatus Refresh | ( | ) |
Refreshes the underlying view. This function is supported on views such as the Preset Manager and the Render Tree.
CStatus::NotImpl Not implemented on this view.
CStatus::Fail Failure.