r3realsoft

r3realsoft

Class

real/widget/r3realsoft.h

Library

r3wid

Description:

Realsoft 3D application.

See Also

oops/r3root.h

Super Class

r3Root

R3CLID_ROOT

JavaScript

r3Realsoft

Class Identifier

R3CLID_REALSOFT - 1737

Methods

RUN, REGISTERSTARTUPHOOK, LOAD, LOADSTARTUPSCRIPT,

Attributes

Model, View,

R3RSM_RUN

Method

RUN

Identifier

R3RSM_RUN

JavaScript

obj.RUN();

Description

Start event processing, returns when the application is terminated.

R3RSCM_REGISTERSTARTUPHOOK

Method

REGISTERSTARTUPHOOK

Identifier

R3RSCM_REGISTERSTARTUPHOOK

Return

R3BOOL, true if hook was succesfully registered.

JavaScript

rc = obj.REGISTERSTARTUPHOOK();

Description

Class method. Register new startup hook. Startup hooks are called when the application is completely initialized and ready to start event processing. In startup hooks, one can study contents of the startup project, insert new GUI objects into the user interface etc. The program passes only one parameter to the hook functions: the address of the main window object.

R3RSM_LOAD

Method

LOAD

Identifier

R3RSM_LOAD

Return

R3BOOL, true if succeeded

Param 1:

R3INT, section bits

Param 2:

R3BOOL, replace

Param 3:

char*, file name

JavaScript

rc = obj.LOAD(p1, p2, p3);

Description

Load project

R3RSM_LOADSTARTUPSCRIPT

Method

LOADSTARTUPSCRIPT

Identifier

R3RSM_LOADSTARTUPSCRIPT

Param 2:

R3CLID, class id of the script to be loaded

JavaScript

obj.LOADSTARTUPSCRIPT(0, p2, 0);

Description

Load startup script

Model

Attribute

Model

Identifier

R3RSA_Model

JavaScript type

Object

C type

R3OBJ*

Description

model as defined in r3real.h

Syntax


value = jsobj.GetModel();


R3OBJ* value;
R3GetAttrs(r3obj, R3RSA_Model, &value, R3TAG_END);

View

Attribute

View

Identifier

R3RSA_View

JavaScript type

Object

C type

R3OBJ*

Description

user interface

Syntax


value = jsobj.GetView();


R3OBJ* value;
R3GetAttrs(r3obj, R3RSA_View, &value, R3TAG_END);