home *** CD-ROM | disk | FTP | other *** search
-
- // JavaScript wrapper for r3constructor.h
- // Auto generated file, do not modify by hand
- // Copyright ⌐ 2004, Realsoft Graphics Oy
-
- var R3_CONSTRUCTOR_H = 1;
- include("real/objects/r3level.js")
-
-
- var R3CLID_CONSTRUCTOR = 1810;
-
-
-
-
- // Description: Transform the given target attribute.
- // Returns: Boolean, the super class returns FALSE if the object is disabled (R3CONSTRUCTORA_Enabled=FALSE) * in which case
- // the derived classes should not touch the target attribute.
- // p1: Object, target object
- // p3: Object, attribute channel buffer.
-
- R3CONSTRUCTORM_TRANSFORMATTR = 1810000;
-
- function mR3CONSTRUCTORM_TRANSFORMATTR(p1, p3) {
- return DoA2(this.r3obj, 1810000, p1, R3TID_OBJECT, 0, p3, R3TID_OBJECT, 0);
- }
-
- // Description: Run reconstruction. This method is typically called from R3MM_CHANGED, R3PRIMM_SIBLINGCHANGED or R3PRIMM_CHILDCHANGED depending on
- // the constructor.
-
- R3CONSTRUCTORM_RECONSTRUCT = 1810001;
-
- function mR3CONSTRUCTORM_RECONSTRUCT() {
- DoA(this.r3obj, 1810001, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Call the given object with given attribute.
- // Returns: Integer, true if attribute was defined.
- // p1: Object, object to be called
- // p2: Integer, callback method
- // p3: Integer, attribute to be passed to the callback method.
-
- R3CONSTRUCTORM_ENUMTARGETATT = 1810002;
-
- function mR3CONSTRUCTORM_ENUMTARGETATT(p1, p2, p3) {
- return DoA3(this.r3obj, 1810002, p1, R3TID_OBJECT, 0, p2, R3TID_INTEGER, 0, p3, R3TID_INTEGER, 0);
- }
-
- // Description: Private: optimized reconstruction. Call R3CONSTRUCTORM_RECONSTRUCT to ask the reconstruction.
- // Virtual method
-
- R3CONSTRUCTORM_DORECONSTRUCT = 1810003;
-
- function mR3CONSTRUCTORM_DORECONSTRUCT() {
- DoA(this.r3obj, 1810003, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Recursively enumerate target points for a given constructor. If the constructor's callback method returns
- // TRUE, the point in question is assigned back to object by calling R3PRIMM_SETPOINT. This method
- // is typically used by deformators.
- // p1: Object, constructor object to be called
- // p2: Integer, callback method for the constructor object
- // p3: Object, callback data
-
- R3CONSTRUCTORM_DEFORMTARGETP = 1810004;
-
- function mR3CONSTRUCTORM_DEFORMTARGETP(p1, p2, p3) {
- DoA3(this.r3obj, 1810004, p1, R3TID_OBJECT, 0, p2, R3TID_INTEGER, 0, p3, R3TID_OBJECT, 0);
- }
-
- // Description: Restore given attribute. This executes internal 'restore origval ' * constructor.
- // Returns: Boolean, true if succeeded
- // p1: Integer, tag
- // p2: Integer, index
-
- R3CONSTRUCTORM_PREPARE = 1810005;
-
- function mR3CONSTRUCTORM_PREPARE(p1, p2) {
- return DoA3(this.r3obj, 1810005, p1, R3TID_INTEGER, 0, p2, R3TID_INTEGER, 0, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Detach the constructor from the target objects.
- // Virtual method
- // Returns: Boolean, true if succeeded
- // p1: Integer, tag
- // p2: Integer, index
-
- R3CONSTRUCTORM_RELEASE = 1810006;
-
- function mR3CONSTRUCTORM_RELEASE(p1, p2) {
- return DoA3(this.r3obj, 1810006, p1, R3TID_INTEGER, 0, p2, R3TID_INTEGER, 0, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Enumerate geometric points, associated surface normals and uvw coordinates from the target objects. It
- // is up to sub classes to implement this method. Some geometric classes may not support
- // uvw coordinates or surface normals, in which case NULL should be passed in corresponding parameter.
- // Callback is called as: R3DoA3(callbackobj, callbackmth, obj, index, p_n_uvw); where R3VECTOR *p_n_uvw[3]; p_n_uvw[0] = &vertex;
- // p_n_uvw[1] = &normal; p_n_uvw[2] = &uvw;
- // Returns: Boolean, true if object handled.
- // p1: Object, callback object
- // p2: Integer[], callback method
-
- R3CONSTRUCTORM_ENUMTARGETPOI = 1810007;
-
- function mR3CONSTRUCTORM_ENUMTARGETPOI(p1, p2) {
- return DoA3(this.r3obj, 1810007, p1, R3TID_OBJECT, 0, p2, R3TID_INTEGER, R3TNF_ARRAY, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Enum target objects for the constructor.
- // Returns: Boolean, return value from the constructors callback method
- // p1: Object, callback object
- // p2: Integer, callback method
- // p3: Object, callback data
-
- R3CONSTRUCTORM_ENUMTARGETOBJ = 1810008;
-
- function mR3CONSTRUCTORM_ENUMTARGETOBJ(p1, p2, p3) {
- return DoA3(this.r3obj, 1810008, p1, R3TID_OBJECT, 0, p2, R3TID_INTEGER, 0, p3, R3TID_OBJECT, 0);
- }
-
- // Description: Callback method for creating the chor. associated with the constructor
- // Returns: Object, chor object for the target object
- // p1: Integer, attribute
- // p3: Integer, attribute index (-1 if regular attribute)
-
- R3CONSTRUCTORM_NEWCHOR = 1810009;
-
- function mR3CONSTRUCTORM_NEWCHOR(p1, p3) {
- return R3ToJS( DoA2(this.r3obj, 1810009, p1, R3TID_INTEGER, 0, p3, R3TID_INTEGER, 0));
- }
-
- // Description: Callback method for deleting chor objects associated with the constructors.
- // Returns: Boolean, true if succeeded
-
- R3CONSTRUCTORM_DELCHOR = 1810010;
-
- function mR3CONSTRUCTORM_DELCHOR() {
- return DoA(this.r3obj, 1810010, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Recursively enumerate target points for a given constructor.
- // p1: Object, constructor object to be called
- // p2: Integer, callback method for the constructor object
- // p3: Object, callback data
-
- R3CONSTRUCTORM_ENUMTARGETPOI = 1810011;
-
- function mR3CONSTRUCTORM_ENUMTARGETPOI(p1, p2, p3) {
- DoA3(this.r3obj, 1810011, p1, R3TID_OBJECT, 0, p2, R3TID_INTEGER, 0, p3, R3TID_OBJECT, 0);
- }
-
- // Description: Bind constructor to the given target object
- // Returns: Boolean, true if succeeded
- // p1: Boolean, recursive
- // p3: Object, target object
-
- R3CONSTRUCTORM_BIND = 1810012;
-
- function mR3CONSTRUCTORM_BIND(p1, p3) {
- return DoA2(this.r3obj, 1810012, p1, R3TID_BOOLEAN, 0, p3, R3TID_OBJECT, 0);
- }
-
- // Description: Bind to the sibling objects.
-
- R3CONSTRUCTORM_BINDSIBLINGS = 1810013;
-
- function mR3CONSTRUCTORM_BINDSIBLINGS() {
- DoA(this.r3obj, 1810013, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Unbind from the sibling objects
-
- R3CONSTRUCTORM_UNBINDSIBLING = 1810014;
-
- function mR3CONSTRUCTORM_UNBINDSIBLING() {
- DoA(this.r3obj, 1810014, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Start construction. If the constructor's R3CONSTRUCTORA_Enabled is FALSE, * the base class returns FALSE and
- // the derived classes should not touch * the target attributes.
- // Returns: Boolean, the state of the _Enabled attribute.
-
- R3CONSTRUCTORM_BEGIN = 1810015;
-
- function mR3CONSTRUCTORM_BEGIN() {
- return DoA(this.r3obj, 1810015, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Tells the object that the construction cycle is done.
-
- R3CONSTRUCTORM_END = 1810016;
-
- function mR3CONSTRUCTORM_END() {
- DoA(this.r3obj, 1810016, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Bind to the given target object.
- // Returns: Boolean, true if succeeded
- // p3: Object, target
-
- R3CONSTRUCTORM_BINDOBJ = 1810017;
-
- function mR3CONSTRUCTORM_BINDOBJ(p3) {
- return DoA(this.r3obj, 1810017, p3, R3TID_OBJECT, 0);
- }
-
- // Description: Unbind the given target object.
- // Returns: Boolean, true if succeeded
- // p3: Object, target
-
- R3CONSTRUCTORM_UNBINDOBJ = 1810018;
-
- function mR3CONSTRUCTORM_UNBINDOBJ(p3) {
- return DoA(this.r3obj, 1810018, p3, R3TID_OBJECT, 0);
- }
-
-
-
-
- R3CONSTRUCTORA_Enabled = 1810500;
- function SetR3CONSTRUCTORA_Enabled(value) {
- R3Set(this.r3obj, R3CONSTRUCTORA_Enabled, value, R3TID_BOOLEAN, 0);
- }
-
- function GetR3CONSTRUCTORA_Enabled() {
- return R3Get(this.r3obj, R3CONSTRUCTORA_Enabled, R3TID_BOOLEAN, 0);
- }
-
- var R3CONSTRUCTORA_ChorMth = 1810501; // Integer
- var R3CONSTRUCTORA_ChorObj = 1810502; // Object
- var R3CONSTRUCTORA_Recursive = 1810503; // Boolean
- var R3CONSTRUCTORA_SiblingsOnly = 1810504; // Boolean
- R3CONSTRUCTORA_Target = 1810505;
- function SetR3CONSTRUCTORA_Target(value) {
- R3Set(this.r3obj, R3CONSTRUCTORA_Target, value, R3TID_BOOLEAN, 0);
- }
-
- function GetR3CONSTRUCTORA_Target() {
- return R3Get(this.r3obj, R3CONSTRUCTORA_Target, R3TID_BOOLEAN, 0);
- }
-
- var R3CONSTRUCTORA_Force = 1810506; // Boolean
-
-
- function r3Constructor () {
- this.base = r3God;
- if(arguments.length) {
- this.base(R3CLID_CONSTRUCTOR, arguments);
- }
- // Methods
- this.TRANSFORMATTR=mR3CONSTRUCTORM_TRANSFORMATTR;
- this.RECONSTRUCT=mR3CONSTRUCTORM_RECONSTRUCT;
- this.ENUMTARGETATT=mR3CONSTRUCTORM_ENUMTARGETATT;
- this.DORECONSTRUCT=mR3CONSTRUCTORM_DORECONSTRUCT;
- this.DEFORMTARGETP=mR3CONSTRUCTORM_DEFORMTARGETP;
- this.PREPARE=mR3CONSTRUCTORM_PREPARE;
- this.RELEASE=mR3CONSTRUCTORM_RELEASE;
- this.ENUMTARGETPOI=mR3CONSTRUCTORM_ENUMTARGETPOI;
- this.ENUMTARGETOBJ=mR3CONSTRUCTORM_ENUMTARGETOBJ;
- this.NEWCHOR=mR3CONSTRUCTORM_NEWCHOR;
- this.DELCHOR=mR3CONSTRUCTORM_DELCHOR;
- this.ENUMTARGETPOI=mR3CONSTRUCTORM_ENUMTARGETPOI;
- this.BIND=mR3CONSTRUCTORM_BIND;
- this.BINDSIBLINGS=mR3CONSTRUCTORM_BINDSIBLINGS;
- this.UNBINDSIBLING=mR3CONSTRUCTORM_UNBINDSIBLING;
- this.BEGIN=mR3CONSTRUCTORM_BEGIN;
- this.END=mR3CONSTRUCTORM_END;
- this.BINDOBJ=mR3CONSTRUCTORM_BINDOBJ;
- this.UNBINDOBJ=mR3CONSTRUCTORM_UNBINDOBJ;
-
- // Attributes
- this.GetEnabled=GetR3CONSTRUCTORA_Enabled;
- this.SetEnabled=SetR3CONSTRUCTORA_Enabled;
- this.GetTarget=GetR3CONSTRUCTORA_Target;
- this.SetTarget=SetR3CONSTRUCTORA_Target;
- }
-
- r3Constructor.prototype=new r3Level;
- // r3constructor.h_H