home *** CD-ROM | disk | FTP | other *** search
-
- // JavaScript wrapper for r3grid.h
- // Auto generated file, do not modify by hand
- // Copyright ⌐ 2004, Realsoft Graphics Oy
-
- var R3_GRID_H = 1;
- include("oops/r3model.js")
-
-
- var R3CLID_GRID = 44;
-
-
-
-
- // Description: Snap point to grid
- // p1: r3Coordsys
- // p3: r3Vect, point;
-
- R3GRIDM_SNAPPOINT = 44000;
-
- function mR3GRIDM_SNAPPOINT(p1, p3) {
- DoA2(this.r3obj, 44000, p1, R3TID_COORDSYS, 0, p3, R3TID_VECTOR, 0);
- }
-
- // Description: Draw grid
- // p1: Object, draw context
- // p3: Object, viewcam object
-
- R3GRIDM_DRAW = 44001;
-
- function mR3GRIDM_DRAW(p1, p3) {
- DoA2(this.r3obj, 44001, p1, R3TID_OBJECT, 0, p3, R3TID_OBJECT, 0);
- }
-
-
-
-
- R3GRIDA_HorizontalSpacing = 44500;
- function SetR3GRIDA_HorizontalSpacing(value) {
- R3Set(this.r3obj, R3GRIDA_HorizontalSpacing, value, R3TID_FLOAT, 0);
- }
-
- function GetR3GRIDA_HorizontalSpacing() {
- return R3Get(this.r3obj, R3GRIDA_HorizontalSpacing, R3TID_FLOAT, 0);
- }
-
- R3GRIDA_VerticalSpacing = 44501;
- function SetR3GRIDA_VerticalSpacing(value) {
- R3Set(this.r3obj, R3GRIDA_VerticalSpacing, value, R3TID_FLOAT, 0);
- }
-
- function GetR3GRIDA_VerticalSpacing() {
- return R3Get(this.r3obj, R3GRIDA_VerticalSpacing, R3TID_FLOAT, 0);
- }
-
- R3GRIDA_NormalSpacing = 44502;
- function SetR3GRIDA_NormalSpacing(value) {
- R3Set(this.r3obj, R3GRIDA_NormalSpacing, value, R3TID_FLOAT, 0);
- }
-
- function GetR3GRIDA_NormalSpacing() {
- return R3Get(this.r3obj, R3GRIDA_NormalSpacing, R3TID_FLOAT, 0);
- }
-
- R3GRIDA_Origin = 44503;
- function SetR3GRIDA_Origin(value) {
- R3Set(this.r3obj, R3GRIDA_Origin, value, R3TID_VECTOR, 0);
- }
-
- function GetR3GRIDA_Origin() {
- return R3Get(this.r3obj, R3GRIDA_Origin, R3TID_VECTOR, 0);
- }
-
- R3GRIDA_Color = 44504;
- function SetR3GRIDA_Color(value) {
- R3Set(this.r3obj, R3GRIDA_Color, value, R3TID_COLOR_RGB, 0);
- }
-
- function GetR3GRIDA_Color() {
- return R3Get(this.r3obj, R3GRIDA_Color, R3TID_COLOR_RGB, 0);
- }
-
- R3GRIDA_Color2 = 44505;
- function SetR3GRIDA_Color2(value) {
- R3Set(this.r3obj, R3GRIDA_Color2, value, R3TID_COLOR_RGB, 0);
- }
-
- function GetR3GRIDA_Color2() {
- return R3Get(this.r3obj, R3GRIDA_Color2, R3TID_COLOR_RGB, 0);
- }
-
- R3GRIDA_ColorCycle = 44506;
- function SetR3GRIDA_ColorCycle(value) {
- R3Set(this.r3obj, R3GRIDA_ColorCycle, value, R3TID_INTEGER, 0);
- }
-
- function GetR3GRIDA_ColorCycle() {
- return R3Get(this.r3obj, R3GRIDA_ColorCycle, R3TID_INTEGER, 0);
- }
-
- R3GRIDA_Count = 44510;
- function SetR3GRIDA_Count(value) {
- R3Set(this.r3obj, R3GRIDA_Count, value, R3TID_INTEGER, 0);
- }
-
- function GetR3GRIDA_Count() {
- return R3Get(this.r3obj, R3GRIDA_Count, R3TID_INTEGER, 0);
- }
-
- R3GRIDA_FixedSize = 44511;
- function SetR3GRIDA_FixedSize(value) {
- R3Set(this.r3obj, R3GRIDA_FixedSize, value, R3TID_INTEGER, 0);
- }
-
- function GetR3GRIDA_FixedSize() {
- return R3Get(this.r3obj, R3GRIDA_FixedSize, R3TID_INTEGER, 0);
- }
-
-
-
- function r3Grid () {
- this.base = r3God;
- if(arguments.length) {
- this.base(R3CLID_GRID, arguments);
- }
- // Methods
- this.SNAPPOINT=mR3GRIDM_SNAPPOINT;
- this.DRAW=mR3GRIDM_DRAW;
-
- // Attributes
- this.GetHorizontalSpacing=GetR3GRIDA_HorizontalSpacing;
- this.SetHorizontalSpacing=SetR3GRIDA_HorizontalSpacing;
- this.GetVerticalSpacing=GetR3GRIDA_VerticalSpacing;
- this.SetVerticalSpacing=SetR3GRIDA_VerticalSpacing;
- this.GetNormalSpacing=GetR3GRIDA_NormalSpacing;
- this.SetNormalSpacing=SetR3GRIDA_NormalSpacing;
- this.GetOrigin=GetR3GRIDA_Origin;
- this.SetOrigin=SetR3GRIDA_Origin;
- this.GetColor=GetR3GRIDA_Color;
- this.SetColor=SetR3GRIDA_Color;
- this.GetColor2=GetR3GRIDA_Color2;
- this.SetColor2=SetR3GRIDA_Color2;
- this.GetColorCycle=GetR3GRIDA_ColorCycle;
- this.SetColorCycle=SetR3GRIDA_ColorCycle;
- this.GetCount=GetR3GRIDA_Count;
- this.SetCount=SetR3GRIDA_Count;
- this.GetFixedSize=GetR3GRIDA_FixedSize;
- this.SetFixedSize=SetR3GRIDA_FixedSize;
- }
-
- r3Grid.prototype=new r3Model;
- // r3grid.h_H