// Do not modify
export class X3DNode {
constructor(kwargs = {}) {
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DAppearanceChildNode extends X3DNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DAppearanceNode extends X3DNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DChildNode extends X3DNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DBindableNode extends X3DChildNode {
constructor(kwargs = {}) {
super(kwargs);
var bindTime = kwargs["bindTime"] || null;
this.__bindTime = bindTime;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Bound = kwargs["Bound"] || null;
this.__Bound = Bound;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var bind = kwargs["bind"] || null;
this.__bind = bind;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
removeBindTime(bindTime) {
for( let i = 0; i < this.__bindTime.length; i++) {
if ( this.__bindTime[i] === bindTime) {
this.__bindTime.splice(i, 1);
}
}
return this.__bindTime;
}
get bindTime() {
return this.__bindTime;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isBound() {
return this.__Bound;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set set_bind(bind = null) {
this.__bind = [bind];
return this;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DBackgroundNode extends X3DBindableNode {
constructor(kwargs = {}) {
super(kwargs);
var bindTime = kwargs["bindTime"] || null;
this.__bindTime = bindTime;
var groundAngle = kwargs["groundAngle"] || null;
if (groundAngle == null || groundAngle.length <= 0 || Math.min(groundAngle) < 0) {
return null;
}
if (groundAngle == null || groundAngle.length <= 0 || Math.max(groundAngle) > 1.5708) {
return null;
}
this.__groundAngle = groundAngle;
var groundColor = kwargs["groundColor"] || null;
if (groundColor == null || groundColor.length <= 0 || Math.min(groundColor) < 0) {
return null;
}
if (groundColor == null || groundColor.length <= 0 || Math.max(groundColor) > 1) {
return null;
}
this.__groundColor = groundColor;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Bound = kwargs["Bound"] || null;
this.__Bound = Bound;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var bind = kwargs["bind"] || null;
this.__bind = bind;
var skyAngle = kwargs["skyAngle"] || null;
if (skyAngle == null || skyAngle.length <= 0 || Math.min(skyAngle) < 0) {
return null;
}
if (skyAngle == null || skyAngle.length <= 0 || Math.max(skyAngle) > 3.1416) {
return null;
}
this.__skyAngle = skyAngle;
var skyColor = kwargs["skyColor"] || [0, 0, 0];
if (skyColor == null || skyColor.length <= 0 || Math.min(skyColor) < 0) {
return null;
}
if (skyColor == null || skyColor.length <= 0 || Math.max(skyColor) > 1) {
return null;
}
this.__skyColor = skyColor;
var transparency = kwargs["transparency"] || 0;
if (transparency == null || transparency < 0) {
return null;
}
if (transparency == null || transparency > 1) {
return null;
}
this.__transparency = transparency;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
removeBindTime(bindTime) {
for( let i = 0; i < this.__bindTime.length; i++) {
if ( this.__bindTime[i] === bindTime) {
this.__bindTime.splice(i, 1);
}
}
return this.__bindTime;
}
get bindTime() {
return this.__bindTime;
}
set groundAngle(groundAngle = null) {
if (groundAngle == null || groundAngle.length <= 0 || Math.min(groundAngle) < 0) {
return null;
}
if (groundAngle == null || groundAngle.length <= 0 || Math.max(groundAngle) > 1.5708) {
return null;
}
this.__groundAngle = [groundAngle];
return this;
}
addGroundAngle(groundAngle = null) {
if (groundAngle == null || groundAngle.length <= 0 || Math.min(groundAngle) < 0) {
return null;
}
if (groundAngle == null || groundAngle.length <= 0 || Math.max(groundAngle) > 1.5708) {
return null;
}
if (this.__groundAngle == null) {
this.__groundAngle = [];
}
this.__groundAngle.append(groundAngle);
return this;
}
removeGroundAngle(groundAngle) {
for( let i = 0; i < this.__groundAngle.length; i++) {
if ( this.__groundAngle[i] === groundAngle) {
this.__groundAngle.splice(i, 1);
}
}
return this.__groundAngle;
}
get groundAngle() {
return this.__groundAngle;
}
set groundColor(groundColor = null) {
if (groundColor == null || groundColor.length <= 0 || Math.min(groundColor) < 0) {
return null;
}
if (groundColor == null || groundColor.length <= 0 || Math.max(groundColor) > 1) {
return null;
}
this.__groundColor = [groundColor];
return this;
}
addGroundColor(groundColor = null) {
if (groundColor == null || groundColor.length <= 0 || Math.min(groundColor) < 0) {
return null;
}
if (groundColor == null || groundColor.length <= 0 || Math.max(groundColor) > 1) {
return null;
}
if (this.__groundColor == null) {
this.__groundColor = [];
}
this.__groundColor.append(groundColor);
return this;
}
removeGroundColor(groundColor) {
for( let i = 0; i < this.__groundColor.length; i++) {
if ( this.__groundColor[i] === groundColor) {
this.__groundColor.splice(i, 1);
}
}
return this.__groundColor;
}
get groundColor() {
return this.__groundColor;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isBound() {
return this.__Bound;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set set_bind(bind = null) {
this.__bind = [bind];
return this;
}
set skyAngle(skyAngle = null) {
if (skyAngle == null || skyAngle.length <= 0 || Math.min(skyAngle) < 0) {
return null;
}
if (skyAngle == null || skyAngle.length <= 0 || Math.max(skyAngle) > 3.1416) {
return null;
}
this.__skyAngle = [skyAngle];
return this;
}
addSkyAngle(skyAngle = null) {
if (skyAngle == null || skyAngle.length <= 0 || Math.min(skyAngle) < 0) {
return null;
}
if (skyAngle == null || skyAngle.length <= 0 || Math.max(skyAngle) > 3.1416) {
return null;
}
if (this.__skyAngle == null) {
this.__skyAngle = [];
}
this.__skyAngle.append(skyAngle);
return this;
}
removeSkyAngle(skyAngle) {
for( let i = 0; i < this.__skyAngle.length; i++) {
if ( this.__skyAngle[i] === skyAngle) {
this.__skyAngle.splice(i, 1);
}
}
return this.__skyAngle;
}
get skyAngle() {
return this.__skyAngle;
}
set skyColor(skyColor = [0, 0, 0]) {
if (skyColor == null || skyColor.length <= 0 || Math.min(skyColor) < 0) {
return null;
}
if (skyColor == null || skyColor.length <= 0 || Math.max(skyColor) > 1) {
return null;
}
this.__skyColor = [skyColor];
return this;
}
addSkyColor(skyColor = [0, 0, 0]) {
if (skyColor == null || skyColor.length <= 0 || Math.min(skyColor) < 0) {
return null;
}
if (skyColor == null || skyColor.length <= 0 || Math.max(skyColor) > 1) {
return null;
}
if (this.__skyColor == null) {
this.__skyColor = [];
}
this.__skyColor.append(skyColor);
return this;
}
removeSkyColor(skyColor) {
for( let i = 0; i < this.__skyColor.length; i++) {
if ( this.__skyColor[i] === skyColor) {
this.__skyColor.splice(i, 1);
}
}
return this.__skyColor;
}
get skyColor() {
return this.__skyColor;
}
set transparency(transparency = 0) {
if (transparency == null || transparency < 0) {
return null;
}
if (transparency == null || transparency > 1) {
return null;
}
this.__transparency = [transparency];
return this;
}
addTransparency(transparency = 0) {
if (transparency == null || transparency < 0) {
return null;
}
if (transparency == null || transparency > 1) {
return null;
}
if (this.__transparency == null) {
this.__transparency = [];
}
this.__transparency.append(transparency);
return this;
}
removeTransparency(transparency) {
for( let i = 0; i < this.__transparency.length; i++) {
if ( this.__transparency[i] === transparency) {
this.__transparency.splice(i, 1);
}
}
return this.__transparency;
}
get transparency() {
return this.__transparency;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DFollowerNode extends X3DChildNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DChaserNode extends X3DFollowerNode {
constructor(kwargs = {}) {
super(kwargs);
var duration = kwargs["duration"] || 1;
if (duration == null || duration < 0) {
return null;
}
this.__duration = duration;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DGeometricPropertyNode extends X3DNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DColorNode extends X3DGeometricPropertyNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DVolumeRenderStyleNode extends X3DNode {
constructor(kwargs = {}) {
super(kwargs);
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DComposableVolumeRenderStyleNode extends X3DVolumeRenderStyleNode {
constructor(kwargs = {}) {
super(kwargs);
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DGeometryNode extends X3DNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DComposedGeometryNode extends X3DGeometryNode {
constructor(kwargs = {}) {
super(kwargs);
var attrib = kwargs["attrib"] || null;
this.__attrib = attrib;
var ccw = kwargs["ccw"] || true;
this.__ccw = ccw;
var color = kwargs["color"] || null;
this.__color = color;
var colorPerVertex = kwargs["colorPerVertex"] || true;
this.__colorPerVertex = colorPerVertex;
var coord = kwargs["coord"] || null;
this.__coord = coord;
var fogCoord = kwargs["fogCoord"] || null;
this.__fogCoord = fogCoord;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var normal = kwargs["normal"] || null;
this.__normal = normal;
var normalPerVertex = kwargs["normalPerVertex"] || true;
this.__normalPerVertex = normalPerVertex;
var solid = kwargs["solid"] || true;
this.__solid = solid;
var texCoord = kwargs["texCoord"] || null;
this.__texCoord = texCoord;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set attrib(attrib = null) {
this.__attrib = [attrib];
return this;
}
addAttrib(attrib = null) {
if (this.__attrib == null) {
this.__attrib = [];
}
this.__attrib.append(attrib);
return this;
}
removeAttrib(attrib) {
for( let i = 0; i < this.__attrib.length; i++) {
if ( this.__attrib[i] === attrib) {
this.__attrib.splice(i, 1);
}
}
return this.__attrib;
}
get attrib() {
return this.__attrib;
}
set color(color = null) {
this.__color = [color];
return this;
}
addColor(color = null) {
if (this.__color == null) {
this.__color = [];
}
this.__color.append(color);
return this;
}
removeColor(color) {
for( let i = 0; i < this.__color.length; i++) {
if ( this.__color[i] === color) {
this.__color.splice(i, 1);
}
}
return this.__color;
}
get color() {
return this.__color;
}
set coord(coord = null) {
this.__coord = [coord];
return this;
}
addCoord(coord = null) {
if (this.__coord == null) {
this.__coord = [];
}
this.__coord.append(coord);
return this;
}
removeCoord(coord) {
for( let i = 0; i < this.__coord.length; i++) {
if ( this.__coord[i] === coord) {
this.__coord.splice(i, 1);
}
}
return this.__coord;
}
get coord() {
return this.__coord;
}
set fogCoord(fogCoord = null) {
this.__fogCoord = [fogCoord];
return this;
}
addFogCoord(fogCoord = null) {
if (this.__fogCoord == null) {
this.__fogCoord = [];
}
this.__fogCoord.append(fogCoord);
return this;
}
removeFogCoord(fogCoord) {
for( let i = 0; i < this.__fogCoord.length; i++) {
if ( this.__fogCoord[i] === fogCoord) {
this.__fogCoord.splice(i, 1);
}
}
return this.__fogCoord;
}
get fogCoord() {
return this.__fogCoord;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set normal(normal = null) {
this.__normal = [normal];
return this;
}
addNormal(normal = null) {
if (this.__normal == null) {
this.__normal = [];
}
this.__normal.append(normal);
return this;
}
removeNormal(normal) {
for( let i = 0; i < this.__normal.length; i++) {
if ( this.__normal[i] === normal) {
this.__normal.splice(i, 1);
}
}
return this.__normal;
}
get normal() {
return this.__normal;
}
set texCoord(texCoord = null) {
this.__texCoord = [texCoord];
return this;
}
addTexCoord(texCoord = null) {
if (this.__texCoord == null) {
this.__texCoord = [];
}
this.__texCoord.append(texCoord);
return this;
}
removeTexCoord(texCoord) {
for( let i = 0; i < this.__texCoord.length; i++) {
if ( this.__texCoord[i] === texCoord) {
this.__texCoord.splice(i, 1);
}
}
return this.__texCoord;
}
get texCoord() {
return this.__texCoord;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__attrib === null) {
} else if (typeof this.__attrib.toXMLNode === 'function') {
str += this.__attrib.toXMLNode('attrib');
} else if (typeof this.__attrib === 'string') {
str += ' attrib="'+this.__attrib+'"';
} else if (Array.isArray( this.__attrib)) {
if (typeof this.__attrib[0].toXMLNode !== 'function') {
str += ' attrib="'+this.__attrib.join(' ')+'"';
} else {
for (let i in this.__attrib) {
if (typeof this.__attrib[i].toXMLNode === 'function') {
str += this.__attrib[i].toXMLNode('attrib');
}
}
}
} else {
str += ' attrib="'+this.__attrib+'"';
}
if (this.__color === null) {
} else if (typeof this.__color.toXMLNode === 'function') {
str += this.__color.toXMLNode('color');
} else if (typeof this.__color === 'string') {
str += ' color="'+this.__color+'"';
} else if (Array.isArray( this.__color)) {
if (typeof this.__color[0].toXMLNode !== 'function') {
str += ' color="'+this.__color.join(' ')+'"';
} else {
for (let i in this.__color) {
if (typeof this.__color[i].toXMLNode === 'function') {
str += this.__color[i].toXMLNode('color');
}
}
}
} else {
str += ' color="'+this.__color+'"';
}
if (this.__coord === null) {
} else if (typeof this.__coord.toXMLNode === 'function') {
str += this.__coord.toXMLNode('coord');
} else if (typeof this.__coord === 'string') {
str += ' coord="'+this.__coord+'"';
} else if (Array.isArray( this.__coord)) {
if (typeof this.__coord[0].toXMLNode !== 'function') {
str += ' coord="'+this.__coord.join(' ')+'"';
} else {
for (let i in this.__coord) {
if (typeof this.__coord[i].toXMLNode === 'function') {
str += this.__coord[i].toXMLNode('coord');
}
}
}
} else {
str += ' coord="'+this.__coord+'"';
}
if (this.__fogCoord === null) {
} else if (typeof this.__fogCoord.toXMLNode === 'function') {
str += this.__fogCoord.toXMLNode('fogCoord');
} else if (typeof this.__fogCoord === 'string') {
str += ' fogCoord="'+this.__fogCoord+'"';
} else if (Array.isArray( this.__fogCoord)) {
if (typeof this.__fogCoord[0].toXMLNode !== 'function') {
str += ' fogCoord="'+this.__fogCoord.join(' ')+'"';
} else {
for (let i in this.__fogCoord) {
if (typeof this.__fogCoord[i].toXMLNode === 'function') {
str += this.__fogCoord[i].toXMLNode('fogCoord');
}
}
}
} else {
str += ' fogCoord="'+this.__fogCoord+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__normal === null) {
} else if (typeof this.__normal.toXMLNode === 'function') {
str += this.__normal.toXMLNode('normal');
} else if (typeof this.__normal === 'string') {
str += ' normal="'+this.__normal+'"';
} else if (Array.isArray( this.__normal)) {
if (typeof this.__normal[0].toXMLNode !== 'function') {
str += ' normal="'+this.__normal.join(' ')+'"';
} else {
for (let i in this.__normal) {
if (typeof this.__normal[i].toXMLNode === 'function') {
str += this.__normal[i].toXMLNode('normal');
}
}
}
} else {
str += ' normal="'+this.__normal+'"';
}
if (this.__texCoord === null) {
} else if (typeof this.__texCoord.toXMLNode === 'function') {
str += this.__texCoord.toXMLNode('texCoord');
} else if (typeof this.__texCoord === 'string') {
str += ' texCoord="'+this.__texCoord+'"';
} else if (Array.isArray( this.__texCoord)) {
if (typeof this.__texCoord[0].toXMLNode !== 'function') {
str += ' texCoord="'+this.__texCoord.join(' ')+'"';
} else {
for (let i in this.__texCoord) {
if (typeof this.__texCoord[i].toXMLNode === 'function') {
str += this.__texCoord[i].toXMLNode('texCoord');
}
}
}
} else {
str += ' texCoord="'+this.__texCoord+'"';
}
str += ''
return str;
}
}
export class X3DCoordinateNode extends X3DGeometricPropertyNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DDamperNode extends X3DFollowerNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var order = kwargs["order"] || 3;
if (order == null || order < 0) {
return null;
}
if (order == null || order > 5) {
return null;
}
this.__order = order;
var tau = kwargs["tau"] || 0.3;
if (tau == null || tau < 0) {
return null;
}
this.__tau = tau;
var tolerance = kwargs["tolerance"] || -1;
this.__tolerance = tolerance;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set tau(tau = 0.3) {
if (tau == null || tau < 0) {
return null;
}
this.__tau = [tau];
return this;
}
addTau(tau = 0.3) {
if (tau == null || tau < 0) {
return null;
}
if (this.__tau == null) {
this.__tau = [];
}
this.__tau.append(tau);
return this;
}
removeTau(tau) {
for( let i = 0; i < this.__tau.length; i++) {
if ( this.__tau[i] === tau) {
this.__tau.splice(i, 1);
}
}
return this.__tau;
}
get tau() {
return this.__tau;
}
set tolerance(tolerance = -1) {
this.__tolerance = [tolerance];
return this;
}
addTolerance(tolerance = -1) {
if (this.__tolerance == null) {
this.__tolerance = [];
}
this.__tolerance.append(tolerance);
return this;
}
removeTolerance(tolerance) {
for( let i = 0; i < this.__tolerance.length; i++) {
if ( this.__tolerance[i] === tolerance) {
this.__tolerance.splice(i, 1);
}
}
return this.__tolerance;
}
get tolerance() {
return this.__tolerance;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DSensorNode extends X3DChildNode {
constructor(kwargs = {}) {
super(kwargs);
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DPointingDeviceSensorNode extends X3DSensorNode {
constructor(kwargs = {}) {
super(kwargs);
var description = kwargs["description"] || null;
this.__description = description;
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var Over = kwargs["Over"] || null;
this.__Over = Over;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set description(description = null) {
this.__description = [description];
return this;
}
addDescription(description = null) {
if (this.__description == null) {
this.__description = [];
}
this.__description.append(description);
return this;
}
removeDescription(description) {
for( let i = 0; i < this.__description.length; i++) {
if ( this.__description[i] === description) {
this.__description.splice(i, 1);
}
}
return this.__description;
}
get description() {
return this.__description;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
get isOver() {
return this.__Over;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DDragSensorNode extends X3DPointingDeviceSensorNode {
constructor(kwargs = {}) {
super(kwargs);
var autoOffset = kwargs["autoOffset"] || true;
this.__autoOffset = autoOffset;
var description = kwargs["description"] || null;
this.__description = description;
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var Over = kwargs["Over"] || null;
this.__Over = Over;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var trackPoint_changed = kwargs["trackPoint_changed"] || null;
this.__trackPoint_changed = trackPoint_changed;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set autoOffset(autoOffset = true) {
this.__autoOffset = [autoOffset];
return this;
}
addAutoOffset(autoOffset = true) {
if (this.__autoOffset == null) {
this.__autoOffset = [];
}
this.__autoOffset.append(autoOffset);
return this;
}
removeAutoOffset(autoOffset) {
for( let i = 0; i < this.__autoOffset.length; i++) {
if ( this.__autoOffset[i] === autoOffset) {
this.__autoOffset.splice(i, 1);
}
}
return this.__autoOffset;
}
get isAutoOffset() {
return this.__autoOffset;
}
set description(description = null) {
this.__description = [description];
return this;
}
addDescription(description = null) {
if (this.__description == null) {
this.__description = [];
}
this.__description.append(description);
return this;
}
removeDescription(description) {
for( let i = 0; i < this.__description.length; i++) {
if ( this.__description[i] === description) {
this.__description.splice(i, 1);
}
}
return this.__description;
}
get description() {
return this.__description;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
get isOver() {
return this.__Over;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
removetrackPoint_changed(trackPoint_changed) {
for( let i = 0; i < this.__trackPoint_changed.length; i++) {
if ( this.__trackPoint_changed[i] === trackPoint_changed) {
this.__trackPoint_changed.splice(i, 1);
}
}
return this.__trackPoint_changed;
}
get trackPoint_changed() {
return this.__trackPoint_changed;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DEnvironmentalSensorNode extends X3DSensorNode {
constructor(kwargs = {}) {
super(kwargs);
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var size = kwargs["size"] || [0, 0, 0];
if (size == null || size.length <= 0 || Math.min(size) < 0) {
return null;
}
this.__size = size;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DTextureNode extends X3DAppearanceChildNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DEnvironmentTextureNode extends X3DTextureNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DFontStyleNode extends X3DNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DGroupingNode extends X3DChildNode {
constructor(kwargs = {}) {
super(kwargs);
var children_ = kwargs["children_"] || null;
this.__children_ = children_;
var bboxCenter = kwargs["bboxCenter"] || [0, 0, 0];
this.__bboxCenter = bboxCenter;
var bboxSize = kwargs["bboxSize"] || [-1, -1, -1];
this.__bboxSize = bboxSize;
var children = kwargs["children"] || null;
this.__children = children;
var displayBBox = kwargs["displayBBox"] || false;
this.__displayBBox = displayBBox;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var children_ = kwargs["children_"] || null;
this.__children_ = children_;
var visible = kwargs["visible"] || true;
this.__visible = visible;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
addChildren(children_ = null) {
if (this.__children_ == null) {
this.__children_ = [];
}
this.__children_.append(children_);
return this;
}
set children(children = null) {
this.__children = [children];
return this;
}
addChildren(children = null) {
if (this.__children == null) {
this.__children = [];
}
this.__children.append(children);
return this;
}
removeChildren(children) {
for( let i = 0; i < this.__children.length; i++) {
if ( this.__children[i] === children) {
this.__children.splice(i, 1);
}
}
return this.__children;
}
get children() {
return this.__children;
}
set displayBBox(displayBBox = false) {
this.__displayBBox = [displayBBox];
return this;
}
addDisplayBBox(displayBBox = false) {
if (this.__displayBBox == null) {
this.__displayBBox = [];
}
this.__displayBBox.append(displayBBox);
return this;
}
removeDisplayBBox(displayBBox) {
for( let i = 0; i < this.__displayBBox.length; i++) {
if ( this.__displayBBox[i] === displayBBox) {
this.__displayBBox.splice(i, 1);
}
}
return this.__displayBBox;
}
get isDisplayBBox() {
return this.__displayBBox;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set visible(visible = true) {
this.__visible = [visible];
return this;
}
addVisible(visible = true) {
if (this.__visible == null) {
this.__visible = [];
}
this.__visible.append(visible);
return this;
}
removeVisible(visible) {
for( let i = 0; i < this.__visible.length; i++) {
if ( this.__visible[i] === visible) {
this.__visible.splice(i, 1);
}
}
return this.__visible;
}
get isVisible() {
return this.__visible;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__children_ === null) {
} else if (typeof this.__children_.toXMLNode === 'function') {
str += this.__children_.toXMLNode('children_');
} else if (typeof this.__children_ === 'string') {
str += ' children_="'+this.__children_+'"';
} else if (Array.isArray( this.__children_)) {
if (typeof this.__children_[0].toXMLNode !== 'function') {
str += ' children_="'+this.__children_.join(' ')+'"';
} else {
for (let i in this.__children_) {
if (typeof this.__children_[i].toXMLNode === 'function') {
str += this.__children_[i].toXMLNode('children_');
}
}
}
} else {
str += ' children_="'+this.__children_+'"';
}
if (this.__children === null) {
} else if (typeof this.__children.toXMLNode === 'function') {
str += this.__children.toXMLNode('children');
} else if (typeof this.__children === 'string') {
str += ' children="'+this.__children+'"';
} else if (Array.isArray( this.__children)) {
if (typeof this.__children[0].toXMLNode !== 'function') {
str += ' children="'+this.__children.join(' ')+'"';
} else {
for (let i in this.__children) {
if (typeof this.__children[i].toXMLNode === 'function') {
str += this.__children[i].toXMLNode('children');
}
}
}
} else {
str += ' children="'+this.__children+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__children_ === null) {
} else if (typeof this.__children_.toXMLNode === 'function') {
str += this.__children_.toXMLNode('children_');
} else if (typeof this.__children_ === 'string') {
str += ' children_="'+this.__children_+'"';
} else if (Array.isArray( this.__children_)) {
if (typeof this.__children_[0].toXMLNode !== 'function') {
str += ' children_="'+this.__children_.join(' ')+'"';
} else {
for (let i in this.__children_) {
if (typeof this.__children_[i].toXMLNode === 'function') {
str += this.__children_[i].toXMLNode('children_');
}
}
}
} else {
str += ' children_="'+this.__children_+'"';
}
str += ''
return str;
}
}
export class X3DInfoNode extends X3DChildNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DInterpolatorNode extends X3DChildNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var key = kwargs["key"] || null;
this.__key = key;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var fraction = kwargs["fraction"] || null;
this.__fraction = fraction;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set key(key = null) {
this.__key = [key];
return this;
}
addKey(key = null) {
if (this.__key == null) {
this.__key = [];
}
this.__key.append(key);
return this;
}
removeKey(key) {
for( let i = 0; i < this.__key.length; i++) {
if ( this.__key[i] === key) {
this.__key.splice(i, 1);
}
}
return this.__key;
}
get key() {
return this.__key;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set set_fraction(fraction = null) {
this.__fraction = [fraction];
return this;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DKeyDeviceSensorNode extends X3DSensorNode {
constructor(kwargs = {}) {
super(kwargs);
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DLayerNode extends X3DNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var objectType = kwargs["objectType"] || ["ALL"];
this.__objectType = objectType;
var pickable = kwargs["pickable"] || true;
this.__pickable = pickable;
var viewport = kwargs["viewport"] || null;
this.__viewport = viewport;
var visible = kwargs["visible"] || true;
this.__visible = visible;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set objectType(objectType = ["ALL"]) {
this.__objectType = [objectType];
return this;
}
addObjectType(objectType = ["ALL"]) {
if (this.__objectType == null) {
this.__objectType = [];
}
this.__objectType.append(objectType);
return this;
}
removeObjectType(objectType) {
for( let i = 0; i < this.__objectType.length; i++) {
if ( this.__objectType[i] === objectType) {
this.__objectType.splice(i, 1);
}
}
return this.__objectType;
}
get objectType() {
return this.__objectType;
}
set pickable(pickable = true) {
this.__pickable = [pickable];
return this;
}
addPickable(pickable = true) {
if (this.__pickable == null) {
this.__pickable = [];
}
this.__pickable.append(pickable);
return this;
}
removePickable(pickable) {
for( let i = 0; i < this.__pickable.length; i++) {
if ( this.__pickable[i] === pickable) {
this.__pickable.splice(i, 1);
}
}
return this.__pickable;
}
get isPickable() {
return this.__pickable;
}
set viewport(viewport = null) {
this.__viewport = [viewport];
return this;
}
addViewport(viewport = null) {
if (this.__viewport == null) {
this.__viewport = [];
}
this.__viewport.append(viewport);
return this;
}
removeViewport(viewport) {
for( let i = 0; i < this.__viewport.length; i++) {
if ( this.__viewport[i] === viewport) {
this.__viewport.splice(i, 1);
}
}
return this.__viewport;
}
get viewport() {
return this.__viewport;
}
set visible(visible = true) {
this.__visible = [visible];
return this;
}
addVisible(visible = true) {
if (this.__visible == null) {
this.__visible = [];
}
this.__visible.append(visible);
return this;
}
removeVisible(visible) {
for( let i = 0; i < this.__visible.length; i++) {
if ( this.__visible[i] === visible) {
this.__visible.splice(i, 1);
}
}
return this.__visible;
}
get isVisible() {
return this.__visible;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__viewport === null) {
} else if (typeof this.__viewport.toXMLNode === 'function') {
str += this.__viewport.toXMLNode('viewport');
} else if (typeof this.__viewport === 'string') {
str += ' viewport="'+this.__viewport+'"';
} else if (Array.isArray( this.__viewport)) {
if (typeof this.__viewport[0].toXMLNode !== 'function') {
str += ' viewport="'+this.__viewport.join(' ')+'"';
} else {
for (let i in this.__viewport) {
if (typeof this.__viewport[i].toXMLNode === 'function') {
str += this.__viewport[i].toXMLNode('viewport');
}
}
}
} else {
str += ' viewport="'+this.__viewport+'"';
}
str += ''
return str;
}
}
export class X3DLayoutNode extends X3DChildNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DLightNode extends X3DChildNode {
constructor(kwargs = {}) {
super(kwargs);
var ambientIntensity = kwargs["ambientIntensity"] || 0;
if (ambientIntensity == null || ambientIntensity < 0) {
return null;
}
if (ambientIntensity == null || ambientIntensity > 1) {
return null;
}
this.__ambientIntensity = ambientIntensity;
var color = kwargs["color"] || [1, 1, 1];
if (color == null || color.length <= 0 || Math.min(color) < 0) {
return null;
}
if (color == null || color.length <= 0 || Math.max(color) > 1) {
return null;
}
this.__color = color;
var intensity = kwargs["intensity"] || 1;
if (intensity == null || intensity < 0) {
return null;
}
if (intensity == null || intensity > 1) {
return null;
}
this.__intensity = intensity;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var on = kwargs["on"] || true;
this.__on = on;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set ambientIntensity(ambientIntensity = 0) {
if (ambientIntensity == null || ambientIntensity < 0) {
return null;
}
if (ambientIntensity == null || ambientIntensity > 1) {
return null;
}
this.__ambientIntensity = [ambientIntensity];
return this;
}
addAmbientIntensity(ambientIntensity = 0) {
if (ambientIntensity == null || ambientIntensity < 0) {
return null;
}
if (ambientIntensity == null || ambientIntensity > 1) {
return null;
}
if (this.__ambientIntensity == null) {
this.__ambientIntensity = [];
}
this.__ambientIntensity.append(ambientIntensity);
return this;
}
removeAmbientIntensity(ambientIntensity) {
for( let i = 0; i < this.__ambientIntensity.length; i++) {
if ( this.__ambientIntensity[i] === ambientIntensity) {
this.__ambientIntensity.splice(i, 1);
}
}
return this.__ambientIntensity;
}
get ambientIntensity() {
return this.__ambientIntensity;
}
set color(color = [1, 1, 1]) {
if (color == null || color.length <= 0 || Math.min(color) < 0) {
return null;
}
if (color == null || color.length <= 0 || Math.max(color) > 1) {
return null;
}
this.__color = [color];
return this;
}
addColor(color = [1, 1, 1]) {
if (color == null || color.length <= 0 || Math.min(color) < 0) {
return null;
}
if (color == null || color.length <= 0 || Math.max(color) > 1) {
return null;
}
if (this.__color == null) {
this.__color = [];
}
this.__color.append(color);
return this;
}
removeColor(color) {
for( let i = 0; i < this.__color.length; i++) {
if ( this.__color[i] === color) {
this.__color.splice(i, 1);
}
}
return this.__color;
}
get color() {
return this.__color;
}
set intensity(intensity = 1) {
if (intensity == null || intensity < 0) {
return null;
}
if (intensity == null || intensity > 1) {
return null;
}
this.__intensity = [intensity];
return this;
}
addIntensity(intensity = 1) {
if (intensity == null || intensity < 0) {
return null;
}
if (intensity == null || intensity > 1) {
return null;
}
if (this.__intensity == null) {
this.__intensity = [];
}
this.__intensity.append(intensity);
return this;
}
removeIntensity(intensity) {
for( let i = 0; i < this.__intensity.length; i++) {
if ( this.__intensity[i] === intensity) {
this.__intensity.splice(i, 1);
}
}
return this.__intensity;
}
get intensity() {
return this.__intensity;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set on(on = true) {
this.__on = [on];
return this;
}
addOn(on = true) {
if (this.__on == null) {
this.__on = [];
}
this.__on.append(on);
return this;
}
removeOn(on) {
for( let i = 0; i < this.__on.length; i++) {
if ( this.__on[i] === on) {
this.__on.splice(i, 1);
}
}
return this.__on;
}
get isOn() {
return this.__on;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DMaterialNode extends X3DAppearanceChildNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DNBodyCollidableNode extends X3DChildNode {
constructor(kwargs = {}) {
super(kwargs);
var bboxCenter = kwargs["bboxCenter"] || [0, 0, 0];
this.__bboxCenter = bboxCenter;
var bboxSize = kwargs["bboxSize"] || [-1, -1, -1];
this.__bboxSize = bboxSize;
var displayBBox = kwargs["displayBBox"] || false;
this.__displayBBox = displayBBox;
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var rotation = kwargs["rotation"] || [0, 0, 1, 0];
this.__rotation = rotation;
var translation = kwargs["translation"] || [0, 0, 0];
this.__translation = translation;
var visible = kwargs["visible"] || true;
this.__visible = visible;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set displayBBox(displayBBox = false) {
this.__displayBBox = [displayBBox];
return this;
}
addDisplayBBox(displayBBox = false) {
if (this.__displayBBox == null) {
this.__displayBBox = [];
}
this.__displayBBox.append(displayBBox);
return this;
}
removeDisplayBBox(displayBBox) {
for( let i = 0; i < this.__displayBBox.length; i++) {
if ( this.__displayBBox[i] === displayBBox) {
this.__displayBBox.splice(i, 1);
}
}
return this.__displayBBox;
}
get isDisplayBBox() {
return this.__displayBBox;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set rotation(rotation = [0, 0, 1, 0]) {
this.__rotation = [rotation];
return this;
}
addRotation(rotation = [0, 0, 1, 0]) {
if (this.__rotation == null) {
this.__rotation = [];
}
this.__rotation.append(rotation);
return this;
}
removeRotation(rotation) {
for( let i = 0; i < this.__rotation.length; i++) {
if ( this.__rotation[i] === rotation) {
this.__rotation.splice(i, 1);
}
}
return this.__rotation;
}
get rotation() {
return this.__rotation;
}
set translation(translation = [0, 0, 0]) {
this.__translation = [translation];
return this;
}
addTranslation(translation = [0, 0, 0]) {
if (this.__translation == null) {
this.__translation = [];
}
this.__translation.append(translation);
return this;
}
removeTranslation(translation) {
for( let i = 0; i < this.__translation.length; i++) {
if ( this.__translation[i] === translation) {
this.__translation.splice(i, 1);
}
}
return this.__translation;
}
get translation() {
return this.__translation;
}
set visible(visible = true) {
this.__visible = [visible];
return this;
}
addVisible(visible = true) {
if (this.__visible == null) {
this.__visible = [];
}
this.__visible.append(visible);
return this;
}
removeVisible(visible) {
for( let i = 0; i < this.__visible.length; i++) {
if ( this.__visible[i] === visible) {
this.__visible.splice(i, 1);
}
}
return this.__visible;
}
get isVisible() {
return this.__visible;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DNBodyCollisionSpaceNode extends X3DNode {
constructor(kwargs = {}) {
super(kwargs);
var bboxCenter = kwargs["bboxCenter"] || [0, 0, 0];
this.__bboxCenter = bboxCenter;
var bboxSize = kwargs["bboxSize"] || [-1, -1, -1];
this.__bboxSize = bboxSize;
var displayBBox = kwargs["displayBBox"] || false;
this.__displayBBox = displayBBox;
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var visible = kwargs["visible"] || true;
this.__visible = visible;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set displayBBox(displayBBox = false) {
this.__displayBBox = [displayBBox];
return this;
}
addDisplayBBox(displayBBox = false) {
if (this.__displayBBox == null) {
this.__displayBBox = [];
}
this.__displayBBox.append(displayBBox);
return this;
}
removeDisplayBBox(displayBBox) {
for( let i = 0; i < this.__displayBBox.length; i++) {
if ( this.__displayBBox[i] === displayBBox) {
this.__displayBBox.splice(i, 1);
}
}
return this.__displayBBox;
}
get isDisplayBBox() {
return this.__displayBBox;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set visible(visible = true) {
this.__visible = [visible];
return this;
}
addVisible(visible = true) {
if (this.__visible == null) {
this.__visible = [];
}
this.__visible.append(visible);
return this;
}
removeVisible(visible) {
for( let i = 0; i < this.__visible.length; i++) {
if ( this.__visible[i] === visible) {
this.__visible.splice(i, 1);
}
}
return this.__visible;
}
get isVisible() {
return this.__visible;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DNetworkSensorNode extends X3DSensorNode {
constructor(kwargs = {}) {
super(kwargs);
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DNormalNode extends X3DGeometricPropertyNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DNurbsControlCurveNode extends X3DNode {
constructor(kwargs = {}) {
super(kwargs);
var controlPoint = kwargs["controlPoint"] || null;
this.__controlPoint = controlPoint;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set controlPoint(controlPoint = null) {
this.__controlPoint = [controlPoint];
return this;
}
addControlPoint(controlPoint = null) {
if (this.__controlPoint == null) {
this.__controlPoint = [];
}
this.__controlPoint.append(controlPoint);
return this;
}
removeControlPoint(controlPoint) {
for( let i = 0; i < this.__controlPoint.length; i++) {
if ( this.__controlPoint[i] === controlPoint) {
this.__controlPoint.splice(i, 1);
}
}
return this.__controlPoint;
}
get controlPoint() {
return this.__controlPoint;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DParametricGeometryNode extends X3DGeometryNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DNurbsSurfaceGeometryNode extends X3DParametricGeometryNode {
constructor(kwargs = {}) {
super(kwargs);
var controlPoint = kwargs["controlPoint"] || null;
this.__controlPoint = controlPoint;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var solid = kwargs["solid"] || true;
this.__solid = solid;
var texCoord = kwargs["texCoord"] || null;
this.__texCoord = texCoord;
var uClosed = kwargs["uClosed"] || false;
this.__uClosed = uClosed;
var uDimension = kwargs["uDimension"] || 0;
if (uDimension == null || uDimension < 0) {
return null;
}
this.__uDimension = uDimension;
var uKnot = kwargs["uKnot"] || null;
this.__uKnot = uKnot;
var uOrder = kwargs["uOrder"] || 3;
if (uOrder == null || uOrder < 2) {
return null;
}
this.__uOrder = uOrder;
var uTessellation = kwargs["uTessellation"] || 0;
this.__uTessellation = uTessellation;
var vClosed = kwargs["vClosed"] || false;
this.__vClosed = vClosed;
var vDimension = kwargs["vDimension"] || 0;
if (vDimension == null || vDimension < 0) {
return null;
}
this.__vDimension = vDimension;
var vKnot = kwargs["vKnot"] || null;
this.__vKnot = vKnot;
var vOrder = kwargs["vOrder"] || 3;
if (vOrder == null || vOrder < 2) {
return null;
}
this.__vOrder = vOrder;
var vTessellation = kwargs["vTessellation"] || 0;
this.__vTessellation = vTessellation;
var weight = kwargs["weight"] || null;
if (weight == null || weight.length <= 0 || Math.min(weight) <= 0) {
return null;
}
this.__weight = weight;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set controlPoint(controlPoint = null) {
this.__controlPoint = [controlPoint];
return this;
}
addControlPoint(controlPoint = null) {
if (this.__controlPoint == null) {
this.__controlPoint = [];
}
this.__controlPoint.append(controlPoint);
return this;
}
removeControlPoint(controlPoint) {
for( let i = 0; i < this.__controlPoint.length; i++) {
if ( this.__controlPoint[i] === controlPoint) {
this.__controlPoint.splice(i, 1);
}
}
return this.__controlPoint;
}
get controlPoint() {
return this.__controlPoint;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set texCoord(texCoord = null) {
this.__texCoord = [texCoord];
return this;
}
addTexCoord(texCoord = null) {
if (this.__texCoord == null) {
this.__texCoord = [];
}
this.__texCoord.append(texCoord);
return this;
}
removeTexCoord(texCoord) {
for( let i = 0; i < this.__texCoord.length; i++) {
if ( this.__texCoord[i] === texCoord) {
this.__texCoord.splice(i, 1);
}
}
return this.__texCoord;
}
get texCoord() {
return this.__texCoord;
}
set uTessellation(uTessellation = 0) {
this.__uTessellation = [uTessellation];
return this;
}
addUTessellation(uTessellation = 0) {
if (this.__uTessellation == null) {
this.__uTessellation = [];
}
this.__uTessellation.append(uTessellation);
return this;
}
removeUTessellation(uTessellation) {
for( let i = 0; i < this.__uTessellation.length; i++) {
if ( this.__uTessellation[i] === uTessellation) {
this.__uTessellation.splice(i, 1);
}
}
return this.__uTessellation;
}
get uTessellation() {
return this.__uTessellation;
}
set vTessellation(vTessellation = 0) {
this.__vTessellation = [vTessellation];
return this;
}
addVTessellation(vTessellation = 0) {
if (this.__vTessellation == null) {
this.__vTessellation = [];
}
this.__vTessellation.append(vTessellation);
return this;
}
removeVTessellation(vTessellation) {
for( let i = 0; i < this.__vTessellation.length; i++) {
if ( this.__vTessellation[i] === vTessellation) {
this.__vTessellation.splice(i, 1);
}
}
return this.__vTessellation;
}
get vTessellation() {
return this.__vTessellation;
}
set weight(weight = null) {
if (weight == null || weight.length <= 0 || Math.min(weight) <= 0) {
return null;
}
this.__weight = [weight];
return this;
}
addWeight(weight = null) {
if (weight == null || weight.length <= 0 || Math.min(weight) <= 0) {
return null;
}
if (this.__weight == null) {
this.__weight = [];
}
this.__weight.append(weight);
return this;
}
removeWeight(weight) {
for( let i = 0; i < this.__weight.length; i++) {
if ( this.__weight[i] === weight) {
this.__weight.splice(i, 1);
}
}
return this.__weight;
}
get weight() {
return this.__weight;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__controlPoint === null) {
} else if (typeof this.__controlPoint.toXMLNode === 'function') {
str += this.__controlPoint.toXMLNode('controlPoint');
} else if (typeof this.__controlPoint === 'string') {
str += ' controlPoint="'+this.__controlPoint+'"';
} else if (Array.isArray( this.__controlPoint)) {
if (typeof this.__controlPoint[0].toXMLNode !== 'function') {
str += ' controlPoint="'+this.__controlPoint.join(' ')+'"';
} else {
for (let i in this.__controlPoint) {
if (typeof this.__controlPoint[i].toXMLNode === 'function') {
str += this.__controlPoint[i].toXMLNode('controlPoint');
}
}
}
} else {
str += ' controlPoint="'+this.__controlPoint+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__texCoord === null) {
} else if (typeof this.__texCoord.toXMLNode === 'function') {
str += this.__texCoord.toXMLNode('texCoord');
} else if (typeof this.__texCoord === 'string') {
str += ' texCoord="'+this.__texCoord+'"';
} else if (Array.isArray( this.__texCoord)) {
if (typeof this.__texCoord[0].toXMLNode !== 'function') {
str += ' texCoord="'+this.__texCoord.join(' ')+'"';
} else {
for (let i in this.__texCoord) {
if (typeof this.__texCoord[i].toXMLNode === 'function') {
str += this.__texCoord[i].toXMLNode('texCoord');
}
}
}
} else {
str += ' texCoord="'+this.__texCoord+'"';
}
str += ''
return str;
}
}
export class X3DParticleEmitterNode extends X3DNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var mass = kwargs["mass"] || 0;
if (mass == null || mass < 0) {
return null;
}
this.__mass = mass;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var speed = kwargs["speed"] || 0;
if (speed == null || speed < 0) {
return null;
}
this.__speed = speed;
var surfaceArea = kwargs["surfaceArea"] || 0;
if (surfaceArea == null || surfaceArea < 0) {
return null;
}
this.__surfaceArea = surfaceArea;
var variation = kwargs["variation"] || 0.25;
if (variation == null || variation < 0) {
return null;
}
this.__variation = variation;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set mass(mass = 0) {
if (mass == null || mass < 0) {
return null;
}
this.__mass = [mass];
return this;
}
addMass(mass = 0) {
if (mass == null || mass < 0) {
return null;
}
if (this.__mass == null) {
this.__mass = [];
}
this.__mass.append(mass);
return this;
}
removeMass(mass) {
for( let i = 0; i < this.__mass.length; i++) {
if ( this.__mass[i] === mass) {
this.__mass.splice(i, 1);
}
}
return this.__mass;
}
get mass() {
return this.__mass;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set speed(speed = 0) {
if (speed == null || speed < 0) {
return null;
}
this.__speed = [speed];
return this;
}
addSpeed(speed = 0) {
if (speed == null || speed < 0) {
return null;
}
if (this.__speed == null) {
this.__speed = [];
}
this.__speed.append(speed);
return this;
}
removeSpeed(speed) {
for( let i = 0; i < this.__speed.length; i++) {
if ( this.__speed[i] === speed) {
this.__speed.splice(i, 1);
}
}
return this.__speed;
}
get speed() {
return this.__speed;
}
set variation(variation = 0.25) {
if (variation == null || variation < 0) {
return null;
}
this.__variation = [variation];
return this;
}
addVariation(variation = 0.25) {
if (variation == null || variation < 0) {
return null;
}
if (this.__variation == null) {
this.__variation = [];
}
this.__variation.append(variation);
return this;
}
removeVariation(variation) {
for( let i = 0; i < this.__variation.length; i++) {
if ( this.__variation[i] === variation) {
this.__variation.splice(i, 1);
}
}
return this.__variation;
}
get variation() {
return this.__variation;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DParticlePhysicsModelNode extends X3DNode {
constructor(kwargs = {}) {
super(kwargs);
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DPickSensorNode extends X3DSensorNode {
constructor(kwargs = {}) {
super(kwargs);
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var intersectionType = kwargs["intersectionType"] || "BOUNDS";
this.__intersectionType = intersectionType;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var matchCriterion = kwargs["matchCriterion"] || "MATCH_ANY";
if ('MATCH_ANY' === matchCriterion) {
} else if ('MATCH_EVERY' === matchCriterion) {
} else if ('MATCH_ONLY_ONE' === matchCriterion) {
} else {
return null;
}
this.__matchCriterion = matchCriterion;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var objectType = kwargs["objectType"] || ["ALL"];
this.__objectType = objectType;
var pickedGeometry = kwargs["pickedGeometry"] || null;
this.__pickedGeometry = pickedGeometry;
var pickingGeometry = kwargs["pickingGeometry"] || null;
this.__pickingGeometry = pickingGeometry;
var pickTarget = kwargs["pickTarget"] || null;
this.__pickTarget = pickTarget;
var sortOrder = kwargs["sortOrder"] || "CLOSEST";
this.__sortOrder = sortOrder;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
set matchCriterion(matchCriterion = "MATCH_ANY") {
if ('MATCH_ANY' === matchCriterion) {
} else if ('MATCH_EVERY' === matchCriterion) {
} else if ('MATCH_ONLY_ONE' === matchCriterion) {
} else {
return null;
}
this.__matchCriterion = [matchCriterion];
return this;
}
addMatchCriterion(matchCriterion = "MATCH_ANY") {
if ('MATCH_ANY' === matchCriterion) {
} else if ('MATCH_EVERY' === matchCriterion) {
} else if ('MATCH_ONLY_ONE' === matchCriterion) {
} else {
return null;
}
if (this.__matchCriterion == null) {
this.__matchCriterion = [];
}
this.__matchCriterion.append(matchCriterion);
return this;
}
removeMatchCriterion(matchCriterion) {
for( let i = 0; i < this.__matchCriterion.length; i++) {
if ( this.__matchCriterion[i] === matchCriterion) {
this.__matchCriterion.splice(i, 1);
}
}
return this.__matchCriterion;
}
get matchCriterion() {
return this.__matchCriterion;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set objectType(objectType = ["ALL"]) {
this.__objectType = [objectType];
return this;
}
addObjectType(objectType = ["ALL"]) {
if (this.__objectType == null) {
this.__objectType = [];
}
this.__objectType.append(objectType);
return this;
}
removeObjectType(objectType) {
for( let i = 0; i < this.__objectType.length; i++) {
if ( this.__objectType[i] === objectType) {
this.__objectType.splice(i, 1);
}
}
return this.__objectType;
}
get objectType() {
return this.__objectType;
}
removePickedGeometry(pickedGeometry) {
for( let i = 0; i < this.__pickedGeometry.length; i++) {
if ( this.__pickedGeometry[i] === pickedGeometry) {
this.__pickedGeometry.splice(i, 1);
}
}
return this.__pickedGeometry;
}
get pickedGeometry() {
return this.__pickedGeometry;
}
set pickingGeometry(pickingGeometry = null) {
this.__pickingGeometry = [pickingGeometry];
return this;
}
addPickingGeometry(pickingGeometry = null) {
if (this.__pickingGeometry == null) {
this.__pickingGeometry = [];
}
this.__pickingGeometry.append(pickingGeometry);
return this;
}
removePickingGeometry(pickingGeometry) {
for( let i = 0; i < this.__pickingGeometry.length; i++) {
if ( this.__pickingGeometry[i] === pickingGeometry) {
this.__pickingGeometry.splice(i, 1);
}
}
return this.__pickingGeometry;
}
get pickingGeometry() {
return this.__pickingGeometry;
}
set pickTarget(pickTarget = null) {
this.__pickTarget = [pickTarget];
return this;
}
addPickTarget(pickTarget = null) {
if (this.__pickTarget == null) {
this.__pickTarget = [];
}
this.__pickTarget.append(pickTarget);
return this;
}
removePickTarget(pickTarget) {
for( let i = 0; i < this.__pickTarget.length; i++) {
if ( this.__pickTarget[i] === pickTarget) {
this.__pickTarget.splice(i, 1);
}
}
return this.__pickTarget;
}
get pickTarget() {
return this.__pickTarget;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__pickedGeometry === null) {
} else if (typeof this.__pickedGeometry.toXMLNode === 'function') {
str += this.__pickedGeometry.toXMLNode('pickedGeometry');
} else if (typeof this.__pickedGeometry === 'string') {
str += ' pickedGeometry="'+this.__pickedGeometry+'"';
} else if (Array.isArray( this.__pickedGeometry)) {
if (typeof this.__pickedGeometry[0].toXMLNode !== 'function') {
str += ' pickedGeometry="'+this.__pickedGeometry.join(' ')+'"';
} else {
for (let i in this.__pickedGeometry) {
if (typeof this.__pickedGeometry[i].toXMLNode === 'function') {
str += this.__pickedGeometry[i].toXMLNode('pickedGeometry');
}
}
}
} else {
str += ' pickedGeometry="'+this.__pickedGeometry+'"';
}
if (this.__pickingGeometry === null) {
} else if (typeof this.__pickingGeometry.toXMLNode === 'function') {
str += this.__pickingGeometry.toXMLNode('pickingGeometry');
} else if (typeof this.__pickingGeometry === 'string') {
str += ' pickingGeometry="'+this.__pickingGeometry+'"';
} else if (Array.isArray( this.__pickingGeometry)) {
if (typeof this.__pickingGeometry[0].toXMLNode !== 'function') {
str += ' pickingGeometry="'+this.__pickingGeometry.join(' ')+'"';
} else {
for (let i in this.__pickingGeometry) {
if (typeof this.__pickingGeometry[i].toXMLNode === 'function') {
str += this.__pickingGeometry[i].toXMLNode('pickingGeometry');
}
}
}
} else {
str += ' pickingGeometry="'+this.__pickingGeometry+'"';
}
if (this.__pickTarget === null) {
} else if (typeof this.__pickTarget.toXMLNode === 'function') {
str += this.__pickTarget.toXMLNode('pickTarget');
} else if (typeof this.__pickTarget === 'string') {
str += ' pickTarget="'+this.__pickTarget+'"';
} else if (Array.isArray( this.__pickTarget)) {
if (typeof this.__pickTarget[0].toXMLNode !== 'function') {
str += ' pickTarget="'+this.__pickTarget.join(' ')+'"';
} else {
for (let i in this.__pickTarget) {
if (typeof this.__pickTarget[i].toXMLNode === 'function') {
str += this.__pickTarget[i].toXMLNode('pickTarget');
}
}
}
} else {
str += ' pickTarget="'+this.__pickTarget+'"';
}
str += ''
return str;
}
}
export class X3DProductStructureChildNode extends X3DChildNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var name = kwargs["name"] || null;
this.__name = name;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set name(name = null) {
this.__name = [name];
return this;
}
addName(name = null) {
if (this.__name == null) {
this.__name = [];
}
this.__name.append(name);
return this;
}
removeName(name) {
for( let i = 0; i < this.__name.length; i++) {
if ( this.__name[i] === name) {
this.__name.splice(i, 1);
}
}
return this.__name;
}
get name() {
return this.__name;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DPrototypeInstance extends X3DNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DRigidJointNode extends X3DNode {
constructor(kwargs = {}) {
super(kwargs);
var body1 = kwargs["body1"] || null;
this.__body1 = body1;
var body2 = kwargs["body2"] || null;
this.__body2 = body2;
var forceOutput = kwargs["forceOutput"] || ["NONE"];
this.__forceOutput = forceOutput;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set body1(body1 = null) {
this.__body1 = [body1];
return this;
}
addBody1(body1 = null) {
if (this.__body1 == null) {
this.__body1 = [];
}
this.__body1.append(body1);
return this;
}
removeBody1(body1) {
for( let i = 0; i < this.__body1.length; i++) {
if ( this.__body1[i] === body1) {
this.__body1.splice(i, 1);
}
}
return this.__body1;
}
get body1() {
return this.__body1;
}
set body2(body2 = null) {
this.__body2 = [body2];
return this;
}
addBody2(body2 = null) {
if (this.__body2 == null) {
this.__body2 = [];
}
this.__body2.append(body2);
return this;
}
removeBody2(body2) {
for( let i = 0; i < this.__body2.length; i++) {
if ( this.__body2[i] === body2) {
this.__body2.splice(i, 1);
}
}
return this.__body2;
}
get body2() {
return this.__body2;
}
set forceOutput(forceOutput = ["NONE"]) {
this.__forceOutput = [forceOutput];
return this;
}
addForceOutput(forceOutput = ["NONE"]) {
if (this.__forceOutput == null) {
this.__forceOutput = [];
}
this.__forceOutput.append(forceOutput);
return this;
}
removeForceOutput(forceOutput) {
for( let i = 0; i < this.__forceOutput.length; i++) {
if ( this.__forceOutput[i] === forceOutput) {
this.__forceOutput.splice(i, 1);
}
}
return this.__forceOutput;
}
get forceOutput() {
return this.__forceOutput;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__body1 === null) {
} else if (typeof this.__body1.toXMLNode === 'function') {
str += this.__body1.toXMLNode('body1');
} else if (typeof this.__body1 === 'string') {
str += ' body1="'+this.__body1+'"';
} else if (Array.isArray( this.__body1)) {
if (typeof this.__body1[0].toXMLNode !== 'function') {
str += ' body1="'+this.__body1.join(' ')+'"';
} else {
for (let i in this.__body1) {
if (typeof this.__body1[i].toXMLNode === 'function') {
str += this.__body1[i].toXMLNode('body1');
}
}
}
} else {
str += ' body1="'+this.__body1+'"';
}
if (this.__body2 === null) {
} else if (typeof this.__body2.toXMLNode === 'function') {
str += this.__body2.toXMLNode('body2');
} else if (typeof this.__body2 === 'string') {
str += ' body2="'+this.__body2+'"';
} else if (Array.isArray( this.__body2)) {
if (typeof this.__body2[0].toXMLNode !== 'function') {
str += ' body2="'+this.__body2.join(' ')+'"';
} else {
for (let i in this.__body2) {
if (typeof this.__body2[i].toXMLNode === 'function') {
str += this.__body2[i].toXMLNode('body2');
}
}
}
} else {
str += ' body2="'+this.__body2+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DScriptNode extends X3DChildNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var url = kwargs["url"] || null;
this.__url = url;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set url(url = null) {
this.__url = [url];
return this;
}
addUrl(url = null) {
if (this.__url == null) {
this.__url = [];
}
this.__url.append(url);
return this;
}
removeUrl(url) {
for( let i = 0; i < this.__url.length; i++) {
if ( this.__url[i] === url) {
this.__url.splice(i, 1);
}
}
return this.__url;
}
get url() {
return this.__url;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DSequencerNode extends X3DChildNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var key = kwargs["key"] || null;
this.__key = key;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var next = kwargs["next"] || null;
this.__next = next;
var previous = kwargs["previous"] || null;
this.__previous = previous;
var fraction = kwargs["fraction"] || null;
this.__fraction = fraction;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set key(key = null) {
this.__key = [key];
return this;
}
addKey(key = null) {
if (this.__key == null) {
this.__key = [];
}
this.__key.append(key);
return this;
}
removeKey(key) {
for( let i = 0; i < this.__key.length; i++) {
if ( this.__key[i] === key) {
this.__key.splice(i, 1);
}
}
return this.__key;
}
get key() {
return this.__key;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set next(next = null) {
this.__next = [next];
return this;
}
addNext(next = null) {
if (this.__next == null) {
this.__next = [];
}
this.__next.append(next);
return this;
}
set previous(previous = null) {
this.__previous = [previous];
return this;
}
addPrevious(previous = null) {
if (this.__previous == null) {
this.__previous = [];
}
this.__previous.append(previous);
return this;
}
set set_fraction(fraction = null) {
this.__fraction = [fraction];
return this;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DShaderNode extends X3DAppearanceChildNode {
constructor(kwargs = {}) {
super(kwargs);
var activate = kwargs["activate"] || null;
this.__activate = activate;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Selected = kwargs["Selected"] || null;
this.__Selected = Selected;
var Valid = kwargs["Valid"] || null;
this.__Valid = Valid;
var language = kwargs["language"] || null;
this.__language = language;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set activate(activate = null) {
this.__activate = [activate];
return this;
}
addActivate(activate = null) {
if (this.__activate == null) {
this.__activate = [];
}
this.__activate.append(activate);
return this;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isSelected() {
return this.__Selected;
}
get isValid() {
return this.__Valid;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DShapeNode extends X3DChildNode {
constructor(kwargs = {}) {
super(kwargs);
var appearance = kwargs["appearance"] || null;
this.__appearance = appearance;
var bboxCenter = kwargs["bboxCenter"] || [0, 0, 0];
this.__bboxCenter = bboxCenter;
var bboxSize = kwargs["bboxSize"] || [-1, -1, -1];
this.__bboxSize = bboxSize;
var displayBBox = kwargs["displayBBox"] || false;
this.__displayBBox = displayBBox;
var geometry = kwargs["geometry"] || null;
this.__geometry = geometry;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var visible = kwargs["visible"] || true;
this.__visible = visible;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set appearance(appearance = null) {
this.__appearance = [appearance];
return this;
}
addAppearance(appearance = null) {
if (this.__appearance == null) {
this.__appearance = [];
}
this.__appearance.append(appearance);
return this;
}
removeAppearance(appearance) {
for( let i = 0; i < this.__appearance.length; i++) {
if ( this.__appearance[i] === appearance) {
this.__appearance.splice(i, 1);
}
}
return this.__appearance;
}
get appearance() {
return this.__appearance;
}
set displayBBox(displayBBox = false) {
this.__displayBBox = [displayBBox];
return this;
}
addDisplayBBox(displayBBox = false) {
if (this.__displayBBox == null) {
this.__displayBBox = [];
}
this.__displayBBox.append(displayBBox);
return this;
}
removeDisplayBBox(displayBBox) {
for( let i = 0; i < this.__displayBBox.length; i++) {
if ( this.__displayBBox[i] === displayBBox) {
this.__displayBBox.splice(i, 1);
}
}
return this.__displayBBox;
}
get isDisplayBBox() {
return this.__displayBBox;
}
set geometry(geometry = null) {
this.__geometry = [geometry];
return this;
}
addGeometry(geometry = null) {
if (this.__geometry == null) {
this.__geometry = [];
}
this.__geometry.append(geometry);
return this;
}
removeGeometry(geometry) {
for( let i = 0; i < this.__geometry.length; i++) {
if ( this.__geometry[i] === geometry) {
this.__geometry.splice(i, 1);
}
}
return this.__geometry;
}
get geometry() {
return this.__geometry;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set visible(visible = true) {
this.__visible = [visible];
return this;
}
addVisible(visible = true) {
if (this.__visible == null) {
this.__visible = [];
}
this.__visible.append(visible);
return this;
}
removeVisible(visible) {
for( let i = 0; i < this.__visible.length; i++) {
if ( this.__visible[i] === visible) {
this.__visible.splice(i, 1);
}
}
return this.__visible;
}
get isVisible() {
return this.__visible;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__appearance === null) {
} else if (typeof this.__appearance.toXMLNode === 'function') {
str += this.__appearance.toXMLNode('appearance');
} else if (typeof this.__appearance === 'string') {
str += ' appearance="'+this.__appearance+'"';
} else if (Array.isArray( this.__appearance)) {
if (typeof this.__appearance[0].toXMLNode !== 'function') {
str += ' appearance="'+this.__appearance.join(' ')+'"';
} else {
for (let i in this.__appearance) {
if (typeof this.__appearance[i].toXMLNode === 'function') {
str += this.__appearance[i].toXMLNode('appearance');
}
}
}
} else {
str += ' appearance="'+this.__appearance+'"';
}
if (this.__geometry === null) {
} else if (typeof this.__geometry.toXMLNode === 'function') {
str += this.__geometry.toXMLNode('geometry');
} else if (typeof this.__geometry === 'string') {
str += ' geometry="'+this.__geometry+'"';
} else if (Array.isArray( this.__geometry)) {
if (typeof this.__geometry[0].toXMLNode !== 'function') {
str += ' geometry="'+this.__geometry.join(' ')+'"';
} else {
for (let i in this.__geometry) {
if (typeof this.__geometry[i].toXMLNode === 'function') {
str += this.__geometry[i].toXMLNode('geometry');
}
}
}
} else {
str += ' geometry="'+this.__geometry+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DSoundNode extends X3DChildNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DTimeDependentNode extends X3DChildNode {
constructor(kwargs = {}) {
super(kwargs);
var elapsedTime = kwargs["elapsedTime"] || null;
if (elapsedTime == null || elapsedTime < 0) {
return null;
}
this.__elapsedTime = elapsedTime;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var Paused = kwargs["Paused"] || null;
this.__Paused = Paused;
var loop = kwargs["loop"] || false;
this.__loop = loop;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var pauseTime = kwargs["pauseTime"] || 0;
this.__pauseTime = pauseTime;
var resumeTime = kwargs["resumeTime"] || 0;
this.__resumeTime = resumeTime;
var startTime = kwargs["startTime"] || 0;
this.__startTime = startTime;
var stopTime = kwargs["stopTime"] || 0;
this.__stopTime = stopTime;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
removeElapsedTime(elapsedTime) {
for( let i = 0; i < this.__elapsedTime.length; i++) {
if ( this.__elapsedTime[i] === elapsedTime) {
this.__elapsedTime.splice(i, 1);
}
}
return this.__elapsedTime;
}
get elapsedTime() {
return this.__elapsedTime;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
get isPaused() {
return this.__Paused;
}
set loop(loop = false) {
this.__loop = [loop];
return this;
}
addLoop(loop = false) {
if (this.__loop == null) {
this.__loop = [];
}
this.__loop.append(loop);
return this;
}
removeLoop(loop) {
for( let i = 0; i < this.__loop.length; i++) {
if ( this.__loop[i] === loop) {
this.__loop.splice(i, 1);
}
}
return this.__loop;
}
get isLoop() {
return this.__loop;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set pauseTime(pauseTime = 0) {
this.__pauseTime = [pauseTime];
return this;
}
addPauseTime(pauseTime = 0) {
if (this.__pauseTime == null) {
this.__pauseTime = [];
}
this.__pauseTime.append(pauseTime);
return this;
}
removePauseTime(pauseTime) {
for( let i = 0; i < this.__pauseTime.length; i++) {
if ( this.__pauseTime[i] === pauseTime) {
this.__pauseTime.splice(i, 1);
}
}
return this.__pauseTime;
}
get pauseTime() {
return this.__pauseTime;
}
set resumeTime(resumeTime = 0) {
this.__resumeTime = [resumeTime];
return this;
}
addResumeTime(resumeTime = 0) {
if (this.__resumeTime == null) {
this.__resumeTime = [];
}
this.__resumeTime.append(resumeTime);
return this;
}
removeResumeTime(resumeTime) {
for( let i = 0; i < this.__resumeTime.length; i++) {
if ( this.__resumeTime[i] === resumeTime) {
this.__resumeTime.splice(i, 1);
}
}
return this.__resumeTime;
}
get resumeTime() {
return this.__resumeTime;
}
set startTime(startTime = 0) {
this.__startTime = [startTime];
return this;
}
addStartTime(startTime = 0) {
if (this.__startTime == null) {
this.__startTime = [];
}
this.__startTime.append(startTime);
return this;
}
removeStartTime(startTime) {
for( let i = 0; i < this.__startTime.length; i++) {
if ( this.__startTime[i] === startTime) {
this.__startTime.splice(i, 1);
}
}
return this.__startTime;
}
get startTime() {
return this.__startTime;
}
set stopTime(stopTime = 0) {
this.__stopTime = [stopTime];
return this;
}
addStopTime(stopTime = 0) {
if (this.__stopTime == null) {
this.__stopTime = [];
}
this.__stopTime.append(stopTime);
return this;
}
removeStopTime(stopTime) {
for( let i = 0; i < this.__stopTime.length; i++) {
if ( this.__stopTime[i] === stopTime) {
this.__stopTime.splice(i, 1);
}
}
return this.__stopTime;
}
get stopTime() {
return this.__stopTime;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DSoundSourceNode extends X3DTimeDependentNode {
constructor(kwargs = {}) {
super(kwargs);
var description = kwargs["description"] || null;
this.__description = description;
var duration_changed = kwargs["duration_changed"] || null;
if (duration_changed == null || duration_changed < -1) {
return null;
}
this.__duration_changed = duration_changed;
var elapsedTime = kwargs["elapsedTime"] || null;
if (elapsedTime == null || elapsedTime < 0) {
return null;
}
this.__elapsedTime = elapsedTime;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var Paused = kwargs["Paused"] || null;
this.__Paused = Paused;
var loop = kwargs["loop"] || false;
this.__loop = loop;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var pauseTime = kwargs["pauseTime"] || 0;
this.__pauseTime = pauseTime;
var pitch = kwargs["pitch"] || 1.0;
if (pitch == null || pitch <= 0) {
return null;
}
this.__pitch = pitch;
var resumeTime = kwargs["resumeTime"] || 0;
this.__resumeTime = resumeTime;
var startTime = kwargs["startTime"] || 0;
this.__startTime = startTime;
var stopTime = kwargs["stopTime"] || 0;
this.__stopTime = stopTime;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set description(description = null) {
this.__description = [description];
return this;
}
addDescription(description = null) {
if (this.__description == null) {
this.__description = [];
}
this.__description.append(description);
return this;
}
removeDescription(description) {
for( let i = 0; i < this.__description.length; i++) {
if ( this.__description[i] === description) {
this.__description.splice(i, 1);
}
}
return this.__description;
}
get description() {
return this.__description;
}
removeduration_changed(duration_changed) {
for( let i = 0; i < this.__duration_changed.length; i++) {
if ( this.__duration_changed[i] === duration_changed) {
this.__duration_changed.splice(i, 1);
}
}
return this.__duration_changed;
}
get duration_changed() {
return this.__duration_changed;
}
removeElapsedTime(elapsedTime) {
for( let i = 0; i < this.__elapsedTime.length; i++) {
if ( this.__elapsedTime[i] === elapsedTime) {
this.__elapsedTime.splice(i, 1);
}
}
return this.__elapsedTime;
}
get elapsedTime() {
return this.__elapsedTime;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
get isPaused() {
return this.__Paused;
}
set loop(loop = false) {
this.__loop = [loop];
return this;
}
addLoop(loop = false) {
if (this.__loop == null) {
this.__loop = [];
}
this.__loop.append(loop);
return this;
}
removeLoop(loop) {
for( let i = 0; i < this.__loop.length; i++) {
if ( this.__loop[i] === loop) {
this.__loop.splice(i, 1);
}
}
return this.__loop;
}
get isLoop() {
return this.__loop;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set pauseTime(pauseTime = 0) {
this.__pauseTime = [pauseTime];
return this;
}
addPauseTime(pauseTime = 0) {
if (this.__pauseTime == null) {
this.__pauseTime = [];
}
this.__pauseTime.append(pauseTime);
return this;
}
removePauseTime(pauseTime) {
for( let i = 0; i < this.__pauseTime.length; i++) {
if ( this.__pauseTime[i] === pauseTime) {
this.__pauseTime.splice(i, 1);
}
}
return this.__pauseTime;
}
get pauseTime() {
return this.__pauseTime;
}
set pitch(pitch = 1.0) {
if (pitch == null || pitch <= 0) {
return null;
}
this.__pitch = [pitch];
return this;
}
addPitch(pitch = 1.0) {
if (pitch == null || pitch <= 0) {
return null;
}
if (this.__pitch == null) {
this.__pitch = [];
}
this.__pitch.append(pitch);
return this;
}
removePitch(pitch) {
for( let i = 0; i < this.__pitch.length; i++) {
if ( this.__pitch[i] === pitch) {
this.__pitch.splice(i, 1);
}
}
return this.__pitch;
}
get pitch() {
return this.__pitch;
}
set resumeTime(resumeTime = 0) {
this.__resumeTime = [resumeTime];
return this;
}
addResumeTime(resumeTime = 0) {
if (this.__resumeTime == null) {
this.__resumeTime = [];
}
this.__resumeTime.append(resumeTime);
return this;
}
removeResumeTime(resumeTime) {
for( let i = 0; i < this.__resumeTime.length; i++) {
if ( this.__resumeTime[i] === resumeTime) {
this.__resumeTime.splice(i, 1);
}
}
return this.__resumeTime;
}
get resumeTime() {
return this.__resumeTime;
}
set startTime(startTime = 0) {
this.__startTime = [startTime];
return this;
}
addStartTime(startTime = 0) {
if (this.__startTime == null) {
this.__startTime = [];
}
this.__startTime.append(startTime);
return this;
}
removeStartTime(startTime) {
for( let i = 0; i < this.__startTime.length; i++) {
if ( this.__startTime[i] === startTime) {
this.__startTime.splice(i, 1);
}
}
return this.__startTime;
}
get startTime() {
return this.__startTime;
}
set stopTime(stopTime = 0) {
this.__stopTime = [stopTime];
return this;
}
addStopTime(stopTime = 0) {
if (this.__stopTime == null) {
this.__stopTime = [];
}
this.__stopTime.append(stopTime);
return this;
}
removeStopTime(stopTime) {
for( let i = 0; i < this.__stopTime.length; i++) {
if ( this.__stopTime[i] === stopTime) {
this.__stopTime.splice(i, 1);
}
}
return this.__stopTime;
}
get stopTime() {
return this.__stopTime;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DTexture2DNode extends X3DTextureNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var repeatS = kwargs["repeatS"] || true;
this.__repeatS = repeatS;
var repeatT = kwargs["repeatT"] || true;
this.__repeatT = repeatT;
var textureProperties = kwargs["textureProperties"] || null;
this.__textureProperties = textureProperties;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__textureProperties === null) {
} else if (typeof this.__textureProperties.toXMLNode === 'function') {
str += this.__textureProperties.toXMLNode('textureProperties');
} else if (typeof this.__textureProperties === 'string') {
str += ' textureProperties="'+this.__textureProperties+'"';
} else if (Array.isArray( this.__textureProperties)) {
if (typeof this.__textureProperties[0].toXMLNode !== 'function') {
str += ' textureProperties="'+this.__textureProperties.join(' ')+'"';
} else {
for (let i in this.__textureProperties) {
if (typeof this.__textureProperties[i].toXMLNode === 'function') {
str += this.__textureProperties[i].toXMLNode('textureProperties');
}
}
}
} else {
str += ' textureProperties="'+this.__textureProperties+'"';
}
str += ''
return str;
}
}
export class X3DTexture3DNode extends X3DTextureNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var repeatR = kwargs["repeatR"] || false;
this.__repeatR = repeatR;
var repeatS = kwargs["repeatS"] || false;
this.__repeatS = repeatS;
var repeatT = kwargs["repeatT"] || false;
this.__repeatT = repeatT;
var textureProperties = kwargs["textureProperties"] || null;
this.__textureProperties = textureProperties;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__textureProperties === null) {
} else if (typeof this.__textureProperties.toXMLNode === 'function') {
str += this.__textureProperties.toXMLNode('textureProperties');
} else if (typeof this.__textureProperties === 'string') {
str += ' textureProperties="'+this.__textureProperties+'"';
} else if (Array.isArray( this.__textureProperties)) {
if (typeof this.__textureProperties[0].toXMLNode !== 'function') {
str += ' textureProperties="'+this.__textureProperties.join(' ')+'"';
} else {
for (let i in this.__textureProperties) {
if (typeof this.__textureProperties[i].toXMLNode === 'function') {
str += this.__textureProperties[i].toXMLNode('textureProperties');
}
}
}
} else {
str += ' textureProperties="'+this.__textureProperties+'"';
}
str += ''
return str;
}
}
export class X3DTextureCoordinateNode extends X3DGeometricPropertyNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DTextureTransformNode extends X3DAppearanceChildNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DTouchSensorNode extends X3DPointingDeviceSensorNode {
constructor(kwargs = {}) {
super(kwargs);
var description = kwargs["description"] || null;
this.__description = description;
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var Over = kwargs["Over"] || null;
this.__Over = Over;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var touchTime = kwargs["touchTime"] || null;
this.__touchTime = touchTime;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set description(description = null) {
this.__description = [description];
return this;
}
addDescription(description = null) {
if (this.__description == null) {
this.__description = [];
}
this.__description.append(description);
return this;
}
removeDescription(description) {
for( let i = 0; i < this.__description.length; i++) {
if ( this.__description[i] === description) {
this.__description.splice(i, 1);
}
}
return this.__description;
}
get description() {
return this.__description;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
get isOver() {
return this.__Over;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
removeTouchTime(touchTime) {
for( let i = 0; i < this.__touchTime.length; i++) {
if ( this.__touchTime[i] === touchTime) {
this.__touchTime.splice(i, 1);
}
}
return this.__touchTime;
}
get touchTime() {
return this.__touchTime;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DTriggerNode extends X3DChildNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DVertexAttributeNode extends X3DGeometricPropertyNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var name = kwargs["name"] || null;
this.__name = name;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set name(name = null) {
this.__name = [name];
return this;
}
addName(name = null) {
if (this.__name == null) {
this.__name = [];
}
this.__name.append(name);
return this;
}
removeName(name) {
for( let i = 0; i < this.__name.length; i++) {
if ( this.__name[i] === name) {
this.__name.splice(i, 1);
}
}
return this.__name;
}
get name() {
return this.__name;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DViewpointNode extends X3DBindableNode {
constructor(kwargs = {}) {
super(kwargs);
var bindTime = kwargs["bindTime"] || null;
this.__bindTime = bindTime;
var description = kwargs["description"] || null;
this.__description = description;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Bound = kwargs["Bound"] || null;
this.__Bound = Bound;
var jump = kwargs["jump"] || true;
this.__jump = jump;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var orientation = kwargs["orientation"] || [0, 0, 1, 0];
this.__orientation = orientation;
var retainUserOffsets = kwargs["retainUserOffsets"] || false;
this.__retainUserOffsets = retainUserOffsets;
var bind = kwargs["bind"] || null;
this.__bind = bind;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
removeBindTime(bindTime) {
for( let i = 0; i < this.__bindTime.length; i++) {
if ( this.__bindTime[i] === bindTime) {
this.__bindTime.splice(i, 1);
}
}
return this.__bindTime;
}
get bindTime() {
return this.__bindTime;
}
set description(description = null) {
this.__description = [description];
return this;
}
addDescription(description = null) {
if (this.__description == null) {
this.__description = [];
}
this.__description.append(description);
return this;
}
removeDescription(description) {
for( let i = 0; i < this.__description.length; i++) {
if ( this.__description[i] === description) {
this.__description.splice(i, 1);
}
}
return this.__description;
}
get description() {
return this.__description;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isBound() {
return this.__Bound;
}
set jump(jump = true) {
this.__jump = [jump];
return this;
}
addJump(jump = true) {
if (this.__jump == null) {
this.__jump = [];
}
this.__jump.append(jump);
return this;
}
removeJump(jump) {
for( let i = 0; i < this.__jump.length; i++) {
if ( this.__jump[i] === jump) {
this.__jump.splice(i, 1);
}
}
return this.__jump;
}
get isJump() {
return this.__jump;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set orientation(orientation = [0, 0, 1, 0]) {
this.__orientation = [orientation];
return this;
}
addOrientation(orientation = [0, 0, 1, 0]) {
if (this.__orientation == null) {
this.__orientation = [];
}
this.__orientation.append(orientation);
return this;
}
removeOrientation(orientation) {
for( let i = 0; i < this.__orientation.length; i++) {
if ( this.__orientation[i] === orientation) {
this.__orientation.splice(i, 1);
}
}
return this.__orientation;
}
get orientation() {
return this.__orientation;
}
set retainUserOffsets(retainUserOffsets = false) {
this.__retainUserOffsets = [retainUserOffsets];
return this;
}
addRetainUserOffsets(retainUserOffsets = false) {
if (this.__retainUserOffsets == null) {
this.__retainUserOffsets = [];
}
this.__retainUserOffsets.append(retainUserOffsets);
return this;
}
removeRetainUserOffsets(retainUserOffsets) {
for( let i = 0; i < this.__retainUserOffsets.length; i++) {
if ( this.__retainUserOffsets[i] === retainUserOffsets) {
this.__retainUserOffsets.splice(i, 1);
}
}
return this.__retainUserOffsets;
}
get isRetainUserOffsets() {
return this.__retainUserOffsets;
}
set set_bind(bind = null) {
this.__bind = [bind];
return this;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DViewportNode extends X3DGroupingNode {
constructor(kwargs = {}) {
super(kwargs);
var children_ = kwargs["children_"] || null;
this.__children_ = children_;
var bboxCenter = kwargs["bboxCenter"] || [0, 0, 0];
this.__bboxCenter = bboxCenter;
var bboxSize = kwargs["bboxSize"] || [-1, -1, -1];
this.__bboxSize = bboxSize;
var children = kwargs["children"] || null;
this.__children = children;
var displayBBox = kwargs["displayBBox"] || false;
this.__displayBBox = displayBBox;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var children_ = kwargs["children_"] || null;
this.__children_ = children_;
var visible = kwargs["visible"] || true;
this.__visible = visible;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
addChildren(children_ = null) {
if (this.__children_ == null) {
this.__children_ = [];
}
this.__children_.append(children_);
return this;
}
set children(children = null) {
this.__children = [children];
return this;
}
addChildren(children = null) {
if (this.__children == null) {
this.__children = [];
}
this.__children.append(children);
return this;
}
removeChildren(children) {
for( let i = 0; i < this.__children.length; i++) {
if ( this.__children[i] === children) {
this.__children.splice(i, 1);
}
}
return this.__children;
}
get children() {
return this.__children;
}
set displayBBox(displayBBox = false) {
this.__displayBBox = [displayBBox];
return this;
}
addDisplayBBox(displayBBox = false) {
if (this.__displayBBox == null) {
this.__displayBBox = [];
}
this.__displayBBox.append(displayBBox);
return this;
}
removeDisplayBBox(displayBBox) {
for( let i = 0; i < this.__displayBBox.length; i++) {
if ( this.__displayBBox[i] === displayBBox) {
this.__displayBBox.splice(i, 1);
}
}
return this.__displayBBox;
}
get isDisplayBBox() {
return this.__displayBBox;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set visible(visible = true) {
this.__visible = [visible];
return this;
}
addVisible(visible = true) {
if (this.__visible == null) {
this.__visible = [];
}
this.__visible.append(visible);
return this;
}
removeVisible(visible) {
for( let i = 0; i < this.__visible.length; i++) {
if ( this.__visible[i] === visible) {
this.__visible.splice(i, 1);
}
}
return this.__visible;
}
get isVisible() {
return this.__visible;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__children_ === null) {
} else if (typeof this.__children_.toXMLNode === 'function') {
str += this.__children_.toXMLNode('children_');
} else if (typeof this.__children_ === 'string') {
str += ' children_="'+this.__children_+'"';
} else if (Array.isArray( this.__children_)) {
if (typeof this.__children_[0].toXMLNode !== 'function') {
str += ' children_="'+this.__children_.join(' ')+'"';
} else {
for (let i in this.__children_) {
if (typeof this.__children_[i].toXMLNode === 'function') {
str += this.__children_[i].toXMLNode('children_');
}
}
}
} else {
str += ' children_="'+this.__children_+'"';
}
if (this.__children === null) {
} else if (typeof this.__children.toXMLNode === 'function') {
str += this.__children.toXMLNode('children');
} else if (typeof this.__children === 'string') {
str += ' children="'+this.__children+'"';
} else if (Array.isArray( this.__children)) {
if (typeof this.__children[0].toXMLNode !== 'function') {
str += ' children="'+this.__children.join(' ')+'"';
} else {
for (let i in this.__children) {
if (typeof this.__children[i].toXMLNode === 'function') {
str += this.__children[i].toXMLNode('children');
}
}
}
} else {
str += ' children="'+this.__children+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__children_ === null) {
} else if (typeof this.__children_.toXMLNode === 'function') {
str += this.__children_.toXMLNode('children_');
} else if (typeof this.__children_ === 'string') {
str += ' children_="'+this.__children_+'"';
} else if (Array.isArray( this.__children_)) {
if (typeof this.__children_[0].toXMLNode !== 'function') {
str += ' children_="'+this.__children_.join(' ')+'"';
} else {
for (let i in this.__children_) {
if (typeof this.__children_[i].toXMLNode === 'function') {
str += this.__children_[i].toXMLNode('children_');
}
}
}
} else {
str += ' children_="'+this.__children_+'"';
}
str += ''
return str;
}
}
export class X3DVolumeDataNode extends X3DChildNode {
constructor(kwargs = {}) {
super(kwargs);
var bboxCenter = kwargs["bboxCenter"] || [0, 0, 0];
this.__bboxCenter = bboxCenter;
var bboxSize = kwargs["bboxSize"] || [-1, -1, -1];
this.__bboxSize = bboxSize;
var dimensions = kwargs["dimensions"] || [1, 1, 1];
if (dimensions == null || dimensions.length <= 0 || Math.min(dimensions) <= 0) {
return null;
}
this.__dimensions = dimensions;
var displayBBox = kwargs["displayBBox"] || false;
this.__displayBBox = displayBBox;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var visible = kwargs["visible"] || true;
this.__visible = visible;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set dimensions(dimensions = [1, 1, 1]) {
if (dimensions == null || dimensions.length <= 0 || Math.min(dimensions) <= 0) {
return null;
}
this.__dimensions = [dimensions];
return this;
}
addDimensions(dimensions = [1, 1, 1]) {
if (dimensions == null || dimensions.length <= 0 || Math.min(dimensions) <= 0) {
return null;
}
if (this.__dimensions == null) {
this.__dimensions = [];
}
this.__dimensions.append(dimensions);
return this;
}
removeDimensions(dimensions) {
for( let i = 0; i < this.__dimensions.length; i++) {
if ( this.__dimensions[i] === dimensions) {
this.__dimensions.splice(i, 1);
}
}
return this.__dimensions;
}
get dimensions() {
return this.__dimensions;
}
set displayBBox(displayBBox = false) {
this.__displayBBox = [displayBBox];
return this;
}
addDisplayBBox(displayBBox = false) {
if (this.__displayBBox == null) {
this.__displayBBox = [];
}
this.__displayBBox.append(displayBBox);
return this;
}
removeDisplayBBox(displayBBox) {
for( let i = 0; i < this.__displayBBox.length; i++) {
if ( this.__displayBBox[i] === displayBBox) {
this.__displayBBox.splice(i, 1);
}
}
return this.__displayBBox;
}
get isDisplayBBox() {
return this.__displayBBox;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set visible(visible = true) {
this.__visible = [visible];
return this;
}
addVisible(visible = true) {
if (this.__visible == null) {
this.__visible = [];
}
this.__visible.append(visible);
return this;
}
removeVisible(visible) {
for( let i = 0; i < this.__visible.length; i++) {
if ( this.__visible[i] === visible) {
this.__visible.splice(i, 1);
}
}
return this.__visible;
}
get isVisible() {
return this.__visible;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class X3DBoundedObject {
constructor(kwargs = {}) {
var bboxCenter = kwargs["bboxCenter"] || [0, 0, 0];
this.__bboxCenter = bboxCenter;
var bboxSize = kwargs["bboxSize"] || [-1, -1, -1];
this.__bboxSize = bboxSize;
var displayBBox = kwargs["displayBBox"] || false;
this.__displayBBox = displayBBox;
var visible = kwargs["visible"] || true;
this.__visible = visible;
}
set displayBBox(displayBBox = false) {
this.__displayBBox = [displayBBox];
return this;
}
addDisplayBBox(displayBBox = false) {
if (this.__displayBBox == null) {
this.__displayBBox = [];
}
this.__displayBBox.append(displayBBox);
return this;
}
removeDisplayBBox(displayBBox) {
for( let i = 0; i < this.__displayBBox.length; i++) {
if ( this.__displayBBox[i] === displayBBox) {
this.__displayBBox.splice(i, 1);
}
}
return this.__displayBBox;
}
get isDisplayBBox() {
return this.__displayBBox;
}
set visible(visible = true) {
this.__visible = [visible];
return this;
}
addVisible(visible = true) {
if (this.__visible == null) {
this.__visible = [];
}
this.__visible.append(visible);
return this;
}
removeVisible(visible) {
for( let i = 0; i < this.__visible.length; i++) {
if ( this.__visible[i] === visible) {
this.__visible.splice(i, 1);
}
}
return this.__visible;
}
get isVisible() {
return this.__visible;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
str += ''
return str;
}
}
export class X3DFogObject {
constructor(kwargs = {}) {
var color = kwargs["color"] || [1, 1, 1];
if (color == null || color.length <= 0 || Math.min(color) < 0) {
return null;
}
if (color == null || color.length <= 0 || Math.max(color) > 1) {
return null;
}
this.__color = color;
var fogType = kwargs["fogType"] || "LINEAR";
if ('LINEAR' === fogType) {
} else if ('EXPONENTIAL' === fogType) {
} else {
return null;
}
this.__fogType = fogType;
var visibilityRange = kwargs["visibilityRange"] || 0;
if (visibilityRange == null || visibilityRange < 0) {
return null;
}
this.__visibilityRange = visibilityRange;
}
set color(color = [1, 1, 1]) {
if (color == null || color.length <= 0 || Math.min(color) < 0) {
return null;
}
if (color == null || color.length <= 0 || Math.max(color) > 1) {
return null;
}
this.__color = [color];
return this;
}
addColor(color = [1, 1, 1]) {
if (color == null || color.length <= 0 || Math.min(color) < 0) {
return null;
}
if (color == null || color.length <= 0 || Math.max(color) > 1) {
return null;
}
if (this.__color == null) {
this.__color = [];
}
this.__color.append(color);
return this;
}
removeColor(color) {
for( let i = 0; i < this.__color.length; i++) {
if ( this.__color[i] === color) {
this.__color.splice(i, 1);
}
}
return this.__color;
}
get color() {
return this.__color;
}
set fogType(fogType = "LINEAR") {
if ('LINEAR' === fogType) {
} else if ('EXPONENTIAL' === fogType) {
} else {
return null;
}
this.__fogType = [fogType];
return this;
}
addFogType(fogType = "LINEAR") {
if ('LINEAR' === fogType) {
} else if ('EXPONENTIAL' === fogType) {
} else {
return null;
}
if (this.__fogType == null) {
this.__fogType = [];
}
this.__fogType.append(fogType);
return this;
}
removeFogType(fogType) {
for( let i = 0; i < this.__fogType.length; i++) {
if ( this.__fogType[i] === fogType) {
this.__fogType.splice(i, 1);
}
}
return this.__fogType;
}
get fogType() {
return this.__fogType;
}
set visibilityRange(visibilityRange = 0) {
if (visibilityRange == null || visibilityRange < 0) {
return null;
}
this.__visibilityRange = [visibilityRange];
return this;
}
addVisibilityRange(visibilityRange = 0) {
if (visibilityRange == null || visibilityRange < 0) {
return null;
}
if (this.__visibilityRange == null) {
this.__visibilityRange = [];
}
this.__visibilityRange.append(visibilityRange);
return this;
}
removeVisibilityRange(visibilityRange) {
for( let i = 0; i < this.__visibilityRange.length; i++) {
if ( this.__visibilityRange[i] === visibilityRange) {
this.__visibilityRange.splice(i, 1);
}
}
return this.__visibilityRange;
}
get visibilityRange() {
return this.__visibilityRange;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
str += ''
return str;
}
}
export class X3DMetadataObject {
constructor(kwargs = {}) {
var name = kwargs["name"] || null;
this.__name = name;
var reference = kwargs["reference"] || null;
this.__reference = reference;
}
set name(name = null) {
this.__name = [name];
return this;
}
addName(name = null) {
if (this.__name == null) {
this.__name = [];
}
this.__name.append(name);
return this;
}
removeName(name) {
for( let i = 0; i < this.__name.length; i++) {
if ( this.__name[i] === name) {
this.__name.splice(i, 1);
}
}
return this.__name;
}
get name() {
return this.__name;
}
set reference(reference = null) {
this.__reference = [reference];
return this;
}
addReference(reference = null) {
if (this.__reference == null) {
this.__reference = [];
}
this.__reference.append(reference);
return this;
}
removeReference(reference) {
for( let i = 0; i < this.__reference.length; i++) {
if ( this.__reference[i] === reference) {
this.__reference.splice(i, 1);
}
}
return this.__reference;
}
get reference() {
return this.__reference;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
str += ''
return str;
}
}
export class X3DPickableObject {
constructor(kwargs = {}) {
var pickable = kwargs["pickable"] || true;
this.__pickable = pickable;
}
set pickable(pickable = true) {
this.__pickable = [pickable];
return this;
}
addPickable(pickable = true) {
if (this.__pickable == null) {
this.__pickable = [];
}
this.__pickable.append(pickable);
return this;
}
removePickable(pickable) {
for( let i = 0; i < this.__pickable.length; i++) {
if ( this.__pickable[i] === pickable) {
this.__pickable.splice(i, 1);
}
}
return this.__pickable;
}
get isPickable() {
return this.__pickable;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
str += ''
return str;
}
}
export class X3DProgrammableShaderObject {
constructor(kwargs = {}) {
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
str += ''
return str;
}
}
export class X3DUrlObject {
constructor(kwargs = {}) {
var url = kwargs["url"] || null;
this.__url = url;
}
set url(url = null) {
this.__url = [url];
return this;
}
addUrl(url = null) {
if (this.__url == null) {
this.__url = [];
}
this.__url.append(url);
return this;
}
removeUrl(url) {
for( let i = 0; i < this.__url.length; i++) {
if ( this.__url[i] === url) {
this.__url.splice(i, 1);
}
}
return this.__url;
}
get url() {
return this.__url;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
str += ''
return str;
}
}
export class Anchor extends X3DGroupingNode {
constructor(kwargs = {}) {
super(kwargs);
var children_ = kwargs["children_"] || null;
this.__children_ = children_;
var bboxCenter = kwargs["bboxCenter"] || [0, 0, 0];
this.__bboxCenter = bboxCenter;
var bboxSize = kwargs["bboxSize"] || [-1, -1, -1];
this.__bboxSize = bboxSize;
var children = kwargs["children"] || null;
this.__children = children;
var description = kwargs["description"] || null;
this.__description = description;
var displayBBox = kwargs["displayBBox"] || false;
this.__displayBBox = displayBBox;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var parameter = kwargs["parameter"] || null;
this.__parameter = parameter;
var children_ = kwargs["children_"] || null;
this.__children_ = children_;
var url = kwargs["url"] || null;
this.__url = url;
var visible = kwargs["visible"] || true;
this.__visible = visible;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
addChildren(children_ = null) {
if (this.__children_ == null) {
this.__children_ = [];
}
this.__children_.append(children_);
return this;
}
set children(children = null) {
this.__children = [children];
return this;
}
addChildren(children = null) {
if (this.__children == null) {
this.__children = [];
}
this.__children.append(children);
return this;
}
removeChildren(children) {
for( let i = 0; i < this.__children.length; i++) {
if ( this.__children[i] === children) {
this.__children.splice(i, 1);
}
}
return this.__children;
}
get children() {
return this.__children;
}
set description(description = null) {
this.__description = [description];
return this;
}
addDescription(description = null) {
if (this.__description == null) {
this.__description = [];
}
this.__description.append(description);
return this;
}
removeDescription(description) {
for( let i = 0; i < this.__description.length; i++) {
if ( this.__description[i] === description) {
this.__description.splice(i, 1);
}
}
return this.__description;
}
get description() {
return this.__description;
}
set displayBBox(displayBBox = false) {
this.__displayBBox = [displayBBox];
return this;
}
addDisplayBBox(displayBBox = false) {
if (this.__displayBBox == null) {
this.__displayBBox = [];
}
this.__displayBBox.append(displayBBox);
return this;
}
removeDisplayBBox(displayBBox) {
for( let i = 0; i < this.__displayBBox.length; i++) {
if ( this.__displayBBox[i] === displayBBox) {
this.__displayBBox.splice(i, 1);
}
}
return this.__displayBBox;
}
get isDisplayBBox() {
return this.__displayBBox;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set parameter(parameter = null) {
this.__parameter = [parameter];
return this;
}
addParameter(parameter = null) {
if (this.__parameter == null) {
this.__parameter = [];
}
this.__parameter.append(parameter);
return this;
}
removeParameter(parameter) {
for( let i = 0; i < this.__parameter.length; i++) {
if ( this.__parameter[i] === parameter) {
this.__parameter.splice(i, 1);
}
}
return this.__parameter;
}
get parameter() {
return this.__parameter;
}
set url(url = null) {
this.__url = [url];
return this;
}
addUrl(url = null) {
if (this.__url == null) {
this.__url = [];
}
this.__url.append(url);
return this;
}
removeUrl(url) {
for( let i = 0; i < this.__url.length; i++) {
if ( this.__url[i] === url) {
this.__url.splice(i, 1);
}
}
return this.__url;
}
get url() {
return this.__url;
}
set visible(visible = true) {
this.__visible = [visible];
return this;
}
addVisible(visible = true) {
if (this.__visible == null) {
this.__visible = [];
}
this.__visible.append(visible);
return this;
}
removeVisible(visible) {
for( let i = 0; i < this.__visible.length; i++) {
if ( this.__visible[i] === visible) {
this.__visible.splice(i, 1);
}
}
return this.__visible;
}
get isVisible() {
return this.__visible;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__children_ === null) {
} else if (typeof this.__children_.toXMLNode === 'function') {
str += this.__children_.toXMLNode('children_');
} else if (typeof this.__children_ === 'string') {
str += ' children_="'+this.__children_+'"';
} else if (Array.isArray( this.__children_)) {
if (typeof this.__children_[0].toXMLNode !== 'function') {
str += ' children_="'+this.__children_.join(' ')+'"';
} else {
for (let i in this.__children_) {
if (typeof this.__children_[i].toXMLNode === 'function') {
str += this.__children_[i].toXMLNode('children_');
}
}
}
} else {
str += ' children_="'+this.__children_+'"';
}
if (this.__children === null) {
} else if (typeof this.__children.toXMLNode === 'function') {
str += this.__children.toXMLNode('children');
} else if (typeof this.__children === 'string') {
str += ' children="'+this.__children+'"';
} else if (Array.isArray( this.__children)) {
if (typeof this.__children[0].toXMLNode !== 'function') {
str += ' children="'+this.__children.join(' ')+'"';
} else {
for (let i in this.__children) {
if (typeof this.__children[i].toXMLNode === 'function') {
str += this.__children[i].toXMLNode('children');
}
}
}
} else {
str += ' children="'+this.__children+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__children_ === null) {
} else if (typeof this.__children_.toXMLNode === 'function') {
str += this.__children_.toXMLNode('children_');
} else if (typeof this.__children_ === 'string') {
str += ' children_="'+this.__children_+'"';
} else if (Array.isArray( this.__children_)) {
if (typeof this.__children_[0].toXMLNode !== 'function') {
str += ' children_="'+this.__children_.join(' ')+'"';
} else {
for (let i in this.__children_) {
if (typeof this.__children_[i].toXMLNode === 'function') {
str += this.__children_[i].toXMLNode('children_');
}
}
}
} else {
str += ' children_="'+this.__children_+'"';
}
str += ''
return str;
}
}
export class Appearance extends X3DAppearanceNode {
constructor(kwargs = {}) {
super(kwargs);
var fillProperties = kwargs["fillProperties"] || null;
this.__fillProperties = fillProperties;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var lineProperties = kwargs["lineProperties"] || null;
this.__lineProperties = lineProperties;
var material = kwargs["material"] || null;
this.__material = material;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var pointProperties = kwargs["pointProperties"] || null;
this.__pointProperties = pointProperties;
var shaders = kwargs["shaders"] || null;
this.__shaders = shaders;
var texture = kwargs["texture"] || null;
this.__texture = texture;
var textureTransform = kwargs["textureTransform"] || null;
this.__textureTransform = textureTransform;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set fillProperties(fillProperties = null) {
this.__fillProperties = [fillProperties];
return this;
}
addFillProperties(fillProperties = null) {
if (this.__fillProperties == null) {
this.__fillProperties = [];
}
this.__fillProperties.append(fillProperties);
return this;
}
removeFillProperties(fillProperties) {
for( let i = 0; i < this.__fillProperties.length; i++) {
if ( this.__fillProperties[i] === fillProperties) {
this.__fillProperties.splice(i, 1);
}
}
return this.__fillProperties;
}
get fillProperties() {
return this.__fillProperties;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set lineProperties(lineProperties = null) {
this.__lineProperties = [lineProperties];
return this;
}
addLineProperties(lineProperties = null) {
if (this.__lineProperties == null) {
this.__lineProperties = [];
}
this.__lineProperties.append(lineProperties);
return this;
}
removeLineProperties(lineProperties) {
for( let i = 0; i < this.__lineProperties.length; i++) {
if ( this.__lineProperties[i] === lineProperties) {
this.__lineProperties.splice(i, 1);
}
}
return this.__lineProperties;
}
get lineProperties() {
return this.__lineProperties;
}
set material(material = null) {
this.__material = [material];
return this;
}
addMaterial(material = null) {
if (this.__material == null) {
this.__material = [];
}
this.__material.append(material);
return this;
}
removeMaterial(material) {
for( let i = 0; i < this.__material.length; i++) {
if ( this.__material[i] === material) {
this.__material.splice(i, 1);
}
}
return this.__material;
}
get material() {
return this.__material;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set pointProperties(pointProperties = null) {
this.__pointProperties = [pointProperties];
return this;
}
addPointProperties(pointProperties = null) {
if (this.__pointProperties == null) {
this.__pointProperties = [];
}
this.__pointProperties.append(pointProperties);
return this;
}
removePointProperties(pointProperties) {
for( let i = 0; i < this.__pointProperties.length; i++) {
if ( this.__pointProperties[i] === pointProperties) {
this.__pointProperties.splice(i, 1);
}
}
return this.__pointProperties;
}
get pointProperties() {
return this.__pointProperties;
}
set shaders(shaders = null) {
this.__shaders = [shaders];
return this;
}
addShaders(shaders = null) {
if (this.__shaders == null) {
this.__shaders = [];
}
this.__shaders.append(shaders);
return this;
}
removeShaders(shaders) {
for( let i = 0; i < this.__shaders.length; i++) {
if ( this.__shaders[i] === shaders) {
this.__shaders.splice(i, 1);
}
}
return this.__shaders;
}
get shaders() {
return this.__shaders;
}
set texture(texture = null) {
this.__texture = [texture];
return this;
}
addTexture(texture = null) {
if (this.__texture == null) {
this.__texture = [];
}
this.__texture.append(texture);
return this;
}
removeTexture(texture) {
for( let i = 0; i < this.__texture.length; i++) {
if ( this.__texture[i] === texture) {
this.__texture.splice(i, 1);
}
}
return this.__texture;
}
get texture() {
return this.__texture;
}
set textureTransform(textureTransform = null) {
this.__textureTransform = [textureTransform];
return this;
}
addTextureTransform(textureTransform = null) {
if (this.__textureTransform == null) {
this.__textureTransform = [];
}
this.__textureTransform.append(textureTransform);
return this;
}
removeTextureTransform(textureTransform) {
for( let i = 0; i < this.__textureTransform.length; i++) {
if ( this.__textureTransform[i] === textureTransform) {
this.__textureTransform.splice(i, 1);
}
}
return this.__textureTransform;
}
get textureTransform() {
return this.__textureTransform;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__fillProperties === null) {
} else if (typeof this.__fillProperties.toXMLNode === 'function') {
str += this.__fillProperties.toXMLNode('fillProperties');
} else if (typeof this.__fillProperties === 'string') {
str += ' fillProperties="'+this.__fillProperties+'"';
} else if (Array.isArray( this.__fillProperties)) {
if (typeof this.__fillProperties[0].toXMLNode !== 'function') {
str += ' fillProperties="'+this.__fillProperties.join(' ')+'"';
} else {
for (let i in this.__fillProperties) {
if (typeof this.__fillProperties[i].toXMLNode === 'function') {
str += this.__fillProperties[i].toXMLNode('fillProperties');
}
}
}
} else {
str += ' fillProperties="'+this.__fillProperties+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__lineProperties === null) {
} else if (typeof this.__lineProperties.toXMLNode === 'function') {
str += this.__lineProperties.toXMLNode('lineProperties');
} else if (typeof this.__lineProperties === 'string') {
str += ' lineProperties="'+this.__lineProperties+'"';
} else if (Array.isArray( this.__lineProperties)) {
if (typeof this.__lineProperties[0].toXMLNode !== 'function') {
str += ' lineProperties="'+this.__lineProperties.join(' ')+'"';
} else {
for (let i in this.__lineProperties) {
if (typeof this.__lineProperties[i].toXMLNode === 'function') {
str += this.__lineProperties[i].toXMLNode('lineProperties');
}
}
}
} else {
str += ' lineProperties="'+this.__lineProperties+'"';
}
if (this.__material === null) {
} else if (typeof this.__material.toXMLNode === 'function') {
str += this.__material.toXMLNode('material');
} else if (typeof this.__material === 'string') {
str += ' material="'+this.__material+'"';
} else if (Array.isArray( this.__material)) {
if (typeof this.__material[0].toXMLNode !== 'function') {
str += ' material="'+this.__material.join(' ')+'"';
} else {
for (let i in this.__material) {
if (typeof this.__material[i].toXMLNode === 'function') {
str += this.__material[i].toXMLNode('material');
}
}
}
} else {
str += ' material="'+this.__material+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__pointProperties === null) {
} else if (typeof this.__pointProperties.toXMLNode === 'function') {
str += this.__pointProperties.toXMLNode('pointProperties');
} else if (typeof this.__pointProperties === 'string') {
str += ' pointProperties="'+this.__pointProperties+'"';
} else if (Array.isArray( this.__pointProperties)) {
if (typeof this.__pointProperties[0].toXMLNode !== 'function') {
str += ' pointProperties="'+this.__pointProperties.join(' ')+'"';
} else {
for (let i in this.__pointProperties) {
if (typeof this.__pointProperties[i].toXMLNode === 'function') {
str += this.__pointProperties[i].toXMLNode('pointProperties');
}
}
}
} else {
str += ' pointProperties="'+this.__pointProperties+'"';
}
if (this.__shaders === null) {
} else if (typeof this.__shaders.toXMLNode === 'function') {
str += this.__shaders.toXMLNode('shaders');
} else if (typeof this.__shaders === 'string') {
str += ' shaders="'+this.__shaders+'"';
} else if (Array.isArray( this.__shaders)) {
if (typeof this.__shaders[0].toXMLNode !== 'function') {
str += ' shaders="'+this.__shaders.join(' ')+'"';
} else {
for (let i in this.__shaders) {
if (typeof this.__shaders[i].toXMLNode === 'function') {
str += this.__shaders[i].toXMLNode('shaders');
}
}
}
} else {
str += ' shaders="'+this.__shaders+'"';
}
if (this.__texture === null) {
} else if (typeof this.__texture.toXMLNode === 'function') {
str += this.__texture.toXMLNode('texture');
} else if (typeof this.__texture === 'string') {
str += ' texture="'+this.__texture+'"';
} else if (Array.isArray( this.__texture)) {
if (typeof this.__texture[0].toXMLNode !== 'function') {
str += ' texture="'+this.__texture.join(' ')+'"';
} else {
for (let i in this.__texture) {
if (typeof this.__texture[i].toXMLNode === 'function') {
str += this.__texture[i].toXMLNode('texture');
}
}
}
} else {
str += ' texture="'+this.__texture+'"';
}
if (this.__textureTransform === null) {
} else if (typeof this.__textureTransform.toXMLNode === 'function') {
str += this.__textureTransform.toXMLNode('textureTransform');
} else if (typeof this.__textureTransform === 'string') {
str += ' textureTransform="'+this.__textureTransform+'"';
} else if (Array.isArray( this.__textureTransform)) {
if (typeof this.__textureTransform[0].toXMLNode !== 'function') {
str += ' textureTransform="'+this.__textureTransform.join(' ')+'"';
} else {
for (let i in this.__textureTransform) {
if (typeof this.__textureTransform[i].toXMLNode === 'function') {
str += this.__textureTransform[i].toXMLNode('textureTransform');
}
}
}
} else {
str += ' textureTransform="'+this.__textureTransform+'"';
}
str += ''
return str;
}
}
export class Arc2D extends X3DGeometryNode {
constructor(kwargs = {}) {
super(kwargs);
var endAngle = kwargs["endAngle"] || 1.570796;
if (endAngle == null || endAngle <= -6.2832) {
return null;
}
if (endAngle == null || endAngle >= 6.2832) {
return null;
}
this.__endAngle = endAngle;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var radius = kwargs["radius"] || 1;
if (radius == null || radius <= 0) {
return null;
}
this.__radius = radius;
var startAngle = kwargs["startAngle"] || 0;
if (startAngle == null || startAngle <= -6.2832) {
return null;
}
if (startAngle == null || startAngle >= 6.2832) {
return null;
}
this.__startAngle = startAngle;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class ArcClose2D extends X3DGeometryNode {
constructor(kwargs = {}) {
super(kwargs);
var closureType = kwargs["closureType"] || "PIE";
if ('PIE' === closureType) {
} else if ('CHORD' === closureType) {
} else {
return null;
}
this.__closureType = closureType;
var endAngle = kwargs["endAngle"] || 1.570796;
if (endAngle == null || endAngle <= -6.2832) {
return null;
}
if (endAngle == null || endAngle >= 6.2832) {
return null;
}
this.__endAngle = endAngle;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var radius = kwargs["radius"] || 1;
if (radius == null || radius <= 0) {
return null;
}
this.__radius = radius;
var solid = kwargs["solid"] || false;
this.__solid = solid;
var startAngle = kwargs["startAngle"] || 0;
if (startAngle == null || startAngle <= -6.2832) {
return null;
}
if (startAngle == null || startAngle >= 6.2832) {
return null;
}
this.__startAngle = startAngle;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class AudioClip extends X3DSoundSourceNode {
constructor(kwargs = {}) {
super(kwargs);
var description = kwargs["description"] || null;
this.__description = description;
var duration_changed = kwargs["duration_changed"] || null;
if (duration_changed == null || duration_changed < -1) {
return null;
}
this.__duration_changed = duration_changed;
var elapsedTime = kwargs["elapsedTime"] || null;
if (elapsedTime == null || elapsedTime < 0) {
return null;
}
this.__elapsedTime = elapsedTime;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var Paused = kwargs["Paused"] || null;
this.__Paused = Paused;
var loop = kwargs["loop"] || false;
this.__loop = loop;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var pauseTime = kwargs["pauseTime"] || 0;
this.__pauseTime = pauseTime;
var pitch = kwargs["pitch"] || 1.0;
if (pitch == null || pitch <= 0) {
return null;
}
this.__pitch = pitch;
var resumeTime = kwargs["resumeTime"] || 0;
this.__resumeTime = resumeTime;
var startTime = kwargs["startTime"] || 0;
this.__startTime = startTime;
var stopTime = kwargs["stopTime"] || 0;
this.__stopTime = stopTime;
var url = kwargs["url"] || null;
this.__url = url;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set description(description = null) {
this.__description = [description];
return this;
}
addDescription(description = null) {
if (this.__description == null) {
this.__description = [];
}
this.__description.append(description);
return this;
}
removeDescription(description) {
for( let i = 0; i < this.__description.length; i++) {
if ( this.__description[i] === description) {
this.__description.splice(i, 1);
}
}
return this.__description;
}
get description() {
return this.__description;
}
removeduration_changed(duration_changed) {
for( let i = 0; i < this.__duration_changed.length; i++) {
if ( this.__duration_changed[i] === duration_changed) {
this.__duration_changed.splice(i, 1);
}
}
return this.__duration_changed;
}
get duration_changed() {
return this.__duration_changed;
}
removeElapsedTime(elapsedTime) {
for( let i = 0; i < this.__elapsedTime.length; i++) {
if ( this.__elapsedTime[i] === elapsedTime) {
this.__elapsedTime.splice(i, 1);
}
}
return this.__elapsedTime;
}
get elapsedTime() {
return this.__elapsedTime;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
get isPaused() {
return this.__Paused;
}
set loop(loop = false) {
this.__loop = [loop];
return this;
}
addLoop(loop = false) {
if (this.__loop == null) {
this.__loop = [];
}
this.__loop.append(loop);
return this;
}
removeLoop(loop) {
for( let i = 0; i < this.__loop.length; i++) {
if ( this.__loop[i] === loop) {
this.__loop.splice(i, 1);
}
}
return this.__loop;
}
get isLoop() {
return this.__loop;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set pauseTime(pauseTime = 0) {
this.__pauseTime = [pauseTime];
return this;
}
addPauseTime(pauseTime = 0) {
if (this.__pauseTime == null) {
this.__pauseTime = [];
}
this.__pauseTime.append(pauseTime);
return this;
}
removePauseTime(pauseTime) {
for( let i = 0; i < this.__pauseTime.length; i++) {
if ( this.__pauseTime[i] === pauseTime) {
this.__pauseTime.splice(i, 1);
}
}
return this.__pauseTime;
}
get pauseTime() {
return this.__pauseTime;
}
set pitch(pitch = 1.0) {
if (pitch == null || pitch <= 0) {
return null;
}
this.__pitch = [pitch];
return this;
}
addPitch(pitch = 1.0) {
if (pitch == null || pitch <= 0) {
return null;
}
if (this.__pitch == null) {
this.__pitch = [];
}
this.__pitch.append(pitch);
return this;
}
removePitch(pitch) {
for( let i = 0; i < this.__pitch.length; i++) {
if ( this.__pitch[i] === pitch) {
this.__pitch.splice(i, 1);
}
}
return this.__pitch;
}
get pitch() {
return this.__pitch;
}
set resumeTime(resumeTime = 0) {
this.__resumeTime = [resumeTime];
return this;
}
addResumeTime(resumeTime = 0) {
if (this.__resumeTime == null) {
this.__resumeTime = [];
}
this.__resumeTime.append(resumeTime);
return this;
}
removeResumeTime(resumeTime) {
for( let i = 0; i < this.__resumeTime.length; i++) {
if ( this.__resumeTime[i] === resumeTime) {
this.__resumeTime.splice(i, 1);
}
}
return this.__resumeTime;
}
get resumeTime() {
return this.__resumeTime;
}
set startTime(startTime = 0) {
this.__startTime = [startTime];
return this;
}
addStartTime(startTime = 0) {
if (this.__startTime == null) {
this.__startTime = [];
}
this.__startTime.append(startTime);
return this;
}
removeStartTime(startTime) {
for( let i = 0; i < this.__startTime.length; i++) {
if ( this.__startTime[i] === startTime) {
this.__startTime.splice(i, 1);
}
}
return this.__startTime;
}
get startTime() {
return this.__startTime;
}
set stopTime(stopTime = 0) {
this.__stopTime = [stopTime];
return this;
}
addStopTime(stopTime = 0) {
if (this.__stopTime == null) {
this.__stopTime = [];
}
this.__stopTime.append(stopTime);
return this;
}
removeStopTime(stopTime) {
for( let i = 0; i < this.__stopTime.length; i++) {
if ( this.__stopTime[i] === stopTime) {
this.__stopTime.splice(i, 1);
}
}
return this.__stopTime;
}
get stopTime() {
return this.__stopTime;
}
set url(url = null) {
this.__url = [url];
return this;
}
addUrl(url = null) {
if (this.__url == null) {
this.__url = [];
}
this.__url.append(url);
return this;
}
removeUrl(url) {
for( let i = 0; i < this.__url.length; i++) {
if ( this.__url[i] === url) {
this.__url.splice(i, 1);
}
}
return this.__url;
}
get url() {
return this.__url;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class Background extends X3DBackgroundNode {
constructor(kwargs = {}) {
super(kwargs);
var backUrl = kwargs["backUrl"] || null;
this.__backUrl = backUrl;
var bindTime = kwargs["bindTime"] || null;
this.__bindTime = bindTime;
var bottomUrl = kwargs["bottomUrl"] || null;
this.__bottomUrl = bottomUrl;
var frontUrl = kwargs["frontUrl"] || null;
this.__frontUrl = frontUrl;
var groundAngle = kwargs["groundAngle"] || null;
if (groundAngle == null || groundAngle.length <= 0 || Math.min(groundAngle) < 0) {
return null;
}
if (groundAngle == null || groundAngle.length <= 0 || Math.max(groundAngle) > 1.5708) {
return null;
}
this.__groundAngle = groundAngle;
var groundColor = kwargs["groundColor"] || null;
if (groundColor == null || groundColor.length <= 0 || Math.min(groundColor) < 0) {
return null;
}
if (groundColor == null || groundColor.length <= 0 || Math.max(groundColor) > 1) {
return null;
}
this.__groundColor = groundColor;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Bound = kwargs["Bound"] || null;
this.__Bound = Bound;
var leftUrl = kwargs["leftUrl"] || null;
this.__leftUrl = leftUrl;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var rightUrl = kwargs["rightUrl"] || null;
this.__rightUrl = rightUrl;
var bind = kwargs["bind"] || null;
this.__bind = bind;
var skyAngle = kwargs["skyAngle"] || null;
if (skyAngle == null || skyAngle.length <= 0 || Math.min(skyAngle) < 0) {
return null;
}
if (skyAngle == null || skyAngle.length <= 0 || Math.max(skyAngle) > 3.1416) {
return null;
}
this.__skyAngle = skyAngle;
var skyColor = kwargs["skyColor"] || [0, 0, 0];
if (skyColor == null || skyColor.length <= 0 || Math.min(skyColor) < 0) {
return null;
}
if (skyColor == null || skyColor.length <= 0 || Math.max(skyColor) > 1) {
return null;
}
this.__skyColor = skyColor;
var topUrl = kwargs["topUrl"] || null;
this.__topUrl = topUrl;
var transparency = kwargs["transparency"] || 0;
if (transparency == null || transparency < 0) {
return null;
}
if (transparency == null || transparency > 1) {
return null;
}
this.__transparency = transparency;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set backUrl(backUrl = null) {
this.__backUrl = [backUrl];
return this;
}
addBackUrl(backUrl = null) {
if (this.__backUrl == null) {
this.__backUrl = [];
}
this.__backUrl.append(backUrl);
return this;
}
removeBackUrl(backUrl) {
for( let i = 0; i < this.__backUrl.length; i++) {
if ( this.__backUrl[i] === backUrl) {
this.__backUrl.splice(i, 1);
}
}
return this.__backUrl;
}
get backUrl() {
return this.__backUrl;
}
removeBindTime(bindTime) {
for( let i = 0; i < this.__bindTime.length; i++) {
if ( this.__bindTime[i] === bindTime) {
this.__bindTime.splice(i, 1);
}
}
return this.__bindTime;
}
get bindTime() {
return this.__bindTime;
}
set bottomUrl(bottomUrl = null) {
this.__bottomUrl = [bottomUrl];
return this;
}
addBottomUrl(bottomUrl = null) {
if (this.__bottomUrl == null) {
this.__bottomUrl = [];
}
this.__bottomUrl.append(bottomUrl);
return this;
}
removeBottomUrl(bottomUrl) {
for( let i = 0; i < this.__bottomUrl.length; i++) {
if ( this.__bottomUrl[i] === bottomUrl) {
this.__bottomUrl.splice(i, 1);
}
}
return this.__bottomUrl;
}
get bottomUrl() {
return this.__bottomUrl;
}
set frontUrl(frontUrl = null) {
this.__frontUrl = [frontUrl];
return this;
}
addFrontUrl(frontUrl = null) {
if (this.__frontUrl == null) {
this.__frontUrl = [];
}
this.__frontUrl.append(frontUrl);
return this;
}
removeFrontUrl(frontUrl) {
for( let i = 0; i < this.__frontUrl.length; i++) {
if ( this.__frontUrl[i] === frontUrl) {
this.__frontUrl.splice(i, 1);
}
}
return this.__frontUrl;
}
get frontUrl() {
return this.__frontUrl;
}
set groundAngle(groundAngle = null) {
if (groundAngle == null || groundAngle.length <= 0 || Math.min(groundAngle) < 0) {
return null;
}
if (groundAngle == null || groundAngle.length <= 0 || Math.max(groundAngle) > 1.5708) {
return null;
}
this.__groundAngle = [groundAngle];
return this;
}
addGroundAngle(groundAngle = null) {
if (groundAngle == null || groundAngle.length <= 0 || Math.min(groundAngle) < 0) {
return null;
}
if (groundAngle == null || groundAngle.length <= 0 || Math.max(groundAngle) > 1.5708) {
return null;
}
if (this.__groundAngle == null) {
this.__groundAngle = [];
}
this.__groundAngle.append(groundAngle);
return this;
}
removeGroundAngle(groundAngle) {
for( let i = 0; i < this.__groundAngle.length; i++) {
if ( this.__groundAngle[i] === groundAngle) {
this.__groundAngle.splice(i, 1);
}
}
return this.__groundAngle;
}
get groundAngle() {
return this.__groundAngle;
}
set groundColor(groundColor = null) {
if (groundColor == null || groundColor.length <= 0 || Math.min(groundColor) < 0) {
return null;
}
if (groundColor == null || groundColor.length <= 0 || Math.max(groundColor) > 1) {
return null;
}
this.__groundColor = [groundColor];
return this;
}
addGroundColor(groundColor = null) {
if (groundColor == null || groundColor.length <= 0 || Math.min(groundColor) < 0) {
return null;
}
if (groundColor == null || groundColor.length <= 0 || Math.max(groundColor) > 1) {
return null;
}
if (this.__groundColor == null) {
this.__groundColor = [];
}
this.__groundColor.append(groundColor);
return this;
}
removeGroundColor(groundColor) {
for( let i = 0; i < this.__groundColor.length; i++) {
if ( this.__groundColor[i] === groundColor) {
this.__groundColor.splice(i, 1);
}
}
return this.__groundColor;
}
get groundColor() {
return this.__groundColor;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isBound() {
return this.__Bound;
}
set leftUrl(leftUrl = null) {
this.__leftUrl = [leftUrl];
return this;
}
addLeftUrl(leftUrl = null) {
if (this.__leftUrl == null) {
this.__leftUrl = [];
}
this.__leftUrl.append(leftUrl);
return this;
}
removeLeftUrl(leftUrl) {
for( let i = 0; i < this.__leftUrl.length; i++) {
if ( this.__leftUrl[i] === leftUrl) {
this.__leftUrl.splice(i, 1);
}
}
return this.__leftUrl;
}
get leftUrl() {
return this.__leftUrl;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set rightUrl(rightUrl = null) {
this.__rightUrl = [rightUrl];
return this;
}
addRightUrl(rightUrl = null) {
if (this.__rightUrl == null) {
this.__rightUrl = [];
}
this.__rightUrl.append(rightUrl);
return this;
}
removeRightUrl(rightUrl) {
for( let i = 0; i < this.__rightUrl.length; i++) {
if ( this.__rightUrl[i] === rightUrl) {
this.__rightUrl.splice(i, 1);
}
}
return this.__rightUrl;
}
get rightUrl() {
return this.__rightUrl;
}
set set_bind(bind = null) {
this.__bind = [bind];
return this;
}
set skyAngle(skyAngle = null) {
if (skyAngle == null || skyAngle.length <= 0 || Math.min(skyAngle) < 0) {
return null;
}
if (skyAngle == null || skyAngle.length <= 0 || Math.max(skyAngle) > 3.1416) {
return null;
}
this.__skyAngle = [skyAngle];
return this;
}
addSkyAngle(skyAngle = null) {
if (skyAngle == null || skyAngle.length <= 0 || Math.min(skyAngle) < 0) {
return null;
}
if (skyAngle == null || skyAngle.length <= 0 || Math.max(skyAngle) > 3.1416) {
return null;
}
if (this.__skyAngle == null) {
this.__skyAngle = [];
}
this.__skyAngle.append(skyAngle);
return this;
}
removeSkyAngle(skyAngle) {
for( let i = 0; i < this.__skyAngle.length; i++) {
if ( this.__skyAngle[i] === skyAngle) {
this.__skyAngle.splice(i, 1);
}
}
return this.__skyAngle;
}
get skyAngle() {
return this.__skyAngle;
}
set skyColor(skyColor = [0, 0, 0]) {
if (skyColor == null || skyColor.length <= 0 || Math.min(skyColor) < 0) {
return null;
}
if (skyColor == null || skyColor.length <= 0 || Math.max(skyColor) > 1) {
return null;
}
this.__skyColor = [skyColor];
return this;
}
addSkyColor(skyColor = [0, 0, 0]) {
if (skyColor == null || skyColor.length <= 0 || Math.min(skyColor) < 0) {
return null;
}
if (skyColor == null || skyColor.length <= 0 || Math.max(skyColor) > 1) {
return null;
}
if (this.__skyColor == null) {
this.__skyColor = [];
}
this.__skyColor.append(skyColor);
return this;
}
removeSkyColor(skyColor) {
for( let i = 0; i < this.__skyColor.length; i++) {
if ( this.__skyColor[i] === skyColor) {
this.__skyColor.splice(i, 1);
}
}
return this.__skyColor;
}
get skyColor() {
return this.__skyColor;
}
set topUrl(topUrl = null) {
this.__topUrl = [topUrl];
return this;
}
addTopUrl(topUrl = null) {
if (this.__topUrl == null) {
this.__topUrl = [];
}
this.__topUrl.append(topUrl);
return this;
}
removeTopUrl(topUrl) {
for( let i = 0; i < this.__topUrl.length; i++) {
if ( this.__topUrl[i] === topUrl) {
this.__topUrl.splice(i, 1);
}
}
return this.__topUrl;
}
get topUrl() {
return this.__topUrl;
}
set transparency(transparency = 0) {
if (transparency == null || transparency < 0) {
return null;
}
if (transparency == null || transparency > 1) {
return null;
}
this.__transparency = [transparency];
return this;
}
addTransparency(transparency = 0) {
if (transparency == null || transparency < 0) {
return null;
}
if (transparency == null || transparency > 1) {
return null;
}
if (this.__transparency == null) {
this.__transparency = [];
}
this.__transparency.append(transparency);
return this;
}
removeTransparency(transparency) {
for( let i = 0; i < this.__transparency.length; i++) {
if ( this.__transparency[i] === transparency) {
this.__transparency.splice(i, 1);
}
}
return this.__transparency;
}
get transparency() {
return this.__transparency;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class BallJoint extends X3DRigidJointNode {
constructor(kwargs = {}) {
super(kwargs);
var anchorPoint = kwargs["anchorPoint"] || [0, 0, 0];
this.__anchorPoint = anchorPoint;
var body1 = kwargs["body1"] || null;
this.__body1 = body1;
var body1AnchorPoint = kwargs["body1AnchorPoint"] || null;
this.__body1AnchorPoint = body1AnchorPoint;
var body2 = kwargs["body2"] || null;
this.__body2 = body2;
var body2AnchorPoint = kwargs["body2AnchorPoint"] || null;
this.__body2AnchorPoint = body2AnchorPoint;
var forceOutput = kwargs["forceOutput"] || ["NONE"];
this.__forceOutput = forceOutput;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set anchorPoint(anchorPoint = [0, 0, 0]) {
this.__anchorPoint = [anchorPoint];
return this;
}
addAnchorPoint(anchorPoint = [0, 0, 0]) {
if (this.__anchorPoint == null) {
this.__anchorPoint = [];
}
this.__anchorPoint.append(anchorPoint);
return this;
}
removeAnchorPoint(anchorPoint) {
for( let i = 0; i < this.__anchorPoint.length; i++) {
if ( this.__anchorPoint[i] === anchorPoint) {
this.__anchorPoint.splice(i, 1);
}
}
return this.__anchorPoint;
}
get anchorPoint() {
return this.__anchorPoint;
}
set body1(body1 = null) {
this.__body1 = [body1];
return this;
}
addBody1(body1 = null) {
if (this.__body1 == null) {
this.__body1 = [];
}
this.__body1.append(body1);
return this;
}
removeBody1(body1) {
for( let i = 0; i < this.__body1.length; i++) {
if ( this.__body1[i] === body1) {
this.__body1.splice(i, 1);
}
}
return this.__body1;
}
get body1() {
return this.__body1;
}
removeBody1AnchorPoint(body1AnchorPoint) {
for( let i = 0; i < this.__body1AnchorPoint.length; i++) {
if ( this.__body1AnchorPoint[i] === body1AnchorPoint) {
this.__body1AnchorPoint.splice(i, 1);
}
}
return this.__body1AnchorPoint;
}
get body1AnchorPoint() {
return this.__body1AnchorPoint;
}
set body2(body2 = null) {
this.__body2 = [body2];
return this;
}
addBody2(body2 = null) {
if (this.__body2 == null) {
this.__body2 = [];
}
this.__body2.append(body2);
return this;
}
removeBody2(body2) {
for( let i = 0; i < this.__body2.length; i++) {
if ( this.__body2[i] === body2) {
this.__body2.splice(i, 1);
}
}
return this.__body2;
}
get body2() {
return this.__body2;
}
removeBody2AnchorPoint(body2AnchorPoint) {
for( let i = 0; i < this.__body2AnchorPoint.length; i++) {
if ( this.__body2AnchorPoint[i] === body2AnchorPoint) {
this.__body2AnchorPoint.splice(i, 1);
}
}
return this.__body2AnchorPoint;
}
get body2AnchorPoint() {
return this.__body2AnchorPoint;
}
set forceOutput(forceOutput = ["NONE"]) {
this.__forceOutput = [forceOutput];
return this;
}
addForceOutput(forceOutput = ["NONE"]) {
if (this.__forceOutput == null) {
this.__forceOutput = [];
}
this.__forceOutput.append(forceOutput);
return this;
}
removeForceOutput(forceOutput) {
for( let i = 0; i < this.__forceOutput.length; i++) {
if ( this.__forceOutput[i] === forceOutput) {
this.__forceOutput.splice(i, 1);
}
}
return this.__forceOutput;
}
get forceOutput() {
return this.__forceOutput;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__body1 === null) {
} else if (typeof this.__body1.toXMLNode === 'function') {
str += this.__body1.toXMLNode('body1');
} else if (typeof this.__body1 === 'string') {
str += ' body1="'+this.__body1+'"';
} else if (Array.isArray( this.__body1)) {
if (typeof this.__body1[0].toXMLNode !== 'function') {
str += ' body1="'+this.__body1.join(' ')+'"';
} else {
for (let i in this.__body1) {
if (typeof this.__body1[i].toXMLNode === 'function') {
str += this.__body1[i].toXMLNode('body1');
}
}
}
} else {
str += ' body1="'+this.__body1+'"';
}
if (this.__body2 === null) {
} else if (typeof this.__body2.toXMLNode === 'function') {
str += this.__body2.toXMLNode('body2');
} else if (typeof this.__body2 === 'string') {
str += ' body2="'+this.__body2+'"';
} else if (Array.isArray( this.__body2)) {
if (typeof this.__body2[0].toXMLNode !== 'function') {
str += ' body2="'+this.__body2.join(' ')+'"';
} else {
for (let i in this.__body2) {
if (typeof this.__body2[i].toXMLNode === 'function') {
str += this.__body2[i].toXMLNode('body2');
}
}
}
} else {
str += ' body2="'+this.__body2+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class Billboard extends X3DGroupingNode {
constructor(kwargs = {}) {
super(kwargs);
var children_ = kwargs["children_"] || null;
this.__children_ = children_;
var axisOfRotation = kwargs["axisOfRotation"] || [0, 1, 0];
this.__axisOfRotation = axisOfRotation;
var bboxCenter = kwargs["bboxCenter"] || [0, 0, 0];
this.__bboxCenter = bboxCenter;
var bboxSize = kwargs["bboxSize"] || [-1, -1, -1];
this.__bboxSize = bboxSize;
var children = kwargs["children"] || null;
this.__children = children;
var displayBBox = kwargs["displayBBox"] || false;
this.__displayBBox = displayBBox;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var children_ = kwargs["children_"] || null;
this.__children_ = children_;
var visible = kwargs["visible"] || true;
this.__visible = visible;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
addChildren(children_ = null) {
if (this.__children_ == null) {
this.__children_ = [];
}
this.__children_.append(children_);
return this;
}
set axisOfRotation(axisOfRotation = [0, 1, 0]) {
this.__axisOfRotation = [axisOfRotation];
return this;
}
addAxisOfRotation(axisOfRotation = [0, 1, 0]) {
if (this.__axisOfRotation == null) {
this.__axisOfRotation = [];
}
this.__axisOfRotation.append(axisOfRotation);
return this;
}
removeAxisOfRotation(axisOfRotation) {
for( let i = 0; i < this.__axisOfRotation.length; i++) {
if ( this.__axisOfRotation[i] === axisOfRotation) {
this.__axisOfRotation.splice(i, 1);
}
}
return this.__axisOfRotation;
}
get axisOfRotation() {
return this.__axisOfRotation;
}
set children(children = null) {
this.__children = [children];
return this;
}
addChildren(children = null) {
if (this.__children == null) {
this.__children = [];
}
this.__children.append(children);
return this;
}
removeChildren(children) {
for( let i = 0; i < this.__children.length; i++) {
if ( this.__children[i] === children) {
this.__children.splice(i, 1);
}
}
return this.__children;
}
get children() {
return this.__children;
}
set displayBBox(displayBBox = false) {
this.__displayBBox = [displayBBox];
return this;
}
addDisplayBBox(displayBBox = false) {
if (this.__displayBBox == null) {
this.__displayBBox = [];
}
this.__displayBBox.append(displayBBox);
return this;
}
removeDisplayBBox(displayBBox) {
for( let i = 0; i < this.__displayBBox.length; i++) {
if ( this.__displayBBox[i] === displayBBox) {
this.__displayBBox.splice(i, 1);
}
}
return this.__displayBBox;
}
get isDisplayBBox() {
return this.__displayBBox;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set visible(visible = true) {
this.__visible = [visible];
return this;
}
addVisible(visible = true) {
if (this.__visible == null) {
this.__visible = [];
}
this.__visible.append(visible);
return this;
}
removeVisible(visible) {
for( let i = 0; i < this.__visible.length; i++) {
if ( this.__visible[i] === visible) {
this.__visible.splice(i, 1);
}
}
return this.__visible;
}
get isVisible() {
return this.__visible;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__children_ === null) {
} else if (typeof this.__children_.toXMLNode === 'function') {
str += this.__children_.toXMLNode('children_');
} else if (typeof this.__children_ === 'string') {
str += ' children_="'+this.__children_+'"';
} else if (Array.isArray( this.__children_)) {
if (typeof this.__children_[0].toXMLNode !== 'function') {
str += ' children_="'+this.__children_.join(' ')+'"';
} else {
for (let i in this.__children_) {
if (typeof this.__children_[i].toXMLNode === 'function') {
str += this.__children_[i].toXMLNode('children_');
}
}
}
} else {
str += ' children_="'+this.__children_+'"';
}
if (this.__children === null) {
} else if (typeof this.__children.toXMLNode === 'function') {
str += this.__children.toXMLNode('children');
} else if (typeof this.__children === 'string') {
str += ' children="'+this.__children+'"';
} else if (Array.isArray( this.__children)) {
if (typeof this.__children[0].toXMLNode !== 'function') {
str += ' children="'+this.__children.join(' ')+'"';
} else {
for (let i in this.__children) {
if (typeof this.__children[i].toXMLNode === 'function') {
str += this.__children[i].toXMLNode('children');
}
}
}
} else {
str += ' children="'+this.__children+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__children_ === null) {
} else if (typeof this.__children_.toXMLNode === 'function') {
str += this.__children_.toXMLNode('children_');
} else if (typeof this.__children_ === 'string') {
str += ' children_="'+this.__children_+'"';
} else if (Array.isArray( this.__children_)) {
if (typeof this.__children_[0].toXMLNode !== 'function') {
str += ' children_="'+this.__children_.join(' ')+'"';
} else {
for (let i in this.__children_) {
if (typeof this.__children_[i].toXMLNode === 'function') {
str += this.__children_[i].toXMLNode('children_');
}
}
}
} else {
str += ' children_="'+this.__children_+'"';
}
str += ''
return str;
}
}
export class BlendedVolumeStyle extends X3DComposableVolumeRenderStyleNode {
constructor(kwargs = {}) {
super(kwargs);
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var renderStyle = kwargs["renderStyle"] || null;
this.__renderStyle = renderStyle;
var voxels = kwargs["voxels"] || null;
this.__voxels = voxels;
var weightConstant1 = kwargs["weightConstant1"] || 0.5;
if (weightConstant1 == null || weightConstant1 < 0) {
return null;
}
if (weightConstant1 == null || weightConstant1 > 1) {
return null;
}
this.__weightConstant1 = weightConstant1;
var weightConstant2 = kwargs["weightConstant2"] || 0.5;
if (weightConstant2 == null || weightConstant2 < 0) {
return null;
}
if (weightConstant2 == null || weightConstant2 > 1) {
return null;
}
this.__weightConstant2 = weightConstant2;
var weightFunction1 = kwargs["weightFunction1"] || "CONSTANT";
if ('CONSTANT' === weightFunction1) {
} else if ('ALPHA1' === weightFunction1) {
} else if ('ALPHA2' === weightFunction1) {
} else if ('ONE_MINUS_ALPHA1' === weightFunction1) {
} else if ('ONE_MINUS_ALPHA2' === weightFunction1) {
} else if ('TABLE' === weightFunction1) {
} else {
return null;
}
this.__weightFunction1 = weightFunction1;
var weightFunction2 = kwargs["weightFunction2"] || "CONSTANT";
if ('CONSTANT' === weightFunction2) {
} else if ('ALPHA1' === weightFunction2) {
} else if ('ALPHA2' === weightFunction2) {
} else if ('ONE_MINUS_ALPHA1' === weightFunction2) {
} else if ('ONE_MINUS_ALPHA2' === weightFunction2) {
} else if ('TABLE' === weightFunction2) {
} else {
return null;
}
this.__weightFunction2 = weightFunction2;
var weightTransferFunction1 = kwargs["weightTransferFunction1"] || null;
this.__weightTransferFunction1 = weightTransferFunction1;
var weightTransferFunction2 = kwargs["weightTransferFunction2"] || null;
this.__weightTransferFunction2 = weightTransferFunction2;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set renderStyle(renderStyle = null) {
this.__renderStyle = [renderStyle];
return this;
}
addRenderStyle(renderStyle = null) {
if (this.__renderStyle == null) {
this.__renderStyle = [];
}
this.__renderStyle.append(renderStyle);
return this;
}
removeRenderStyle(renderStyle) {
for( let i = 0; i < this.__renderStyle.length; i++) {
if ( this.__renderStyle[i] === renderStyle) {
this.__renderStyle.splice(i, 1);
}
}
return this.__renderStyle;
}
get renderStyle() {
return this.__renderStyle;
}
set voxels(voxels = null) {
this.__voxels = [voxels];
return this;
}
addVoxels(voxels = null) {
if (this.__voxels == null) {
this.__voxels = [];
}
this.__voxels.append(voxels);
return this;
}
removeVoxels(voxels) {
for( let i = 0; i < this.__voxels.length; i++) {
if ( this.__voxels[i] === voxels) {
this.__voxels.splice(i, 1);
}
}
return this.__voxels;
}
get voxels() {
return this.__voxels;
}
set weightConstant1(weightConstant1 = 0.5) {
if (weightConstant1 == null || weightConstant1 < 0) {
return null;
}
if (weightConstant1 == null || weightConstant1 > 1) {
return null;
}
this.__weightConstant1 = [weightConstant1];
return this;
}
addWeightConstant1(weightConstant1 = 0.5) {
if (weightConstant1 == null || weightConstant1 < 0) {
return null;
}
if (weightConstant1 == null || weightConstant1 > 1) {
return null;
}
if (this.__weightConstant1 == null) {
this.__weightConstant1 = [];
}
this.__weightConstant1.append(weightConstant1);
return this;
}
removeWeightConstant1(weightConstant1) {
for( let i = 0; i < this.__weightConstant1.length; i++) {
if ( this.__weightConstant1[i] === weightConstant1) {
this.__weightConstant1.splice(i, 1);
}
}
return this.__weightConstant1;
}
get weightConstant1() {
return this.__weightConstant1;
}
set weightConstant2(weightConstant2 = 0.5) {
if (weightConstant2 == null || weightConstant2 < 0) {
return null;
}
if (weightConstant2 == null || weightConstant2 > 1) {
return null;
}
this.__weightConstant2 = [weightConstant2];
return this;
}
addWeightConstant2(weightConstant2 = 0.5) {
if (weightConstant2 == null || weightConstant2 < 0) {
return null;
}
if (weightConstant2 == null || weightConstant2 > 1) {
return null;
}
if (this.__weightConstant2 == null) {
this.__weightConstant2 = [];
}
this.__weightConstant2.append(weightConstant2);
return this;
}
removeWeightConstant2(weightConstant2) {
for( let i = 0; i < this.__weightConstant2.length; i++) {
if ( this.__weightConstant2[i] === weightConstant2) {
this.__weightConstant2.splice(i, 1);
}
}
return this.__weightConstant2;
}
get weightConstant2() {
return this.__weightConstant2;
}
set weightFunction1(weightFunction1 = "CONSTANT") {
if ('CONSTANT' === weightFunction1) {
} else if ('ALPHA1' === weightFunction1) {
} else if ('ALPHA2' === weightFunction1) {
} else if ('ONE_MINUS_ALPHA1' === weightFunction1) {
} else if ('ONE_MINUS_ALPHA2' === weightFunction1) {
} else if ('TABLE' === weightFunction1) {
} else {
return null;
}
this.__weightFunction1 = [weightFunction1];
return this;
}
addWeightFunction1(weightFunction1 = "CONSTANT") {
if ('CONSTANT' === weightFunction1) {
} else if ('ALPHA1' === weightFunction1) {
} else if ('ALPHA2' === weightFunction1) {
} else if ('ONE_MINUS_ALPHA1' === weightFunction1) {
} else if ('ONE_MINUS_ALPHA2' === weightFunction1) {
} else if ('TABLE' === weightFunction1) {
} else {
return null;
}
if (this.__weightFunction1 == null) {
this.__weightFunction1 = [];
}
this.__weightFunction1.append(weightFunction1);
return this;
}
removeWeightFunction1(weightFunction1) {
for( let i = 0; i < this.__weightFunction1.length; i++) {
if ( this.__weightFunction1[i] === weightFunction1) {
this.__weightFunction1.splice(i, 1);
}
}
return this.__weightFunction1;
}
get weightFunction1() {
return this.__weightFunction1;
}
set weightFunction2(weightFunction2 = "CONSTANT") {
if ('CONSTANT' === weightFunction2) {
} else if ('ALPHA1' === weightFunction2) {
} else if ('ALPHA2' === weightFunction2) {
} else if ('ONE_MINUS_ALPHA1' === weightFunction2) {
} else if ('ONE_MINUS_ALPHA2' === weightFunction2) {
} else if ('TABLE' === weightFunction2) {
} else {
return null;
}
this.__weightFunction2 = [weightFunction2];
return this;
}
addWeightFunction2(weightFunction2 = "CONSTANT") {
if ('CONSTANT' === weightFunction2) {
} else if ('ALPHA1' === weightFunction2) {
} else if ('ALPHA2' === weightFunction2) {
} else if ('ONE_MINUS_ALPHA1' === weightFunction2) {
} else if ('ONE_MINUS_ALPHA2' === weightFunction2) {
} else if ('TABLE' === weightFunction2) {
} else {
return null;
}
if (this.__weightFunction2 == null) {
this.__weightFunction2 = [];
}
this.__weightFunction2.append(weightFunction2);
return this;
}
removeWeightFunction2(weightFunction2) {
for( let i = 0; i < this.__weightFunction2.length; i++) {
if ( this.__weightFunction2[i] === weightFunction2) {
this.__weightFunction2.splice(i, 1);
}
}
return this.__weightFunction2;
}
get weightFunction2() {
return this.__weightFunction2;
}
set weightTransferFunction1(weightTransferFunction1 = null) {
this.__weightTransferFunction1 = [weightTransferFunction1];
return this;
}
addWeightTransferFunction1(weightTransferFunction1 = null) {
if (this.__weightTransferFunction1 == null) {
this.__weightTransferFunction1 = [];
}
this.__weightTransferFunction1.append(weightTransferFunction1);
return this;
}
removeWeightTransferFunction1(weightTransferFunction1) {
for( let i = 0; i < this.__weightTransferFunction1.length; i++) {
if ( this.__weightTransferFunction1[i] === weightTransferFunction1) {
this.__weightTransferFunction1.splice(i, 1);
}
}
return this.__weightTransferFunction1;
}
get weightTransferFunction1() {
return this.__weightTransferFunction1;
}
set weightTransferFunction2(weightTransferFunction2 = null) {
this.__weightTransferFunction2 = [weightTransferFunction2];
return this;
}
addWeightTransferFunction2(weightTransferFunction2 = null) {
if (this.__weightTransferFunction2 == null) {
this.__weightTransferFunction2 = [];
}
this.__weightTransferFunction2.append(weightTransferFunction2);
return this;
}
removeWeightTransferFunction2(weightTransferFunction2) {
for( let i = 0; i < this.__weightTransferFunction2.length; i++) {
if ( this.__weightTransferFunction2[i] === weightTransferFunction2) {
this.__weightTransferFunction2.splice(i, 1);
}
}
return this.__weightTransferFunction2;
}
get weightTransferFunction2() {
return this.__weightTransferFunction2;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__renderStyle === null) {
} else if (typeof this.__renderStyle.toXMLNode === 'function') {
str += this.__renderStyle.toXMLNode('renderStyle');
} else if (typeof this.__renderStyle === 'string') {
str += ' renderStyle="'+this.__renderStyle+'"';
} else if (Array.isArray( this.__renderStyle)) {
if (typeof this.__renderStyle[0].toXMLNode !== 'function') {
str += ' renderStyle="'+this.__renderStyle.join(' ')+'"';
} else {
for (let i in this.__renderStyle) {
if (typeof this.__renderStyle[i].toXMLNode === 'function') {
str += this.__renderStyle[i].toXMLNode('renderStyle');
}
}
}
} else {
str += ' renderStyle="'+this.__renderStyle+'"';
}
if (this.__voxels === null) {
} else if (typeof this.__voxels.toXMLNode === 'function') {
str += this.__voxels.toXMLNode('voxels');
} else if (typeof this.__voxels === 'string') {
str += ' voxels="'+this.__voxels+'"';
} else if (Array.isArray( this.__voxels)) {
if (typeof this.__voxels[0].toXMLNode !== 'function') {
str += ' voxels="'+this.__voxels.join(' ')+'"';
} else {
for (let i in this.__voxels) {
if (typeof this.__voxels[i].toXMLNode === 'function') {
str += this.__voxels[i].toXMLNode('voxels');
}
}
}
} else {
str += ' voxels="'+this.__voxels+'"';
}
if (this.__weightTransferFunction1 === null) {
} else if (typeof this.__weightTransferFunction1.toXMLNode === 'function') {
str += this.__weightTransferFunction1.toXMLNode('weightTransferFunction1');
} else if (typeof this.__weightTransferFunction1 === 'string') {
str += ' weightTransferFunction1="'+this.__weightTransferFunction1+'"';
} else if (Array.isArray( this.__weightTransferFunction1)) {
if (typeof this.__weightTransferFunction1[0].toXMLNode !== 'function') {
str += ' weightTransferFunction1="'+this.__weightTransferFunction1.join(' ')+'"';
} else {
for (let i in this.__weightTransferFunction1) {
if (typeof this.__weightTransferFunction1[i].toXMLNode === 'function') {
str += this.__weightTransferFunction1[i].toXMLNode('weightTransferFunction1');
}
}
}
} else {
str += ' weightTransferFunction1="'+this.__weightTransferFunction1+'"';
}
if (this.__weightTransferFunction2 === null) {
} else if (typeof this.__weightTransferFunction2.toXMLNode === 'function') {
str += this.__weightTransferFunction2.toXMLNode('weightTransferFunction2');
} else if (typeof this.__weightTransferFunction2 === 'string') {
str += ' weightTransferFunction2="'+this.__weightTransferFunction2+'"';
} else if (Array.isArray( this.__weightTransferFunction2)) {
if (typeof this.__weightTransferFunction2[0].toXMLNode !== 'function') {
str += ' weightTransferFunction2="'+this.__weightTransferFunction2.join(' ')+'"';
} else {
for (let i in this.__weightTransferFunction2) {
if (typeof this.__weightTransferFunction2[i].toXMLNode === 'function') {
str += this.__weightTransferFunction2[i].toXMLNode('weightTransferFunction2');
}
}
}
} else {
str += ' weightTransferFunction2="'+this.__weightTransferFunction2+'"';
}
str += ''
return str;
}
}
export class BooleanFilter extends X3DChildNode {
constructor(kwargs = {}) {
super(kwargs);
var inputFalse = kwargs["inputFalse"] || null;
this.__inputFalse = inputFalse;
var inputNegate = kwargs["inputNegate"] || null;
this.__inputNegate = inputNegate;
var inputTrue = kwargs["inputTrue"] || null;
this.__inputTrue = inputTrue;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var boolean = kwargs["boolean"] || null;
this.__boolean = boolean;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
removeInputFalse(inputFalse) {
for( let i = 0; i < this.__inputFalse.length; i++) {
if ( this.__inputFalse[i] === inputFalse) {
this.__inputFalse.splice(i, 1);
}
}
return this.__inputFalse;
}
get isInputFalse() {
return this.__inputFalse;
}
removeInputNegate(inputNegate) {
for( let i = 0; i < this.__inputNegate.length; i++) {
if ( this.__inputNegate[i] === inputNegate) {
this.__inputNegate.splice(i, 1);
}
}
return this.__inputNegate;
}
get isInputNegate() {
return this.__inputNegate;
}
removeInputTrue(inputTrue) {
for( let i = 0; i < this.__inputTrue.length; i++) {
if ( this.__inputTrue[i] === inputTrue) {
this.__inputTrue.splice(i, 1);
}
}
return this.__inputTrue;
}
get isInputTrue() {
return this.__inputTrue;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set set_boolean(boolean = null) {
this.__boolean = [boolean];
return this;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class BooleanSequencer extends X3DSequencerNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var key = kwargs["key"] || null;
this.__key = key;
var keyValue = kwargs["keyValue"] || null;
this.__keyValue = keyValue;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var next = kwargs["next"] || null;
this.__next = next;
var previous = kwargs["previous"] || null;
this.__previous = previous;
var fraction = kwargs["fraction"] || null;
this.__fraction = fraction;
var value_changed = kwargs["value_changed"] || null;
this.__value_changed = value_changed;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set key(key = null) {
this.__key = [key];
return this;
}
addKey(key = null) {
if (this.__key == null) {
this.__key = [];
}
this.__key.append(key);
return this;
}
removeKey(key) {
for( let i = 0; i < this.__key.length; i++) {
if ( this.__key[i] === key) {
this.__key.splice(i, 1);
}
}
return this.__key;
}
get key() {
return this.__key;
}
set keyValue(keyValue = null) {
this.__keyValue = [keyValue];
return this;
}
addKeyValue(keyValue = null) {
if (this.__keyValue == null) {
this.__keyValue = [];
}
this.__keyValue.append(keyValue);
return this;
}
removeKeyValue(keyValue) {
for( let i = 0; i < this.__keyValue.length; i++) {
if ( this.__keyValue[i] === keyValue) {
this.__keyValue.splice(i, 1);
}
}
return this.__keyValue;
}
get keyValue() {
return this.__keyValue;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set next(next = null) {
this.__next = [next];
return this;
}
addNext(next = null) {
if (this.__next == null) {
this.__next = [];
}
this.__next.append(next);
return this;
}
set previous(previous = null) {
this.__previous = [previous];
return this;
}
addPrevious(previous = null) {
if (this.__previous == null) {
this.__previous = [];
}
this.__previous.append(previous);
return this;
}
set set_fraction(fraction = null) {
this.__fraction = [fraction];
return this;
}
removevalue_changed(value_changed) {
for( let i = 0; i < this.__value_changed.length; i++) {
if ( this.__value_changed[i] === value_changed) {
this.__value_changed.splice(i, 1);
}
}
return this.__value_changed;
}
get isvalue_changed() {
return this.__value_changed;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class BooleanToggle extends X3DChildNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var boolean = kwargs["boolean"] || null;
this.__boolean = boolean;
var toggle = kwargs["toggle"] || false;
this.__toggle = toggle;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set set_boolean(boolean = null) {
this.__boolean = [boolean];
return this;
}
set toggle(toggle = false) {
this.__toggle = [toggle];
return this;
}
addToggle(toggle = false) {
if (this.__toggle == null) {
this.__toggle = [];
}
this.__toggle.append(toggle);
return this;
}
removeToggle(toggle) {
for( let i = 0; i < this.__toggle.length; i++) {
if ( this.__toggle[i] === toggle) {
this.__toggle.splice(i, 1);
}
}
return this.__toggle;
}
get isToggle() {
return this.__toggle;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class BooleanTrigger extends X3DTriggerNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var triggerTime = kwargs["triggerTime"] || null;
this.__triggerTime = triggerTime;
var triggerTrue = kwargs["triggerTrue"] || null;
this.__triggerTrue = triggerTrue;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set set_triggerTime(triggerTime = null) {
this.__triggerTime = [triggerTime];
return this;
}
removeTriggerTrue(triggerTrue) {
for( let i = 0; i < this.__triggerTrue.length; i++) {
if ( this.__triggerTrue[i] === triggerTrue) {
this.__triggerTrue.splice(i, 1);
}
}
return this.__triggerTrue;
}
get isTriggerTrue() {
return this.__triggerTrue;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class BoundaryEnhancementVolumeStyle extends X3DComposableVolumeRenderStyleNode {
constructor(kwargs = {}) {
super(kwargs);
var boundaryOpacity = kwargs["boundaryOpacity"] || 0.9;
if (boundaryOpacity == null || boundaryOpacity < 0) {
return null;
}
if (boundaryOpacity == null || boundaryOpacity > 1) {
return null;
}
this.__boundaryOpacity = boundaryOpacity;
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var opacityFactor = kwargs["opacityFactor"] || 2;
if (opacityFactor == null || opacityFactor < 0) {
return null;
}
this.__opacityFactor = opacityFactor;
var retainedOpacity = kwargs["retainedOpacity"] || 0.2;
if (retainedOpacity == null || retainedOpacity < 0) {
return null;
}
if (retainedOpacity == null || retainedOpacity > 1) {
return null;
}
this.__retainedOpacity = retainedOpacity;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set boundaryOpacity(boundaryOpacity = 0.9) {
if (boundaryOpacity == null || boundaryOpacity < 0) {
return null;
}
if (boundaryOpacity == null || boundaryOpacity > 1) {
return null;
}
this.__boundaryOpacity = [boundaryOpacity];
return this;
}
addBoundaryOpacity(boundaryOpacity = 0.9) {
if (boundaryOpacity == null || boundaryOpacity < 0) {
return null;
}
if (boundaryOpacity == null || boundaryOpacity > 1) {
return null;
}
if (this.__boundaryOpacity == null) {
this.__boundaryOpacity = [];
}
this.__boundaryOpacity.append(boundaryOpacity);
return this;
}
removeBoundaryOpacity(boundaryOpacity) {
for( let i = 0; i < this.__boundaryOpacity.length; i++) {
if ( this.__boundaryOpacity[i] === boundaryOpacity) {
this.__boundaryOpacity.splice(i, 1);
}
}
return this.__boundaryOpacity;
}
get boundaryOpacity() {
return this.__boundaryOpacity;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set opacityFactor(opacityFactor = 2) {
if (opacityFactor == null || opacityFactor < 0) {
return null;
}
this.__opacityFactor = [opacityFactor];
return this;
}
addOpacityFactor(opacityFactor = 2) {
if (opacityFactor == null || opacityFactor < 0) {
return null;
}
if (this.__opacityFactor == null) {
this.__opacityFactor = [];
}
this.__opacityFactor.append(opacityFactor);
return this;
}
removeOpacityFactor(opacityFactor) {
for( let i = 0; i < this.__opacityFactor.length; i++) {
if ( this.__opacityFactor[i] === opacityFactor) {
this.__opacityFactor.splice(i, 1);
}
}
return this.__opacityFactor;
}
get opacityFactor() {
return this.__opacityFactor;
}
set retainedOpacity(retainedOpacity = 0.2) {
if (retainedOpacity == null || retainedOpacity < 0) {
return null;
}
if (retainedOpacity == null || retainedOpacity > 1) {
return null;
}
this.__retainedOpacity = [retainedOpacity];
return this;
}
addRetainedOpacity(retainedOpacity = 0.2) {
if (retainedOpacity == null || retainedOpacity < 0) {
return null;
}
if (retainedOpacity == null || retainedOpacity > 1) {
return null;
}
if (this.__retainedOpacity == null) {
this.__retainedOpacity = [];
}
this.__retainedOpacity.append(retainedOpacity);
return this;
}
removeRetainedOpacity(retainedOpacity) {
for( let i = 0; i < this.__retainedOpacity.length; i++) {
if ( this.__retainedOpacity[i] === retainedOpacity) {
this.__retainedOpacity.splice(i, 1);
}
}
return this.__retainedOpacity;
}
get retainedOpacity() {
return this.__retainedOpacity;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class BoundedPhysicsModel extends X3DParticlePhysicsModelNode {
constructor(kwargs = {}) {
super(kwargs);
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var geometry = kwargs["geometry"] || null;
this.__geometry = geometry;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
set geometry(geometry = null) {
this.__geometry = [geometry];
return this;
}
addGeometry(geometry = null) {
if (this.__geometry == null) {
this.__geometry = [];
}
this.__geometry.append(geometry);
return this;
}
removeGeometry(geometry) {
for( let i = 0; i < this.__geometry.length; i++) {
if ( this.__geometry[i] === geometry) {
this.__geometry.splice(i, 1);
}
}
return this.__geometry;
}
get geometry() {
return this.__geometry;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__geometry === null) {
} else if (typeof this.__geometry.toXMLNode === 'function') {
str += this.__geometry.toXMLNode('geometry');
} else if (typeof this.__geometry === 'string') {
str += ' geometry="'+this.__geometry+'"';
} else if (Array.isArray( this.__geometry)) {
if (typeof this.__geometry[0].toXMLNode !== 'function') {
str += ' geometry="'+this.__geometry.join(' ')+'"';
} else {
for (let i in this.__geometry) {
if (typeof this.__geometry[i].toXMLNode === 'function') {
str += this.__geometry[i].toXMLNode('geometry');
}
}
}
} else {
str += ' geometry="'+this.__geometry+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class Box extends X3DGeometryNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var size = kwargs["size"] || [2, 2, 2];
this.__size = size;
var solid = kwargs["solid"] || true;
this.__solid = solid;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class CADAssembly extends X3DGroupingNode {
constructor(kwargs = {}) {
super(kwargs);
var children_ = kwargs["children_"] || null;
this.__children_ = children_;
var bboxCenter = kwargs["bboxCenter"] || [0, 0, 0];
this.__bboxCenter = bboxCenter;
var bboxSize = kwargs["bboxSize"] || [-1, -1, -1];
this.__bboxSize = bboxSize;
var children = kwargs["children"] || null;
this.__children = children;
var displayBBox = kwargs["displayBBox"] || false;
this.__displayBBox = displayBBox;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var name = kwargs["name"] || null;
this.__name = name;
var children_ = kwargs["children_"] || null;
this.__children_ = children_;
var visible = kwargs["visible"] || true;
this.__visible = visible;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
addChildren(children_ = null) {
if (this.__children_ == null) {
this.__children_ = [];
}
this.__children_.append(children_);
return this;
}
set children(children = null) {
this.__children = [children];
return this;
}
addChildren(children = null) {
if (this.__children == null) {
this.__children = [];
}
this.__children.append(children);
return this;
}
removeChildren(children) {
for( let i = 0; i < this.__children.length; i++) {
if ( this.__children[i] === children) {
this.__children.splice(i, 1);
}
}
return this.__children;
}
get children() {
return this.__children;
}
set displayBBox(displayBBox = false) {
this.__displayBBox = [displayBBox];
return this;
}
addDisplayBBox(displayBBox = false) {
if (this.__displayBBox == null) {
this.__displayBBox = [];
}
this.__displayBBox.append(displayBBox);
return this;
}
removeDisplayBBox(displayBBox) {
for( let i = 0; i < this.__displayBBox.length; i++) {
if ( this.__displayBBox[i] === displayBBox) {
this.__displayBBox.splice(i, 1);
}
}
return this.__displayBBox;
}
get isDisplayBBox() {
return this.__displayBBox;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set name(name = null) {
this.__name = [name];
return this;
}
addName(name = null) {
if (this.__name == null) {
this.__name = [];
}
this.__name.append(name);
return this;
}
removeName(name) {
for( let i = 0; i < this.__name.length; i++) {
if ( this.__name[i] === name) {
this.__name.splice(i, 1);
}
}
return this.__name;
}
get name() {
return this.__name;
}
set visible(visible = true) {
this.__visible = [visible];
return this;
}
addVisible(visible = true) {
if (this.__visible == null) {
this.__visible = [];
}
this.__visible.append(visible);
return this;
}
removeVisible(visible) {
for( let i = 0; i < this.__visible.length; i++) {
if ( this.__visible[i] === visible) {
this.__visible.splice(i, 1);
}
}
return this.__visible;
}
get isVisible() {
return this.__visible;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__children_ === null) {
} else if (typeof this.__children_.toXMLNode === 'function') {
str += this.__children_.toXMLNode('children_');
} else if (typeof this.__children_ === 'string') {
str += ' children_="'+this.__children_+'"';
} else if (Array.isArray( this.__children_)) {
if (typeof this.__children_[0].toXMLNode !== 'function') {
str += ' children_="'+this.__children_.join(' ')+'"';
} else {
for (let i in this.__children_) {
if (typeof this.__children_[i].toXMLNode === 'function') {
str += this.__children_[i].toXMLNode('children_');
}
}
}
} else {
str += ' children_="'+this.__children_+'"';
}
if (this.__children === null) {
} else if (typeof this.__children.toXMLNode === 'function') {
str += this.__children.toXMLNode('children');
} else if (typeof this.__children === 'string') {
str += ' children="'+this.__children+'"';
} else if (Array.isArray( this.__children)) {
if (typeof this.__children[0].toXMLNode !== 'function') {
str += ' children="'+this.__children.join(' ')+'"';
} else {
for (let i in this.__children) {
if (typeof this.__children[i].toXMLNode === 'function') {
str += this.__children[i].toXMLNode('children');
}
}
}
} else {
str += ' children="'+this.__children+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__children_ === null) {
} else if (typeof this.__children_.toXMLNode === 'function') {
str += this.__children_.toXMLNode('children_');
} else if (typeof this.__children_ === 'string') {
str += ' children_="'+this.__children_+'"';
} else if (Array.isArray( this.__children_)) {
if (typeof this.__children_[0].toXMLNode !== 'function') {
str += ' children_="'+this.__children_.join(' ')+'"';
} else {
for (let i in this.__children_) {
if (typeof this.__children_[i].toXMLNode === 'function') {
str += this.__children_[i].toXMLNode('children_');
}
}
}
} else {
str += ' children_="'+this.__children_+'"';
}
str += ''
return str;
}
}
export class CADFace extends X3DProductStructureChildNode {
constructor(kwargs = {}) {
super(kwargs);
var bboxCenter = kwargs["bboxCenter"] || [0, 0, 0];
this.__bboxCenter = bboxCenter;
var bboxSize = kwargs["bboxSize"] || [-1, -1, -1];
this.__bboxSize = bboxSize;
var displayBBox = kwargs["displayBBox"] || false;
this.__displayBBox = displayBBox;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var name = kwargs["name"] || null;
this.__name = name;
var shape = kwargs["shape"] || null;
this.__shape = shape;
var visible = kwargs["visible"] || true;
this.__visible = visible;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set displayBBox(displayBBox = false) {
this.__displayBBox = [displayBBox];
return this;
}
addDisplayBBox(displayBBox = false) {
if (this.__displayBBox == null) {
this.__displayBBox = [];
}
this.__displayBBox.append(displayBBox);
return this;
}
removeDisplayBBox(displayBBox) {
for( let i = 0; i < this.__displayBBox.length; i++) {
if ( this.__displayBBox[i] === displayBBox) {
this.__displayBBox.splice(i, 1);
}
}
return this.__displayBBox;
}
get isDisplayBBox() {
return this.__displayBBox;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set name(name = null) {
this.__name = [name];
return this;
}
addName(name = null) {
if (this.__name == null) {
this.__name = [];
}
this.__name.append(name);
return this;
}
removeName(name) {
for( let i = 0; i < this.__name.length; i++) {
if ( this.__name[i] === name) {
this.__name.splice(i, 1);
}
}
return this.__name;
}
get name() {
return this.__name;
}
set shape(shape = null) {
this.__shape = [shape];
return this;
}
addShape(shape = null) {
if (this.__shape == null) {
this.__shape = [];
}
this.__shape.append(shape);
return this;
}
removeShape(shape) {
for( let i = 0; i < this.__shape.length; i++) {
if ( this.__shape[i] === shape) {
this.__shape.splice(i, 1);
}
}
return this.__shape;
}
get shape() {
return this.__shape;
}
set visible(visible = true) {
this.__visible = [visible];
return this;
}
addVisible(visible = true) {
if (this.__visible == null) {
this.__visible = [];
}
this.__visible.append(visible);
return this;
}
removeVisible(visible) {
for( let i = 0; i < this.__visible.length; i++) {
if ( this.__visible[i] === visible) {
this.__visible.splice(i, 1);
}
}
return this.__visible;
}
get isVisible() {
return this.__visible;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__shape === null) {
} else if (typeof this.__shape.toXMLNode === 'function') {
str += this.__shape.toXMLNode('shape');
} else if (typeof this.__shape === 'string') {
str += ' shape="'+this.__shape+'"';
} else if (Array.isArray( this.__shape)) {
if (typeof this.__shape[0].toXMLNode !== 'function') {
str += ' shape="'+this.__shape.join(' ')+'"';
} else {
for (let i in this.__shape) {
if (typeof this.__shape[i].toXMLNode === 'function') {
str += this.__shape[i].toXMLNode('shape');
}
}
}
} else {
str += ' shape="'+this.__shape+'"';
}
str += ''
return str;
}
}
export class CADLayer extends X3DGroupingNode {
constructor(kwargs = {}) {
super(kwargs);
var children_ = kwargs["children_"] || null;
this.__children_ = children_;
var bboxCenter = kwargs["bboxCenter"] || [0, 0, 0];
this.__bboxCenter = bboxCenter;
var bboxSize = kwargs["bboxSize"] || [-1, -1, -1];
this.__bboxSize = bboxSize;
var children = kwargs["children"] || null;
this.__children = children;
var displayBBox = kwargs["displayBBox"] || false;
this.__displayBBox = displayBBox;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var name = kwargs["name"] || null;
this.__name = name;
var children_ = kwargs["children_"] || null;
this.__children_ = children_;
var visible = kwargs["visible"] || true;
this.__visible = visible;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
addChildren(children_ = null) {
if (this.__children_ == null) {
this.__children_ = [];
}
this.__children_.append(children_);
return this;
}
set children(children = null) {
this.__children = [children];
return this;
}
addChildren(children = null) {
if (this.__children == null) {
this.__children = [];
}
this.__children.append(children);
return this;
}
removeChildren(children) {
for( let i = 0; i < this.__children.length; i++) {
if ( this.__children[i] === children) {
this.__children.splice(i, 1);
}
}
return this.__children;
}
get children() {
return this.__children;
}
set displayBBox(displayBBox = false) {
this.__displayBBox = [displayBBox];
return this;
}
addDisplayBBox(displayBBox = false) {
if (this.__displayBBox == null) {
this.__displayBBox = [];
}
this.__displayBBox.append(displayBBox);
return this;
}
removeDisplayBBox(displayBBox) {
for( let i = 0; i < this.__displayBBox.length; i++) {
if ( this.__displayBBox[i] === displayBBox) {
this.__displayBBox.splice(i, 1);
}
}
return this.__displayBBox;
}
get isDisplayBBox() {
return this.__displayBBox;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set name(name = null) {
this.__name = [name];
return this;
}
addName(name = null) {
if (this.__name == null) {
this.__name = [];
}
this.__name.append(name);
return this;
}
removeName(name) {
for( let i = 0; i < this.__name.length; i++) {
if ( this.__name[i] === name) {
this.__name.splice(i, 1);
}
}
return this.__name;
}
get name() {
return this.__name;
}
set visible(visible = true) {
this.__visible = [visible];
return this;
}
addVisible(visible = true) {
if (this.__visible == null) {
this.__visible = [];
}
this.__visible.append(visible);
return this;
}
removeVisible(visible) {
for( let i = 0; i < this.__visible.length; i++) {
if ( this.__visible[i] === visible) {
this.__visible.splice(i, 1);
}
}
return this.__visible;
}
get isVisible() {
return this.__visible;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__children_ === null) {
} else if (typeof this.__children_.toXMLNode === 'function') {
str += this.__children_.toXMLNode('children_');
} else if (typeof this.__children_ === 'string') {
str += ' children_="'+this.__children_+'"';
} else if (Array.isArray( this.__children_)) {
if (typeof this.__children_[0].toXMLNode !== 'function') {
str += ' children_="'+this.__children_.join(' ')+'"';
} else {
for (let i in this.__children_) {
if (typeof this.__children_[i].toXMLNode === 'function') {
str += this.__children_[i].toXMLNode('children_');
}
}
}
} else {
str += ' children_="'+this.__children_+'"';
}
if (this.__children === null) {
} else if (typeof this.__children.toXMLNode === 'function') {
str += this.__children.toXMLNode('children');
} else if (typeof this.__children === 'string') {
str += ' children="'+this.__children+'"';
} else if (Array.isArray( this.__children)) {
if (typeof this.__children[0].toXMLNode !== 'function') {
str += ' children="'+this.__children.join(' ')+'"';
} else {
for (let i in this.__children) {
if (typeof this.__children[i].toXMLNode === 'function') {
str += this.__children[i].toXMLNode('children');
}
}
}
} else {
str += ' children="'+this.__children+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__children_ === null) {
} else if (typeof this.__children_.toXMLNode === 'function') {
str += this.__children_.toXMLNode('children_');
} else if (typeof this.__children_ === 'string') {
str += ' children_="'+this.__children_+'"';
} else if (Array.isArray( this.__children_)) {
if (typeof this.__children_[0].toXMLNode !== 'function') {
str += ' children_="'+this.__children_.join(' ')+'"';
} else {
for (let i in this.__children_) {
if (typeof this.__children_[i].toXMLNode === 'function') {
str += this.__children_[i].toXMLNode('children_');
}
}
}
} else {
str += ' children_="'+this.__children_+'"';
}
str += ''
return str;
}
}
export class CADPart extends X3DProductStructureChildNode {
constructor(kwargs = {}) {
super(kwargs);
var children_ = kwargs["children_"] || null;
this.__children_ = children_;
var bboxCenter = kwargs["bboxCenter"] || [0, 0, 0];
this.__bboxCenter = bboxCenter;
var bboxSize = kwargs["bboxSize"] || [-1, -1, -1];
this.__bboxSize = bboxSize;
var center = kwargs["center"] || [0, 0, 0];
this.__center = center;
var children = kwargs["children"] || null;
this.__children = children;
var displayBBox = kwargs["displayBBox"] || false;
this.__displayBBox = displayBBox;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var name = kwargs["name"] || null;
this.__name = name;
var children_ = kwargs["children_"] || null;
this.__children_ = children_;
var rotation = kwargs["rotation"] || [0, 0, 1, 0];
this.__rotation = rotation;
var scale = kwargs["scale"] || [1, 1, 1];
this.__scale = scale;
var scaleOrientation = kwargs["scaleOrientation"] || [0, 0, 1, 0];
this.__scaleOrientation = scaleOrientation;
var translation = kwargs["translation"] || [0, 0, 0];
this.__translation = translation;
var visible = kwargs["visible"] || true;
this.__visible = visible;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
addChildren(children_ = null) {
if (this.__children_ == null) {
this.__children_ = [];
}
this.__children_.append(children_);
return this;
}
set center(center = [0, 0, 0]) {
this.__center = [center];
return this;
}
addCenter(center = [0, 0, 0]) {
if (this.__center == null) {
this.__center = [];
}
this.__center.append(center);
return this;
}
removeCenter(center) {
for( let i = 0; i < this.__center.length; i++) {
if ( this.__center[i] === center) {
this.__center.splice(i, 1);
}
}
return this.__center;
}
get center() {
return this.__center;
}
set children(children = null) {
this.__children = [children];
return this;
}
addChildren(children = null) {
if (this.__children == null) {
this.__children = [];
}
this.__children.append(children);
return this;
}
removeChildren(children) {
for( let i = 0; i < this.__children.length; i++) {
if ( this.__children[i] === children) {
this.__children.splice(i, 1);
}
}
return this.__children;
}
get children() {
return this.__children;
}
set displayBBox(displayBBox = false) {
this.__displayBBox = [displayBBox];
return this;
}
addDisplayBBox(displayBBox = false) {
if (this.__displayBBox == null) {
this.__displayBBox = [];
}
this.__displayBBox.append(displayBBox);
return this;
}
removeDisplayBBox(displayBBox) {
for( let i = 0; i < this.__displayBBox.length; i++) {
if ( this.__displayBBox[i] === displayBBox) {
this.__displayBBox.splice(i, 1);
}
}
return this.__displayBBox;
}
get isDisplayBBox() {
return this.__displayBBox;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set name(name = null) {
this.__name = [name];
return this;
}
addName(name = null) {
if (this.__name == null) {
this.__name = [];
}
this.__name.append(name);
return this;
}
removeName(name) {
for( let i = 0; i < this.__name.length; i++) {
if ( this.__name[i] === name) {
this.__name.splice(i, 1);
}
}
return this.__name;
}
get name() {
return this.__name;
}
set rotation(rotation = [0, 0, 1, 0]) {
this.__rotation = [rotation];
return this;
}
addRotation(rotation = [0, 0, 1, 0]) {
if (this.__rotation == null) {
this.__rotation = [];
}
this.__rotation.append(rotation);
return this;
}
removeRotation(rotation) {
for( let i = 0; i < this.__rotation.length; i++) {
if ( this.__rotation[i] === rotation) {
this.__rotation.splice(i, 1);
}
}
return this.__rotation;
}
get rotation() {
return this.__rotation;
}
set scale(scale = [1, 1, 1]) {
this.__scale = [scale];
return this;
}
addScale(scale = [1, 1, 1]) {
if (this.__scale == null) {
this.__scale = [];
}
this.__scale.append(scale);
return this;
}
removeScale(scale) {
for( let i = 0; i < this.__scale.length; i++) {
if ( this.__scale[i] === scale) {
this.__scale.splice(i, 1);
}
}
return this.__scale;
}
get scale() {
return this.__scale;
}
set scaleOrientation(scaleOrientation = [0, 0, 1, 0]) {
this.__scaleOrientation = [scaleOrientation];
return this;
}
addScaleOrientation(scaleOrientation = [0, 0, 1, 0]) {
if (this.__scaleOrientation == null) {
this.__scaleOrientation = [];
}
this.__scaleOrientation.append(scaleOrientation);
return this;
}
removeScaleOrientation(scaleOrientation) {
for( let i = 0; i < this.__scaleOrientation.length; i++) {
if ( this.__scaleOrientation[i] === scaleOrientation) {
this.__scaleOrientation.splice(i, 1);
}
}
return this.__scaleOrientation;
}
get scaleOrientation() {
return this.__scaleOrientation;
}
set translation(translation = [0, 0, 0]) {
this.__translation = [translation];
return this;
}
addTranslation(translation = [0, 0, 0]) {
if (this.__translation == null) {
this.__translation = [];
}
this.__translation.append(translation);
return this;
}
removeTranslation(translation) {
for( let i = 0; i < this.__translation.length; i++) {
if ( this.__translation[i] === translation) {
this.__translation.splice(i, 1);
}
}
return this.__translation;
}
get translation() {
return this.__translation;
}
set visible(visible = true) {
this.__visible = [visible];
return this;
}
addVisible(visible = true) {
if (this.__visible == null) {
this.__visible = [];
}
this.__visible.append(visible);
return this;
}
removeVisible(visible) {
for( let i = 0; i < this.__visible.length; i++) {
if ( this.__visible[i] === visible) {
this.__visible.splice(i, 1);
}
}
return this.__visible;
}
get isVisible() {
return this.__visible;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__children_ === null) {
} else if (typeof this.__children_.toXMLNode === 'function') {
str += this.__children_.toXMLNode('children_');
} else if (typeof this.__children_ === 'string') {
str += ' children_="'+this.__children_+'"';
} else if (Array.isArray( this.__children_)) {
if (typeof this.__children_[0].toXMLNode !== 'function') {
str += ' children_="'+this.__children_.join(' ')+'"';
} else {
for (let i in this.__children_) {
if (typeof this.__children_[i].toXMLNode === 'function') {
str += this.__children_[i].toXMLNode('children_');
}
}
}
} else {
str += ' children_="'+this.__children_+'"';
}
if (this.__children === null) {
} else if (typeof this.__children.toXMLNode === 'function') {
str += this.__children.toXMLNode('children');
} else if (typeof this.__children === 'string') {
str += ' children="'+this.__children+'"';
} else if (Array.isArray( this.__children)) {
if (typeof this.__children[0].toXMLNode !== 'function') {
str += ' children="'+this.__children.join(' ')+'"';
} else {
for (let i in this.__children) {
if (typeof this.__children[i].toXMLNode === 'function') {
str += this.__children[i].toXMLNode('children');
}
}
}
} else {
str += ' children="'+this.__children+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__children_ === null) {
} else if (typeof this.__children_.toXMLNode === 'function') {
str += this.__children_.toXMLNode('children_');
} else if (typeof this.__children_ === 'string') {
str += ' children_="'+this.__children_+'"';
} else if (Array.isArray( this.__children_)) {
if (typeof this.__children_[0].toXMLNode !== 'function') {
str += ' children_="'+this.__children_.join(' ')+'"';
} else {
for (let i in this.__children_) {
if (typeof this.__children_[i].toXMLNode === 'function') {
str += this.__children_[i].toXMLNode('children_');
}
}
}
} else {
str += ' children_="'+this.__children_+'"';
}
str += ''
return str;
}
}
export class CartoonVolumeStyle extends X3DComposableVolumeRenderStyleNode {
constructor(kwargs = {}) {
super(kwargs);
var colorSteps = kwargs["colorSteps"] || 4;
if (colorSteps == null || colorSteps < 1) {
return null;
}
if (colorSteps == null || colorSteps > 64) {
return null;
}
this.__colorSteps = colorSteps;
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var orthogonalColor = kwargs["orthogonalColor"] || [1, 1, 1, 1];
if (orthogonalColor == null || orthogonalColor < 0) {
return null;
}
if (orthogonalColor == null || orthogonalColor > 1) {
return null;
}
this.__orthogonalColor = orthogonalColor;
var parallelColor = kwargs["parallelColor"] || [0, 0, 0, 1];
if (parallelColor == null || parallelColor < 0) {
return null;
}
if (parallelColor == null || parallelColor > 1) {
return null;
}
this.__parallelColor = parallelColor;
var surfaceNormals = kwargs["surfaceNormals"] || null;
this.__surfaceNormals = surfaceNormals;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set colorSteps(colorSteps = 4) {
if (colorSteps == null || colorSteps < 1) {
return null;
}
if (colorSteps == null || colorSteps > 64) {
return null;
}
this.__colorSteps = [colorSteps];
return this;
}
addColorSteps(colorSteps = 4) {
if (colorSteps == null || colorSteps < 1) {
return null;
}
if (colorSteps == null || colorSteps > 64) {
return null;
}
if (this.__colorSteps == null) {
this.__colorSteps = [];
}
this.__colorSteps.append(colorSteps);
return this;
}
removeColorSteps(colorSteps) {
for( let i = 0; i < this.__colorSteps.length; i++) {
if ( this.__colorSteps[i] === colorSteps) {
this.__colorSteps.splice(i, 1);
}
}
return this.__colorSteps;
}
get colorSteps() {
return this.__colorSteps;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set orthogonalColor(orthogonalColor = [1, 1, 1, 1]) {
if (orthogonalColor == null || orthogonalColor < 0) {
return null;
}
if (orthogonalColor == null || orthogonalColor > 1) {
return null;
}
this.__orthogonalColor = [orthogonalColor];
return this;
}
addOrthogonalColor(orthogonalColor = [1, 1, 1, 1]) {
if (orthogonalColor == null || orthogonalColor < 0) {
return null;
}
if (orthogonalColor == null || orthogonalColor > 1) {
return null;
}
if (this.__orthogonalColor == null) {
this.__orthogonalColor = [];
}
this.__orthogonalColor.append(orthogonalColor);
return this;
}
removeOrthogonalColor(orthogonalColor) {
for( let i = 0; i < this.__orthogonalColor.length; i++) {
if ( this.__orthogonalColor[i] === orthogonalColor) {
this.__orthogonalColor.splice(i, 1);
}
}
return this.__orthogonalColor;
}
get orthogonalColor() {
return this.__orthogonalColor;
}
set parallelColor(parallelColor = [0, 0, 0, 1]) {
if (parallelColor == null || parallelColor < 0) {
return null;
}
if (parallelColor == null || parallelColor > 1) {
return null;
}
this.__parallelColor = [parallelColor];
return this;
}
addParallelColor(parallelColor = [0, 0, 0, 1]) {
if (parallelColor == null || parallelColor < 0) {
return null;
}
if (parallelColor == null || parallelColor > 1) {
return null;
}
if (this.__parallelColor == null) {
this.__parallelColor = [];
}
this.__parallelColor.append(parallelColor);
return this;
}
removeParallelColor(parallelColor) {
for( let i = 0; i < this.__parallelColor.length; i++) {
if ( this.__parallelColor[i] === parallelColor) {
this.__parallelColor.splice(i, 1);
}
}
return this.__parallelColor;
}
get parallelColor() {
return this.__parallelColor;
}
set surfaceNormals(surfaceNormals = null) {
this.__surfaceNormals = [surfaceNormals];
return this;
}
addSurfaceNormals(surfaceNormals = null) {
if (this.__surfaceNormals == null) {
this.__surfaceNormals = [];
}
this.__surfaceNormals.append(surfaceNormals);
return this;
}
removeSurfaceNormals(surfaceNormals) {
for( let i = 0; i < this.__surfaceNormals.length; i++) {
if ( this.__surfaceNormals[i] === surfaceNormals) {
this.__surfaceNormals.splice(i, 1);
}
}
return this.__surfaceNormals;
}
get surfaceNormals() {
return this.__surfaceNormals;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__surfaceNormals === null) {
} else if (typeof this.__surfaceNormals.toXMLNode === 'function') {
str += this.__surfaceNormals.toXMLNode('surfaceNormals');
} else if (typeof this.__surfaceNormals === 'string') {
str += ' surfaceNormals="'+this.__surfaceNormals+'"';
} else if (Array.isArray( this.__surfaceNormals)) {
if (typeof this.__surfaceNormals[0].toXMLNode !== 'function') {
str += ' surfaceNormals="'+this.__surfaceNormals.join(' ')+'"';
} else {
for (let i in this.__surfaceNormals) {
if (typeof this.__surfaceNormals[i].toXMLNode === 'function') {
str += this.__surfaceNormals[i].toXMLNode('surfaceNormals');
}
}
}
} else {
str += ' surfaceNormals="'+this.__surfaceNormals+'"';
}
str += ''
return str;
}
}
export class Circle2D extends X3DGeometryNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var radius = kwargs["radius"] || 1;
if (radius == null || radius <= 0) {
return null;
}
this.__radius = radius;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class ClipPlane extends X3DChildNode {
constructor(kwargs = {}) {
super(kwargs);
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var plane = kwargs["plane"] || [0, 1, 0, 0];
if (plane == null || plane < -1) {
return null;
}
if (plane == null || plane > 1) {
return null;
}
this.__plane = plane;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set plane(plane = [0, 1, 0, 0]) {
if (plane == null || plane < -1) {
return null;
}
if (plane == null || plane > 1) {
return null;
}
this.__plane = [plane];
return this;
}
addPlane(plane = [0, 1, 0, 0]) {
if (plane == null || plane < -1) {
return null;
}
if (plane == null || plane > 1) {
return null;
}
if (this.__plane == null) {
this.__plane = [];
}
this.__plane.append(plane);
return this;
}
removePlane(plane) {
for( let i = 0; i < this.__plane.length; i++) {
if ( this.__plane[i] === plane) {
this.__plane.splice(i, 1);
}
}
return this.__plane;
}
get plane() {
return this.__plane;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class CollidableOffset extends X3DNBodyCollidableNode {
constructor(kwargs = {}) {
super(kwargs);
var bboxCenter = kwargs["bboxCenter"] || [0, 0, 0];
this.__bboxCenter = bboxCenter;
var bboxSize = kwargs["bboxSize"] || [-1, -1, -1];
this.__bboxSize = bboxSize;
var collidable = kwargs["collidable"] || null;
this.__collidable = collidable;
var displayBBox = kwargs["displayBBox"] || false;
this.__displayBBox = displayBBox;
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var rotation = kwargs["rotation"] || [0, 0, 1, 0];
this.__rotation = rotation;
var translation = kwargs["translation"] || [0, 0, 0];
this.__translation = translation;
var visible = kwargs["visible"] || true;
this.__visible = visible;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set displayBBox(displayBBox = false) {
this.__displayBBox = [displayBBox];
return this;
}
addDisplayBBox(displayBBox = false) {
if (this.__displayBBox == null) {
this.__displayBBox = [];
}
this.__displayBBox.append(displayBBox);
return this;
}
removeDisplayBBox(displayBBox) {
for( let i = 0; i < this.__displayBBox.length; i++) {
if ( this.__displayBBox[i] === displayBBox) {
this.__displayBBox.splice(i, 1);
}
}
return this.__displayBBox;
}
get isDisplayBBox() {
return this.__displayBBox;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set rotation(rotation = [0, 0, 1, 0]) {
this.__rotation = [rotation];
return this;
}
addRotation(rotation = [0, 0, 1, 0]) {
if (this.__rotation == null) {
this.__rotation = [];
}
this.__rotation.append(rotation);
return this;
}
removeRotation(rotation) {
for( let i = 0; i < this.__rotation.length; i++) {
if ( this.__rotation[i] === rotation) {
this.__rotation.splice(i, 1);
}
}
return this.__rotation;
}
get rotation() {
return this.__rotation;
}
set translation(translation = [0, 0, 0]) {
this.__translation = [translation];
return this;
}
addTranslation(translation = [0, 0, 0]) {
if (this.__translation == null) {
this.__translation = [];
}
this.__translation.append(translation);
return this;
}
removeTranslation(translation) {
for( let i = 0; i < this.__translation.length; i++) {
if ( this.__translation[i] === translation) {
this.__translation.splice(i, 1);
}
}
return this.__translation;
}
get translation() {
return this.__translation;
}
set visible(visible = true) {
this.__visible = [visible];
return this;
}
addVisible(visible = true) {
if (this.__visible == null) {
this.__visible = [];
}
this.__visible.append(visible);
return this;
}
removeVisible(visible) {
for( let i = 0; i < this.__visible.length; i++) {
if ( this.__visible[i] === visible) {
this.__visible.splice(i, 1);
}
}
return this.__visible;
}
get isVisible() {
return this.__visible;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__collidable === null) {
} else if (typeof this.__collidable.toXMLNode === 'function') {
str += this.__collidable.toXMLNode('collidable');
} else if (typeof this.__collidable === 'string') {
str += ' collidable="'+this.__collidable+'"';
} else if (Array.isArray( this.__collidable)) {
if (typeof this.__collidable[0].toXMLNode !== 'function') {
str += ' collidable="'+this.__collidable.join(' ')+'"';
} else {
for (let i in this.__collidable) {
if (typeof this.__collidable[i].toXMLNode === 'function') {
str += this.__collidable[i].toXMLNode('collidable');
}
}
}
} else {
str += ' collidable="'+this.__collidable+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class CollidableShape extends X3DNBodyCollidableNode {
constructor(kwargs = {}) {
super(kwargs);
var bboxCenter = kwargs["bboxCenter"] || [0, 0, 0];
this.__bboxCenter = bboxCenter;
var bboxSize = kwargs["bboxSize"] || [-1, -1, -1];
this.__bboxSize = bboxSize;
var displayBBox = kwargs["displayBBox"] || false;
this.__displayBBox = displayBBox;
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var rotation = kwargs["rotation"] || [0, 0, 1, 0];
this.__rotation = rotation;
var shape = kwargs["shape"] || null;
this.__shape = shape;
var translation = kwargs["translation"] || [0, 0, 0];
this.__translation = translation;
var visible = kwargs["visible"] || true;
this.__visible = visible;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set displayBBox(displayBBox = false) {
this.__displayBBox = [displayBBox];
return this;
}
addDisplayBBox(displayBBox = false) {
if (this.__displayBBox == null) {
this.__displayBBox = [];
}
this.__displayBBox.append(displayBBox);
return this;
}
removeDisplayBBox(displayBBox) {
for( let i = 0; i < this.__displayBBox.length; i++) {
if ( this.__displayBBox[i] === displayBBox) {
this.__displayBBox.splice(i, 1);
}
}
return this.__displayBBox;
}
get isDisplayBBox() {
return this.__displayBBox;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set rotation(rotation = [0, 0, 1, 0]) {
this.__rotation = [rotation];
return this;
}
addRotation(rotation = [0, 0, 1, 0]) {
if (this.__rotation == null) {
this.__rotation = [];
}
this.__rotation.append(rotation);
return this;
}
removeRotation(rotation) {
for( let i = 0; i < this.__rotation.length; i++) {
if ( this.__rotation[i] === rotation) {
this.__rotation.splice(i, 1);
}
}
return this.__rotation;
}
get rotation() {
return this.__rotation;
}
set translation(translation = [0, 0, 0]) {
this.__translation = [translation];
return this;
}
addTranslation(translation = [0, 0, 0]) {
if (this.__translation == null) {
this.__translation = [];
}
this.__translation.append(translation);
return this;
}
removeTranslation(translation) {
for( let i = 0; i < this.__translation.length; i++) {
if ( this.__translation[i] === translation) {
this.__translation.splice(i, 1);
}
}
return this.__translation;
}
get translation() {
return this.__translation;
}
set visible(visible = true) {
this.__visible = [visible];
return this;
}
addVisible(visible = true) {
if (this.__visible == null) {
this.__visible = [];
}
this.__visible.append(visible);
return this;
}
removeVisible(visible) {
for( let i = 0; i < this.__visible.length; i++) {
if ( this.__visible[i] === visible) {
this.__visible.splice(i, 1);
}
}
return this.__visible;
}
get isVisible() {
return this.__visible;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__shape === null) {
} else if (typeof this.__shape.toXMLNode === 'function') {
str += this.__shape.toXMLNode('shape');
} else if (typeof this.__shape === 'string') {
str += ' shape="'+this.__shape+'"';
} else if (Array.isArray( this.__shape)) {
if (typeof this.__shape[0].toXMLNode !== 'function') {
str += ' shape="'+this.__shape.join(' ')+'"';
} else {
for (let i in this.__shape) {
if (typeof this.__shape[i].toXMLNode === 'function') {
str += this.__shape[i].toXMLNode('shape');
}
}
}
} else {
str += ' shape="'+this.__shape+'"';
}
str += ''
return str;
}
}
export class Collision extends X3DGroupingNode {
constructor(kwargs = {}) {
super(kwargs);
var children_ = kwargs["children_"] || null;
this.__children_ = children_;
var bboxCenter = kwargs["bboxCenter"] || [0, 0, 0];
this.__bboxCenter = bboxCenter;
var bboxSize = kwargs["bboxSize"] || [-1, -1, -1];
this.__bboxSize = bboxSize;
var children = kwargs["children"] || null;
this.__children = children;
var collideTime = kwargs["collideTime"] || null;
this.__collideTime = collideTime;
var displayBBox = kwargs["displayBBox"] || false;
this.__displayBBox = displayBBox;
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var proxy = kwargs["proxy"] || null;
this.__proxy = proxy;
var children_ = kwargs["children_"] || null;
this.__children_ = children_;
var visible = kwargs["visible"] || true;
this.__visible = visible;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
addChildren(children_ = null) {
if (this.__children_ == null) {
this.__children_ = [];
}
this.__children_.append(children_);
return this;
}
set children(children = null) {
this.__children = [children];
return this;
}
addChildren(children = null) {
if (this.__children == null) {
this.__children = [];
}
this.__children.append(children);
return this;
}
removeChildren(children) {
for( let i = 0; i < this.__children.length; i++) {
if ( this.__children[i] === children) {
this.__children.splice(i, 1);
}
}
return this.__children;
}
get children() {
return this.__children;
}
removeCollideTime(collideTime) {
for( let i = 0; i < this.__collideTime.length; i++) {
if ( this.__collideTime[i] === collideTime) {
this.__collideTime.splice(i, 1);
}
}
return this.__collideTime;
}
get collideTime() {
return this.__collideTime;
}
set displayBBox(displayBBox = false) {
this.__displayBBox = [displayBBox];
return this;
}
addDisplayBBox(displayBBox = false) {
if (this.__displayBBox == null) {
this.__displayBBox = [];
}
this.__displayBBox.append(displayBBox);
return this;
}
removeDisplayBBox(displayBBox) {
for( let i = 0; i < this.__displayBBox.length; i++) {
if ( this.__displayBBox[i] === displayBBox) {
this.__displayBBox.splice(i, 1);
}
}
return this.__displayBBox;
}
get isDisplayBBox() {
return this.__displayBBox;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set visible(visible = true) {
this.__visible = [visible];
return this;
}
addVisible(visible = true) {
if (this.__visible == null) {
this.__visible = [];
}
this.__visible.append(visible);
return this;
}
removeVisible(visible) {
for( let i = 0; i < this.__visible.length; i++) {
if ( this.__visible[i] === visible) {
this.__visible.splice(i, 1);
}
}
return this.__visible;
}
get isVisible() {
return this.__visible;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
set proxy(proxy = null) {
this.__proxy = [proxy];
return this;
}
addProxy(proxy = null) {
if (this.__proxy == null) {
this.__proxy = [];
}
this.__proxy.append(proxy);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__children_ === null) {
} else if (typeof this.__children_.toXMLNode === 'function') {
str += this.__children_.toXMLNode('children_');
} else if (typeof this.__children_ === 'string') {
str += ' children_="'+this.__children_+'"';
} else if (Array.isArray( this.__children_)) {
if (typeof this.__children_[0].toXMLNode !== 'function') {
str += ' children_="'+this.__children_.join(' ')+'"';
} else {
for (let i in this.__children_) {
if (typeof this.__children_[i].toXMLNode === 'function') {
str += this.__children_[i].toXMLNode('children_');
}
}
}
} else {
str += ' children_="'+this.__children_+'"';
}
if (this.__children === null) {
} else if (typeof this.__children.toXMLNode === 'function') {
str += this.__children.toXMLNode('children');
} else if (typeof this.__children === 'string') {
str += ' children="'+this.__children+'"';
} else if (Array.isArray( this.__children)) {
if (typeof this.__children[0].toXMLNode !== 'function') {
str += ' children="'+this.__children.join(' ')+'"';
} else {
for (let i in this.__children) {
if (typeof this.__children[i].toXMLNode === 'function') {
str += this.__children[i].toXMLNode('children');
}
}
}
} else {
str += ' children="'+this.__children+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__proxy === null) {
} else if (typeof this.__proxy.toXMLNode === 'function') {
str += this.__proxy.toXMLNode('proxy');
} else if (typeof this.__proxy === 'string') {
str += ' proxy="'+this.__proxy+'"';
} else if (Array.isArray( this.__proxy)) {
if (typeof this.__proxy[0].toXMLNode !== 'function') {
str += ' proxy="'+this.__proxy.join(' ')+'"';
} else {
for (let i in this.__proxy) {
if (typeof this.__proxy[i].toXMLNode === 'function') {
str += this.__proxy[i].toXMLNode('proxy');
}
}
}
} else {
str += ' proxy="'+this.__proxy+'"';
}
if (this.__children_ === null) {
} else if (typeof this.__children_.toXMLNode === 'function') {
str += this.__children_.toXMLNode('children_');
} else if (typeof this.__children_ === 'string') {
str += ' children_="'+this.__children_+'"';
} else if (Array.isArray( this.__children_)) {
if (typeof this.__children_[0].toXMLNode !== 'function') {
str += ' children_="'+this.__children_.join(' ')+'"';
} else {
for (let i in this.__children_) {
if (typeof this.__children_[i].toXMLNode === 'function') {
str += this.__children_[i].toXMLNode('children_');
}
}
}
} else {
str += ' children_="'+this.__children_+'"';
}
str += ''
return str;
}
}
export class CollisionCollection extends X3DChildNode {
constructor(kwargs = {}) {
super(kwargs);
var appliedParameters = kwargs["appliedParameters"] || ["BOUNCE"];
if ('"BOUNCE"' === appliedParameters) {
} else if ('"USER_FRICTION"' === appliedParameters) {
} else if ('"FRICTION_COEFFICIENT-2"' === appliedParameters) {
} else if ('"ERROR_REDUCTION"' === appliedParameters) {
} else if ('"CONSTANT_FORCE"' === appliedParameters) {
} else if ('"SPEED-1"' === appliedParameters) {
} else if ('"SPEED-2"' === appliedParameters) {
} else if ('"SLIP-1"' === appliedParameters) {
} else if ('"SLIP-2"' === appliedParameters) {
} else {
return null;
}
this.__appliedParameters = appliedParameters;
var bboxCenter = kwargs["bboxCenter"] || [0, 0, 0];
this.__bboxCenter = bboxCenter;
var bboxSize = kwargs["bboxSize"] || [-1, -1, -1];
this.__bboxSize = bboxSize;
var bounce = kwargs["bounce"] || 0;
if (bounce == null || bounce < 0) {
return null;
}
if (bounce == null || bounce > 1) {
return null;
}
this.__bounce = bounce;
var collidables = kwargs["collidables"] || null;
this.__collidables = collidables;
var displayBBox = kwargs["displayBBox"] || false;
this.__displayBBox = displayBBox;
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var frictionCoefficients = kwargs["frictionCoefficients"] || [0, 0];
if (frictionCoefficients == null || frictionCoefficients.length <= 0 || Math.min(frictionCoefficients) < 0) {
return null;
}
this.__frictionCoefficients = frictionCoefficients;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var minBounceSpeed = kwargs["minBounceSpeed"] || 0.1;
if (minBounceSpeed == null || minBounceSpeed < 0) {
return null;
}
this.__minBounceSpeed = minBounceSpeed;
var slipFactors = kwargs["slipFactors"] || [0, 0];
this.__slipFactors = slipFactors;
var softnessConstantForceMix = kwargs["softnessConstantForceMix"] || 0.0001;
if (softnessConstantForceMix == null || softnessConstantForceMix < 0) {
return null;
}
if (softnessConstantForceMix == null || softnessConstantForceMix > 1) {
return null;
}
this.__softnessConstantForceMix = softnessConstantForceMix;
var softnessErrorCorrection = kwargs["softnessErrorCorrection"] || 0.8;
if (softnessErrorCorrection == null || softnessErrorCorrection < 0) {
return null;
}
if (softnessErrorCorrection == null || softnessErrorCorrection > 1) {
return null;
}
this.__softnessErrorCorrection = softnessErrorCorrection;
var surfaceSpeed = kwargs["surfaceSpeed"] || [0, 0];
this.__surfaceSpeed = surfaceSpeed;
var visible = kwargs["visible"] || true;
this.__visible = visible;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set appliedParameters(appliedParameters = ["BOUNCE"]) {
if ('"BOUNCE"' === appliedParameters) {
} else if ('"USER_FRICTION"' === appliedParameters) {
} else if ('"FRICTION_COEFFICIENT-2"' === appliedParameters) {
} else if ('"ERROR_REDUCTION"' === appliedParameters) {
} else if ('"CONSTANT_FORCE"' === appliedParameters) {
} else if ('"SPEED-1"' === appliedParameters) {
} else if ('"SPEED-2"' === appliedParameters) {
} else if ('"SLIP-1"' === appliedParameters) {
} else if ('"SLIP-2"' === appliedParameters) {
} else {
return null;
}
this.__appliedParameters = [appliedParameters];
return this;
}
addAppliedParameters(appliedParameters = ["BOUNCE"]) {
if ('"BOUNCE"' === appliedParameters) {
} else if ('"USER_FRICTION"' === appliedParameters) {
} else if ('"FRICTION_COEFFICIENT-2"' === appliedParameters) {
} else if ('"ERROR_REDUCTION"' === appliedParameters) {
} else if ('"CONSTANT_FORCE"' === appliedParameters) {
} else if ('"SPEED-1"' === appliedParameters) {
} else if ('"SPEED-2"' === appliedParameters) {
} else if ('"SLIP-1"' === appliedParameters) {
} else if ('"SLIP-2"' === appliedParameters) {
} else {
return null;
}
if (this.__appliedParameters == null) {
this.__appliedParameters = [];
}
this.__appliedParameters.append(appliedParameters);
return this;
}
removeAppliedParameters(appliedParameters) {
for( let i = 0; i < this.__appliedParameters.length; i++) {
if ( this.__appliedParameters[i] === appliedParameters) {
this.__appliedParameters.splice(i, 1);
}
}
return this.__appliedParameters;
}
get appliedParameters() {
return this.__appliedParameters;
}
set bounce(bounce = 0) {
if (bounce == null || bounce < 0) {
return null;
}
if (bounce == null || bounce > 1) {
return null;
}
this.__bounce = [bounce];
return this;
}
addBounce(bounce = 0) {
if (bounce == null || bounce < 0) {
return null;
}
if (bounce == null || bounce > 1) {
return null;
}
if (this.__bounce == null) {
this.__bounce = [];
}
this.__bounce.append(bounce);
return this;
}
removeBounce(bounce) {
for( let i = 0; i < this.__bounce.length; i++) {
if ( this.__bounce[i] === bounce) {
this.__bounce.splice(i, 1);
}
}
return this.__bounce;
}
get bounce() {
return this.__bounce;
}
set collidables(collidables = null) {
this.__collidables = [collidables];
return this;
}
addCollidables(collidables = null) {
if (this.__collidables == null) {
this.__collidables = [];
}
this.__collidables.append(collidables);
return this;
}
removeCollidables(collidables) {
for( let i = 0; i < this.__collidables.length; i++) {
if ( this.__collidables[i] === collidables) {
this.__collidables.splice(i, 1);
}
}
return this.__collidables;
}
get collidables() {
return this.__collidables;
}
set displayBBox(displayBBox = false) {
this.__displayBBox = [displayBBox];
return this;
}
addDisplayBBox(displayBBox = false) {
if (this.__displayBBox == null) {
this.__displayBBox = [];
}
this.__displayBBox.append(displayBBox);
return this;
}
removeDisplayBBox(displayBBox) {
for( let i = 0; i < this.__displayBBox.length; i++) {
if ( this.__displayBBox[i] === displayBBox) {
this.__displayBBox.splice(i, 1);
}
}
return this.__displayBBox;
}
get isDisplayBBox() {
return this.__displayBBox;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
set frictionCoefficients(frictionCoefficients = [0, 0]) {
if (frictionCoefficients == null || frictionCoefficients.length <= 0 || Math.min(frictionCoefficients) < 0) {
return null;
}
this.__frictionCoefficients = [frictionCoefficients];
return this;
}
addFrictionCoefficients(frictionCoefficients = [0, 0]) {
if (frictionCoefficients == null || frictionCoefficients.length <= 0 || Math.min(frictionCoefficients) < 0) {
return null;
}
if (this.__frictionCoefficients == null) {
this.__frictionCoefficients = [];
}
this.__frictionCoefficients.append(frictionCoefficients);
return this;
}
removeFrictionCoefficients(frictionCoefficients) {
for( let i = 0; i < this.__frictionCoefficients.length; i++) {
if ( this.__frictionCoefficients[i] === frictionCoefficients) {
this.__frictionCoefficients.splice(i, 1);
}
}
return this.__frictionCoefficients;
}
get frictionCoefficients() {
return this.__frictionCoefficients;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set minBounceSpeed(minBounceSpeed = 0.1) {
if (minBounceSpeed == null || minBounceSpeed < 0) {
return null;
}
this.__minBounceSpeed = [minBounceSpeed];
return this;
}
addMinBounceSpeed(minBounceSpeed = 0.1) {
if (minBounceSpeed == null || minBounceSpeed < 0) {
return null;
}
if (this.__minBounceSpeed == null) {
this.__minBounceSpeed = [];
}
this.__minBounceSpeed.append(minBounceSpeed);
return this;
}
removeMinBounceSpeed(minBounceSpeed) {
for( let i = 0; i < this.__minBounceSpeed.length; i++) {
if ( this.__minBounceSpeed[i] === minBounceSpeed) {
this.__minBounceSpeed.splice(i, 1);
}
}
return this.__minBounceSpeed;
}
get minBounceSpeed() {
return this.__minBounceSpeed;
}
set slipFactors(slipFactors = [0, 0]) {
this.__slipFactors = [slipFactors];
return this;
}
addSlipFactors(slipFactors = [0, 0]) {
if (this.__slipFactors == null) {
this.__slipFactors = [];
}
this.__slipFactors.append(slipFactors);
return this;
}
removeSlipFactors(slipFactors) {
for( let i = 0; i < this.__slipFactors.length; i++) {
if ( this.__slipFactors[i] === slipFactors) {
this.__slipFactors.splice(i, 1);
}
}
return this.__slipFactors;
}
get slipFactors() {
return this.__slipFactors;
}
set softnessConstantForceMix(softnessConstantForceMix = 0.0001) {
if (softnessConstantForceMix == null || softnessConstantForceMix < 0) {
return null;
}
if (softnessConstantForceMix == null || softnessConstantForceMix > 1) {
return null;
}
this.__softnessConstantForceMix = [softnessConstantForceMix];
return this;
}
addSoftnessConstantForceMix(softnessConstantForceMix = 0.0001) {
if (softnessConstantForceMix == null || softnessConstantForceMix < 0) {
return null;
}
if (softnessConstantForceMix == null || softnessConstantForceMix > 1) {
return null;
}
if (this.__softnessConstantForceMix == null) {
this.__softnessConstantForceMix = [];
}
this.__softnessConstantForceMix.append(softnessConstantForceMix);
return this;
}
removeSoftnessConstantForceMix(softnessConstantForceMix) {
for( let i = 0; i < this.__softnessConstantForceMix.length; i++) {
if ( this.__softnessConstantForceMix[i] === softnessConstantForceMix) {
this.__softnessConstantForceMix.splice(i, 1);
}
}
return this.__softnessConstantForceMix;
}
get softnessConstantForceMix() {
return this.__softnessConstantForceMix;
}
set softnessErrorCorrection(softnessErrorCorrection = 0.8) {
if (softnessErrorCorrection == null || softnessErrorCorrection < 0) {
return null;
}
if (softnessErrorCorrection == null || softnessErrorCorrection > 1) {
return null;
}
this.__softnessErrorCorrection = [softnessErrorCorrection];
return this;
}
addSoftnessErrorCorrection(softnessErrorCorrection = 0.8) {
if (softnessErrorCorrection == null || softnessErrorCorrection < 0) {
return null;
}
if (softnessErrorCorrection == null || softnessErrorCorrection > 1) {
return null;
}
if (this.__softnessErrorCorrection == null) {
this.__softnessErrorCorrection = [];
}
this.__softnessErrorCorrection.append(softnessErrorCorrection);
return this;
}
removeSoftnessErrorCorrection(softnessErrorCorrection) {
for( let i = 0; i < this.__softnessErrorCorrection.length; i++) {
if ( this.__softnessErrorCorrection[i] === softnessErrorCorrection) {
this.__softnessErrorCorrection.splice(i, 1);
}
}
return this.__softnessErrorCorrection;
}
get softnessErrorCorrection() {
return this.__softnessErrorCorrection;
}
set surfaceSpeed(surfaceSpeed = [0, 0]) {
this.__surfaceSpeed = [surfaceSpeed];
return this;
}
addSurfaceSpeed(surfaceSpeed = [0, 0]) {
if (this.__surfaceSpeed == null) {
this.__surfaceSpeed = [];
}
this.__surfaceSpeed.append(surfaceSpeed);
return this;
}
removeSurfaceSpeed(surfaceSpeed) {
for( let i = 0; i < this.__surfaceSpeed.length; i++) {
if ( this.__surfaceSpeed[i] === surfaceSpeed) {
this.__surfaceSpeed.splice(i, 1);
}
}
return this.__surfaceSpeed;
}
get surfaceSpeed() {
return this.__surfaceSpeed;
}
set visible(visible = true) {
this.__visible = [visible];
return this;
}
addVisible(visible = true) {
if (this.__visible == null) {
this.__visible = [];
}
this.__visible.append(visible);
return this;
}
removeVisible(visible) {
for( let i = 0; i < this.__visible.length; i++) {
if ( this.__visible[i] === visible) {
this.__visible.splice(i, 1);
}
}
return this.__visible;
}
get isVisible() {
return this.__visible;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__collidables === null) {
} else if (typeof this.__collidables.toXMLNode === 'function') {
str += this.__collidables.toXMLNode('collidables');
} else if (typeof this.__collidables === 'string') {
str += ' collidables="'+this.__collidables+'"';
} else if (Array.isArray( this.__collidables)) {
if (typeof this.__collidables[0].toXMLNode !== 'function') {
str += ' collidables="'+this.__collidables.join(' ')+'"';
} else {
for (let i in this.__collidables) {
if (typeof this.__collidables[i].toXMLNode === 'function') {
str += this.__collidables[i].toXMLNode('collidables');
}
}
}
} else {
str += ' collidables="'+this.__collidables+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class CollisionSensor extends X3DSensorNode {
constructor(kwargs = {}) {
super(kwargs);
var collider = kwargs["collider"] || null;
this.__collider = collider;
var contacts = kwargs["contacts"] || null;
this.__contacts = contacts;
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var intersections = kwargs["intersections"] || null;
this.__intersections = intersections;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set collider(collider = null) {
this.__collider = [collider];
return this;
}
addCollider(collider = null) {
if (this.__collider == null) {
this.__collider = [];
}
this.__collider.append(collider);
return this;
}
removeCollider(collider) {
for( let i = 0; i < this.__collider.length; i++) {
if ( this.__collider[i] === collider) {
this.__collider.splice(i, 1);
}
}
return this.__collider;
}
get collider() {
return this.__collider;
}
removeContacts(contacts) {
for( let i = 0; i < this.__contacts.length; i++) {
if ( this.__contacts[i] === contacts) {
this.__contacts.splice(i, 1);
}
}
return this.__contacts;
}
get contacts() {
return this.__contacts;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
removeIntersections(intersections) {
for( let i = 0; i < this.__intersections.length; i++) {
if ( this.__intersections[i] === intersections) {
this.__intersections.splice(i, 1);
}
}
return this.__intersections;
}
get intersections() {
return this.__intersections;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__collider === null) {
} else if (typeof this.__collider.toXMLNode === 'function') {
str += this.__collider.toXMLNode('collider');
} else if (typeof this.__collider === 'string') {
str += ' collider="'+this.__collider+'"';
} else if (Array.isArray( this.__collider)) {
if (typeof this.__collider[0].toXMLNode !== 'function') {
str += ' collider="'+this.__collider.join(' ')+'"';
} else {
for (let i in this.__collider) {
if (typeof this.__collider[i].toXMLNode === 'function') {
str += this.__collider[i].toXMLNode('collider');
}
}
}
} else {
str += ' collider="'+this.__collider+'"';
}
if (this.__contacts === null) {
} else if (typeof this.__contacts.toXMLNode === 'function') {
str += this.__contacts.toXMLNode('contacts');
} else if (typeof this.__contacts === 'string') {
str += ' contacts="'+this.__contacts+'"';
} else if (Array.isArray( this.__contacts)) {
if (typeof this.__contacts[0].toXMLNode !== 'function') {
str += ' contacts="'+this.__contacts.join(' ')+'"';
} else {
for (let i in this.__contacts) {
if (typeof this.__contacts[i].toXMLNode === 'function') {
str += this.__contacts[i].toXMLNode('contacts');
}
}
}
} else {
str += ' contacts="'+this.__contacts+'"';
}
if (this.__intersections === null) {
} else if (typeof this.__intersections.toXMLNode === 'function') {
str += this.__intersections.toXMLNode('intersections');
} else if (typeof this.__intersections === 'string') {
str += ' intersections="'+this.__intersections+'"';
} else if (Array.isArray( this.__intersections)) {
if (typeof this.__intersections[0].toXMLNode !== 'function') {
str += ' intersections="'+this.__intersections.join(' ')+'"';
} else {
for (let i in this.__intersections) {
if (typeof this.__intersections[i].toXMLNode === 'function') {
str += this.__intersections[i].toXMLNode('intersections');
}
}
}
} else {
str += ' intersections="'+this.__intersections+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class CollisionSpace extends X3DNBodyCollisionSpaceNode {
constructor(kwargs = {}) {
super(kwargs);
var bboxCenter = kwargs["bboxCenter"] || [0, 0, 0];
this.__bboxCenter = bboxCenter;
var bboxSize = kwargs["bboxSize"] || [-1, -1, -1];
this.__bboxSize = bboxSize;
var collidables = kwargs["collidables"] || null;
this.__collidables = collidables;
var displayBBox = kwargs["displayBBox"] || false;
this.__displayBBox = displayBBox;
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var useGeometry = kwargs["useGeometry"] || false;
this.__useGeometry = useGeometry;
var visible = kwargs["visible"] || true;
this.__visible = visible;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set collidables(collidables = null) {
this.__collidables = [collidables];
return this;
}
addCollidables(collidables = null) {
if (this.__collidables == null) {
this.__collidables = [];
}
this.__collidables.append(collidables);
return this;
}
removeCollidables(collidables) {
for( let i = 0; i < this.__collidables.length; i++) {
if ( this.__collidables[i] === collidables) {
this.__collidables.splice(i, 1);
}
}
return this.__collidables;
}
get collidables() {
return this.__collidables;
}
set displayBBox(displayBBox = false) {
this.__displayBBox = [displayBBox];
return this;
}
addDisplayBBox(displayBBox = false) {
if (this.__displayBBox == null) {
this.__displayBBox = [];
}
this.__displayBBox.append(displayBBox);
return this;
}
removeDisplayBBox(displayBBox) {
for( let i = 0; i < this.__displayBBox.length; i++) {
if ( this.__displayBBox[i] === displayBBox) {
this.__displayBBox.splice(i, 1);
}
}
return this.__displayBBox;
}
get isDisplayBBox() {
return this.__displayBBox;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set useGeometry(useGeometry = false) {
this.__useGeometry = [useGeometry];
return this;
}
addUseGeometry(useGeometry = false) {
if (this.__useGeometry == null) {
this.__useGeometry = [];
}
this.__useGeometry.append(useGeometry);
return this;
}
removeUseGeometry(useGeometry) {
for( let i = 0; i < this.__useGeometry.length; i++) {
if ( this.__useGeometry[i] === useGeometry) {
this.__useGeometry.splice(i, 1);
}
}
return this.__useGeometry;
}
get isUseGeometry() {
return this.__useGeometry;
}
set visible(visible = true) {
this.__visible = [visible];
return this;
}
addVisible(visible = true) {
if (this.__visible == null) {
this.__visible = [];
}
this.__visible.append(visible);
return this;
}
removeVisible(visible) {
for( let i = 0; i < this.__visible.length; i++) {
if ( this.__visible[i] === visible) {
this.__visible.splice(i, 1);
}
}
return this.__visible;
}
get isVisible() {
return this.__visible;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__collidables === null) {
} else if (typeof this.__collidables.toXMLNode === 'function') {
str += this.__collidables.toXMLNode('collidables');
} else if (typeof this.__collidables === 'string') {
str += ' collidables="'+this.__collidables+'"';
} else if (Array.isArray( this.__collidables)) {
if (typeof this.__collidables[0].toXMLNode !== 'function') {
str += ' collidables="'+this.__collidables.join(' ')+'"';
} else {
for (let i in this.__collidables) {
if (typeof this.__collidables[i].toXMLNode === 'function') {
str += this.__collidables[i].toXMLNode('collidables');
}
}
}
} else {
str += ' collidables="'+this.__collidables+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class Color extends X3DColorNode {
constructor(kwargs = {}) {
super(kwargs);
var color = kwargs["color"] || null;
if (color == null || color.length <= 0 || Math.min(color) < 0) {
return null;
}
if (color == null || color.length <= 0 || Math.max(color) > 1) {
return null;
}
this.__color = color;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set color(color = null) {
if (color == null || color.length <= 0 || Math.min(color) < 0) {
return null;
}
if (color == null || color.length <= 0 || Math.max(color) > 1) {
return null;
}
this.__color = [color];
return this;
}
addColor(color = null) {
if (color == null || color.length <= 0 || Math.min(color) < 0) {
return null;
}
if (color == null || color.length <= 0 || Math.max(color) > 1) {
return null;
}
if (this.__color == null) {
this.__color = [];
}
this.__color.append(color);
return this;
}
removeColor(color) {
for( let i = 0; i < this.__color.length; i++) {
if ( this.__color[i] === color) {
this.__color.splice(i, 1);
}
}
return this.__color;
}
get color() {
return this.__color;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class ColorChaser extends X3DChaserNode {
constructor(kwargs = {}) {
super(kwargs);
var duration = kwargs["duration"] || 1;
if (duration == null || duration < 0) {
return null;
}
this.__duration = duration;
var initialDestination = kwargs["initialDestination"] || [0.8, 0.8, 0.8];
if (initialDestination == null || initialDestination.length <= 0 || Math.min(initialDestination) < 0) {
return null;
}
if (initialDestination == null || initialDestination.length <= 0 || Math.max(initialDestination) > 1) {
return null;
}
this.__initialDestination = initialDestination;
var initialValue = kwargs["initialValue"] || [0.8, 0.8, 0.8];
if (initialValue == null || initialValue.length <= 0 || Math.min(initialValue) < 0) {
return null;
}
if (initialValue == null || initialValue.length <= 0 || Math.max(initialValue) > 1) {
return null;
}
this.__initialValue = initialValue;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var destination = kwargs["destination"] || null;
if (destination == null || destination.length <= 0 || Math.min(destination) < 0) {
return null;
}
if (destination == null || destination.length <= 0 || Math.max(destination) > 1) {
return null;
}
this.__destination = destination;
var value = kwargs["value"] || null;
if (value == null || value.length <= 0 || Math.min(value) < 0) {
return null;
}
if (value == null || value.length <= 0 || Math.max(value) > 1) {
return null;
}
this.__value = value;
var value_changed = kwargs["value_changed"] || null;
if (value_changed == null || value_changed.length <= 0 || Math.min(value_changed) < 0) {
return null;
}
if (value_changed == null || value_changed.length <= 0 || Math.max(value_changed) > 1) {
return null;
}
this.__value_changed = value_changed;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set set_destination(destination = null) {
if (destination == null || destination.length <= 0 || Math.min(destination) < 0) {
return null;
}
if (destination == null || destination.length <= 0 || Math.max(destination) > 1) {
return null;
}
this.__destination = [destination];
return this;
}
set set_value(value = null) {
if (value == null || value.length <= 0 || Math.min(value) < 0) {
return null;
}
if (value == null || value.length <= 0 || Math.max(value) > 1) {
return null;
}
this.__value = [value];
return this;
}
removevalue_changed(value_changed) {
for( let i = 0; i < this.__value_changed.length; i++) {
if ( this.__value_changed[i] === value_changed) {
this.__value_changed.splice(i, 1);
}
}
return this.__value_changed;
}
get value_changed() {
return this.__value_changed;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class ColorDamper extends X3DDamperNode {
constructor(kwargs = {}) {
super(kwargs);
var initialDestination = kwargs["initialDestination"] || [0.8, 0.8, 0.8];
if (initialDestination == null || initialDestination.length <= 0 || Math.min(initialDestination) < 0) {
return null;
}
if (initialDestination == null || initialDestination.length <= 0 || Math.max(initialDestination) > 1) {
return null;
}
this.__initialDestination = initialDestination;
var initialValue = kwargs["initialValue"] || [0.8, 0.8, 0.8];
if (initialValue == null || initialValue.length <= 0 || Math.min(initialValue) < 0) {
return null;
}
if (initialValue == null || initialValue.length <= 0 || Math.max(initialValue) > 1) {
return null;
}
this.__initialValue = initialValue;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var order = kwargs["order"] || 3;
if (order == null || order < 0) {
return null;
}
if (order == null || order > 5) {
return null;
}
this.__order = order;
var destination = kwargs["destination"] || null;
if (destination == null || destination.length <= 0 || Math.min(destination) < 0) {
return null;
}
if (destination == null || destination.length <= 0 || Math.max(destination) > 1) {
return null;
}
this.__destination = destination;
var value = kwargs["value"] || null;
if (value == null || value.length <= 0 || Math.min(value) < 0) {
return null;
}
if (value == null || value.length <= 0 || Math.max(value) > 1) {
return null;
}
this.__value = value;
var tau = kwargs["tau"] || 0.3;
if (tau == null || tau < 0) {
return null;
}
this.__tau = tau;
var tolerance = kwargs["tolerance"] || -1;
this.__tolerance = tolerance;
var value_changed = kwargs["value_changed"] || null;
if (value_changed == null || value_changed.length <= 0 || Math.min(value_changed) < 0) {
return null;
}
if (value_changed == null || value_changed.length <= 0 || Math.max(value_changed) > 1) {
return null;
}
this.__value_changed = value_changed;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set set_destination(destination = null) {
if (destination == null || destination.length <= 0 || Math.min(destination) < 0) {
return null;
}
if (destination == null || destination.length <= 0 || Math.max(destination) > 1) {
return null;
}
this.__destination = [destination];
return this;
}
set set_value(value = null) {
if (value == null || value.length <= 0 || Math.min(value) < 0) {
return null;
}
if (value == null || value.length <= 0 || Math.max(value) > 1) {
return null;
}
this.__value = [value];
return this;
}
set tau(tau = 0.3) {
if (tau == null || tau < 0) {
return null;
}
this.__tau = [tau];
return this;
}
addTau(tau = 0.3) {
if (tau == null || tau < 0) {
return null;
}
if (this.__tau == null) {
this.__tau = [];
}
this.__tau.append(tau);
return this;
}
removeTau(tau) {
for( let i = 0; i < this.__tau.length; i++) {
if ( this.__tau[i] === tau) {
this.__tau.splice(i, 1);
}
}
return this.__tau;
}
get tau() {
return this.__tau;
}
set tolerance(tolerance = -1) {
this.__tolerance = [tolerance];
return this;
}
addTolerance(tolerance = -1) {
if (this.__tolerance == null) {
this.__tolerance = [];
}
this.__tolerance.append(tolerance);
return this;
}
removeTolerance(tolerance) {
for( let i = 0; i < this.__tolerance.length; i++) {
if ( this.__tolerance[i] === tolerance) {
this.__tolerance.splice(i, 1);
}
}
return this.__tolerance;
}
get tolerance() {
return this.__tolerance;
}
removevalue_changed(value_changed) {
for( let i = 0; i < this.__value_changed.length; i++) {
if ( this.__value_changed[i] === value_changed) {
this.__value_changed.splice(i, 1);
}
}
return this.__value_changed;
}
get value_changed() {
return this.__value_changed;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class ColorInterpolator extends X3DInterpolatorNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var key = kwargs["key"] || null;
this.__key = key;
var keyValue = kwargs["keyValue"] || null;
if (keyValue == null || keyValue.length <= 0 || Math.min(keyValue) < 0) {
return null;
}
if (keyValue == null || keyValue.length <= 0 || Math.max(keyValue) > 1) {
return null;
}
this.__keyValue = keyValue;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var fraction = kwargs["fraction"] || null;
this.__fraction = fraction;
var value_changed = kwargs["value_changed"] || null;
if (value_changed == null || value_changed.length <= 0 || Math.min(value_changed) < 0) {
return null;
}
if (value_changed == null || value_changed.length <= 0 || Math.max(value_changed) > 1) {
return null;
}
this.__value_changed = value_changed;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set key(key = null) {
this.__key = [key];
return this;
}
addKey(key = null) {
if (this.__key == null) {
this.__key = [];
}
this.__key.append(key);
return this;
}
removeKey(key) {
for( let i = 0; i < this.__key.length; i++) {
if ( this.__key[i] === key) {
this.__key.splice(i, 1);
}
}
return this.__key;
}
get key() {
return this.__key;
}
set keyValue(keyValue = null) {
if (keyValue == null || keyValue.length <= 0 || Math.min(keyValue) < 0) {
return null;
}
if (keyValue == null || keyValue.length <= 0 || Math.max(keyValue) > 1) {
return null;
}
this.__keyValue = [keyValue];
return this;
}
addKeyValue(keyValue = null) {
if (keyValue == null || keyValue.length <= 0 || Math.min(keyValue) < 0) {
return null;
}
if (keyValue == null || keyValue.length <= 0 || Math.max(keyValue) > 1) {
return null;
}
if (this.__keyValue == null) {
this.__keyValue = [];
}
this.__keyValue.append(keyValue);
return this;
}
removeKeyValue(keyValue) {
for( let i = 0; i < this.__keyValue.length; i++) {
if ( this.__keyValue[i] === keyValue) {
this.__keyValue.splice(i, 1);
}
}
return this.__keyValue;
}
get keyValue() {
return this.__keyValue;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set set_fraction(fraction = null) {
this.__fraction = [fraction];
return this;
}
removevalue_changed(value_changed) {
for( let i = 0; i < this.__value_changed.length; i++) {
if ( this.__value_changed[i] === value_changed) {
this.__value_changed.splice(i, 1);
}
}
return this.__value_changed;
}
get value_changed() {
return this.__value_changed;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class ColorRGBA extends X3DColorNode {
constructor(kwargs = {}) {
super(kwargs);
var color = kwargs["color"] || null;
if (color == null || color.length <= 0 || Math.min(color) < 0) {
return null;
}
if (color == null || color.length <= 0 || Math.max(color) > 1) {
return null;
}
this.__color = color;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set color(color = null) {
if (color == null || color.length <= 0 || Math.min(color) < 0) {
return null;
}
if (color == null || color.length <= 0 || Math.max(color) > 1) {
return null;
}
this.__color = [color];
return this;
}
addColor(color = null) {
if (color == null || color.length <= 0 || Math.min(color) < 0) {
return null;
}
if (color == null || color.length <= 0 || Math.max(color) > 1) {
return null;
}
if (this.__color == null) {
this.__color = [];
}
this.__color.append(color);
return this;
}
removeColor(color) {
for( let i = 0; i < this.__color.length; i++) {
if ( this.__color[i] === color) {
this.__color.splice(i, 1);
}
}
return this.__color;
}
get color() {
return this.__color;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class ComposedCubeMapTexture extends X3DEnvironmentTextureNode {
constructor(kwargs = {}) {
super(kwargs);
var back = kwargs["back"] || null;
this.__back = back;
var bottom = kwargs["bottom"] || null;
this.__bottom = bottom;
var front = kwargs["front"] || null;
this.__front = front;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var left = kwargs["left"] || null;
this.__left = left;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var right = kwargs["right"] || null;
this.__right = right;
var top = kwargs["top"] || null;
this.__top = top;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set back(back = null) {
this.__back = [back];
return this;
}
addBack(back = null) {
if (this.__back == null) {
this.__back = [];
}
this.__back.append(back);
return this;
}
removeBack(back) {
for( let i = 0; i < this.__back.length; i++) {
if ( this.__back[i] === back) {
this.__back.splice(i, 1);
}
}
return this.__back;
}
get back() {
return this.__back;
}
set bottom(bottom = null) {
this.__bottom = [bottom];
return this;
}
addBottom(bottom = null) {
if (this.__bottom == null) {
this.__bottom = [];
}
this.__bottom.append(bottom);
return this;
}
removeBottom(bottom) {
for( let i = 0; i < this.__bottom.length; i++) {
if ( this.__bottom[i] === bottom) {
this.__bottom.splice(i, 1);
}
}
return this.__bottom;
}
get bottom() {
return this.__bottom;
}
set front(front = null) {
this.__front = [front];
return this;
}
addFront(front = null) {
if (this.__front == null) {
this.__front = [];
}
this.__front.append(front);
return this;
}
removeFront(front) {
for( let i = 0; i < this.__front.length; i++) {
if ( this.__front[i] === front) {
this.__front.splice(i, 1);
}
}
return this.__front;
}
get front() {
return this.__front;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set left(left = null) {
this.__left = [left];
return this;
}
addLeft(left = null) {
if (this.__left == null) {
this.__left = [];
}
this.__left.append(left);
return this;
}
removeLeft(left) {
for( let i = 0; i < this.__left.length; i++) {
if ( this.__left[i] === left) {
this.__left.splice(i, 1);
}
}
return this.__left;
}
get left() {
return this.__left;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set right(right = null) {
this.__right = [right];
return this;
}
addRight(right = null) {
if (this.__right == null) {
this.__right = [];
}
this.__right.append(right);
return this;
}
removeRight(right) {
for( let i = 0; i < this.__right.length; i++) {
if ( this.__right[i] === right) {
this.__right.splice(i, 1);
}
}
return this.__right;
}
get right() {
return this.__right;
}
set top(top = null) {
this.__top = [top];
return this;
}
addTop(top = null) {
if (this.__top == null) {
this.__top = [];
}
this.__top.append(top);
return this;
}
removeTop(top) {
for( let i = 0; i < this.__top.length; i++) {
if ( this.__top[i] === top) {
this.__top.splice(i, 1);
}
}
return this.__top;
}
get top() {
return this.__top;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__back === null) {
} else if (typeof this.__back.toXMLNode === 'function') {
str += this.__back.toXMLNode('back');
} else if (typeof this.__back === 'string') {
str += ' back="'+this.__back+'"';
} else if (Array.isArray( this.__back)) {
if (typeof this.__back[0].toXMLNode !== 'function') {
str += ' back="'+this.__back.join(' ')+'"';
} else {
for (let i in this.__back) {
if (typeof this.__back[i].toXMLNode === 'function') {
str += this.__back[i].toXMLNode('back');
}
}
}
} else {
str += ' back="'+this.__back+'"';
}
if (this.__bottom === null) {
} else if (typeof this.__bottom.toXMLNode === 'function') {
str += this.__bottom.toXMLNode('bottom');
} else if (typeof this.__bottom === 'string') {
str += ' bottom="'+this.__bottom+'"';
} else if (Array.isArray( this.__bottom)) {
if (typeof this.__bottom[0].toXMLNode !== 'function') {
str += ' bottom="'+this.__bottom.join(' ')+'"';
} else {
for (let i in this.__bottom) {
if (typeof this.__bottom[i].toXMLNode === 'function') {
str += this.__bottom[i].toXMLNode('bottom');
}
}
}
} else {
str += ' bottom="'+this.__bottom+'"';
}
if (this.__front === null) {
} else if (typeof this.__front.toXMLNode === 'function') {
str += this.__front.toXMLNode('front');
} else if (typeof this.__front === 'string') {
str += ' front="'+this.__front+'"';
} else if (Array.isArray( this.__front)) {
if (typeof this.__front[0].toXMLNode !== 'function') {
str += ' front="'+this.__front.join(' ')+'"';
} else {
for (let i in this.__front) {
if (typeof this.__front[i].toXMLNode === 'function') {
str += this.__front[i].toXMLNode('front');
}
}
}
} else {
str += ' front="'+this.__front+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__left === null) {
} else if (typeof this.__left.toXMLNode === 'function') {
str += this.__left.toXMLNode('left');
} else if (typeof this.__left === 'string') {
str += ' left="'+this.__left+'"';
} else if (Array.isArray( this.__left)) {
if (typeof this.__left[0].toXMLNode !== 'function') {
str += ' left="'+this.__left.join(' ')+'"';
} else {
for (let i in this.__left) {
if (typeof this.__left[i].toXMLNode === 'function') {
str += this.__left[i].toXMLNode('left');
}
}
}
} else {
str += ' left="'+this.__left+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__right === null) {
} else if (typeof this.__right.toXMLNode === 'function') {
str += this.__right.toXMLNode('right');
} else if (typeof this.__right === 'string') {
str += ' right="'+this.__right+'"';
} else if (Array.isArray( this.__right)) {
if (typeof this.__right[0].toXMLNode !== 'function') {
str += ' right="'+this.__right.join(' ')+'"';
} else {
for (let i in this.__right) {
if (typeof this.__right[i].toXMLNode === 'function') {
str += this.__right[i].toXMLNode('right');
}
}
}
} else {
str += ' right="'+this.__right+'"';
}
if (this.__top === null) {
} else if (typeof this.__top.toXMLNode === 'function') {
str += this.__top.toXMLNode('top');
} else if (typeof this.__top === 'string') {
str += ' top="'+this.__top+'"';
} else if (Array.isArray( this.__top)) {
if (typeof this.__top[0].toXMLNode !== 'function') {
str += ' top="'+this.__top.join(' ')+'"';
} else {
for (let i in this.__top) {
if (typeof this.__top[i].toXMLNode === 'function') {
str += this.__top[i].toXMLNode('top');
}
}
}
} else {
str += ' top="'+this.__top+'"';
}
str += ''
return str;
}
}
export class ComposedShader extends X3DShaderNode {
constructor(kwargs = {}) {
super(kwargs);
var activate = kwargs["activate"] || null;
this.__activate = activate;
var field = kwargs["field"] || null;
this.__field = field;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Selected = kwargs["Selected"] || null;
this.__Selected = Selected;
var Valid = kwargs["Valid"] || null;
this.__Valid = Valid;
var language = kwargs["language"] || null;
this.__language = language;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var parts = kwargs["parts"] || null;
this.__parts = parts;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
var field = kwargs["field"] || null;
this.__field = field;
}
set activate(activate = null) {
this.__activate = [activate];
return this;
}
addActivate(activate = null) {
if (this.__activate == null) {
this.__activate = [];
}
this.__activate.append(activate);
return this;
}
set field(field = null) {
this.__field = [field];
return this;
}
addField(field = null) {
if (this.__field == null) {
this.__field = [];
}
this.__field.append(field);
return this;
}
removeField(field) {
for( let i = 0; i < this.__field.length; i++) {
if ( this.__field[i] === field) {
this.__field.splice(i, 1);
}
}
return this.__field;
}
get field() {
return this.__field;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isSelected() {
return this.__Selected;
}
get isValid() {
return this.__Valid;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set parts(parts = null) {
this.__parts = [parts];
return this;
}
addParts(parts = null) {
if (this.__parts == null) {
this.__parts = [];
}
this.__parts.append(parts);
return this;
}
removeParts(parts) {
for( let i = 0; i < this.__parts.length; i++) {
if ( this.__parts[i] === parts) {
this.__parts.splice(i, 1);
}
}
return this.__parts;
}
get parts() {
return this.__parts;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
set sourceCode(sourceCode = null) {
this.__sourceCode = [sourceCode];
return this;
}
addSourceCode(sourceCode = null) {
if (this.__sourceCode == null) {
this.__sourceCode = [];
}
this.__sourceCode.append(sourceCode);
return this;
}
set field(field = null) {
this.__field = [field];
return this;
}
addField(field = null) {
if (this.__field == null) {
this.__field = [];
}
this.__field.append(field);
return this;
}
removeField(field) {
for( let i = 0; i < this.__field.length; i++) {
if ( this.__field[i] === field) {
this.__field.splice(i, 1);
}
}
return this.__field;
}
get field() {
return this.__field;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__field === null) {
} else if (typeof this.__field.toXMLNode === 'function') {
str += this.__field.toXMLNode('field');
} else if (typeof this.__field === 'string') {
str += ' field="'+this.__field+'"';
} else if (Array.isArray( this.__field)) {
if (typeof this.__field[0].toXMLNode !== 'function') {
str += ' field="'+this.__field.join(' ')+'"';
} else {
for (let i in this.__field) {
if (typeof this.__field[i].toXMLNode === 'function') {
str += this.__field[i].toXMLNode('field');
}
}
}
} else {
str += ' field="'+this.__field+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__parts === null) {
} else if (typeof this.__parts.toXMLNode === 'function') {
str += this.__parts.toXMLNode('parts');
} else if (typeof this.__parts === 'string') {
str += ' parts="'+this.__parts+'"';
} else if (Array.isArray( this.__parts)) {
if (typeof this.__parts[0].toXMLNode !== 'function') {
str += ' parts="'+this.__parts.join(' ')+'"';
} else {
for (let i in this.__parts) {
if (typeof this.__parts[i].toXMLNode === 'function') {
str += this.__parts[i].toXMLNode('parts');
}
}
}
} else {
str += ' parts="'+this.__parts+'"';
}
str += ''
return str;
}
}
export class ComposedTexture3D extends X3DTexture3DNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var repeatR = kwargs["repeatR"] || false;
this.__repeatR = repeatR;
var repeatS = kwargs["repeatS"] || false;
this.__repeatS = repeatS;
var repeatT = kwargs["repeatT"] || false;
this.__repeatT = repeatT;
var texture = kwargs["texture"] || null;
this.__texture = texture;
var textureProperties = kwargs["textureProperties"] || null;
this.__textureProperties = textureProperties;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set texture(texture = null) {
this.__texture = [texture];
return this;
}
addTexture(texture = null) {
if (this.__texture == null) {
this.__texture = [];
}
this.__texture.append(texture);
return this;
}
removeTexture(texture) {
for( let i = 0; i < this.__texture.length; i++) {
if ( this.__texture[i] === texture) {
this.__texture.splice(i, 1);
}
}
return this.__texture;
}
get texture() {
return this.__texture;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__texture === null) {
} else if (typeof this.__texture.toXMLNode === 'function') {
str += this.__texture.toXMLNode('texture');
} else if (typeof this.__texture === 'string') {
str += ' texture="'+this.__texture+'"';
} else if (Array.isArray( this.__texture)) {
if (typeof this.__texture[0].toXMLNode !== 'function') {
str += ' texture="'+this.__texture.join(' ')+'"';
} else {
for (let i in this.__texture) {
if (typeof this.__texture[i].toXMLNode === 'function') {
str += this.__texture[i].toXMLNode('texture');
}
}
}
} else {
str += ' texture="'+this.__texture+'"';
}
if (this.__textureProperties === null) {
} else if (typeof this.__textureProperties.toXMLNode === 'function') {
str += this.__textureProperties.toXMLNode('textureProperties');
} else if (typeof this.__textureProperties === 'string') {
str += ' textureProperties="'+this.__textureProperties+'"';
} else if (Array.isArray( this.__textureProperties)) {
if (typeof this.__textureProperties[0].toXMLNode !== 'function') {
str += ' textureProperties="'+this.__textureProperties.join(' ')+'"';
} else {
for (let i in this.__textureProperties) {
if (typeof this.__textureProperties[i].toXMLNode === 'function') {
str += this.__textureProperties[i].toXMLNode('textureProperties');
}
}
}
} else {
str += ' textureProperties="'+this.__textureProperties+'"';
}
str += ''
return str;
}
}
export class ComposedVolumeStyle extends X3DComposableVolumeRenderStyleNode {
constructor(kwargs = {}) {
super(kwargs);
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var renderStyle = kwargs["renderStyle"] || null;
this.__renderStyle = renderStyle;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set renderStyle(renderStyle = null) {
this.__renderStyle = [renderStyle];
return this;
}
addRenderStyle(renderStyle = null) {
if (this.__renderStyle == null) {
this.__renderStyle = [];
}
this.__renderStyle.append(renderStyle);
return this;
}
removeRenderStyle(renderStyle) {
for( let i = 0; i < this.__renderStyle.length; i++) {
if ( this.__renderStyle[i] === renderStyle) {
this.__renderStyle.splice(i, 1);
}
}
return this.__renderStyle;
}
get renderStyle() {
return this.__renderStyle;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__renderStyle === null) {
} else if (typeof this.__renderStyle.toXMLNode === 'function') {
str += this.__renderStyle.toXMLNode('renderStyle');
} else if (typeof this.__renderStyle === 'string') {
str += ' renderStyle="'+this.__renderStyle+'"';
} else if (Array.isArray( this.__renderStyle)) {
if (typeof this.__renderStyle[0].toXMLNode !== 'function') {
str += ' renderStyle="'+this.__renderStyle.join(' ')+'"';
} else {
for (let i in this.__renderStyle) {
if (typeof this.__renderStyle[i].toXMLNode === 'function') {
str += this.__renderStyle[i].toXMLNode('renderStyle');
}
}
}
} else {
str += ' renderStyle="'+this.__renderStyle+'"';
}
str += ''
return str;
}
}
export class Cone extends X3DGeometryNode {
constructor(kwargs = {}) {
super(kwargs);
var bottom = kwargs["bottom"] || true;
this.__bottom = bottom;
var bottomRadius = kwargs["bottomRadius"] || 1;
if (bottomRadius == null || bottomRadius <= 0) {
return null;
}
this.__bottomRadius = bottomRadius;
var height = kwargs["height"] || 2;
if (height == null || height <= 0) {
return null;
}
this.__height = height;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var side = kwargs["side"] || true;
this.__side = side;
var solid = kwargs["solid"] || true;
this.__solid = solid;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class ConeEmitter extends X3DParticleEmitterNode {
constructor(kwargs = {}) {
super(kwargs);
var angle = kwargs["angle"] || 0.7854;
if (angle == null || angle < 0) {
return null;
}
if (angle == null || angle > 3.1416) {
return null;
}
this.__angle = angle;
var direction = kwargs["direction"] || [0, 1, 0];
if (direction == null || direction.length <= 0 || Math.min(direction) < -1) {
return null;
}
if (direction == null || direction.length <= 0 || Math.max(direction) > 1) {
return null;
}
this.__direction = direction;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var mass = kwargs["mass"] || 0;
if (mass == null || mass < 0) {
return null;
}
this.__mass = mass;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var position = kwargs["position"] || [0, 0, 0];
this.__position = position;
var speed = kwargs["speed"] || 0;
if (speed == null || speed < 0) {
return null;
}
this.__speed = speed;
var surfaceArea = kwargs["surfaceArea"] || 0;
if (surfaceArea == null || surfaceArea < 0) {
return null;
}
this.__surfaceArea = surfaceArea;
var variation = kwargs["variation"] || 0.25;
if (variation == null || variation < 0) {
return null;
}
this.__variation = variation;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set angle(angle = 0.7854) {
if (angle == null || angle < 0) {
return null;
}
if (angle == null || angle > 3.1416) {
return null;
}
this.__angle = [angle];
return this;
}
addAngle(angle = 0.7854) {
if (angle == null || angle < 0) {
return null;
}
if (angle == null || angle > 3.1416) {
return null;
}
if (this.__angle == null) {
this.__angle = [];
}
this.__angle.append(angle);
return this;
}
removeAngle(angle) {
for( let i = 0; i < this.__angle.length; i++) {
if ( this.__angle[i] === angle) {
this.__angle.splice(i, 1);
}
}
return this.__angle;
}
get angle() {
return this.__angle;
}
set direction(direction = [0, 1, 0]) {
if (direction == null || direction.length <= 0 || Math.min(direction) < -1) {
return null;
}
if (direction == null || direction.length <= 0 || Math.max(direction) > 1) {
return null;
}
this.__direction = [direction];
return this;
}
addDirection(direction = [0, 1, 0]) {
if (direction == null || direction.length <= 0 || Math.min(direction) < -1) {
return null;
}
if (direction == null || direction.length <= 0 || Math.max(direction) > 1) {
return null;
}
if (this.__direction == null) {
this.__direction = [];
}
this.__direction.append(direction);
return this;
}
removeDirection(direction) {
for( let i = 0; i < this.__direction.length; i++) {
if ( this.__direction[i] === direction) {
this.__direction.splice(i, 1);
}
}
return this.__direction;
}
get direction() {
return this.__direction;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set mass(mass = 0) {
if (mass == null || mass < 0) {
return null;
}
this.__mass = [mass];
return this;
}
addMass(mass = 0) {
if (mass == null || mass < 0) {
return null;
}
if (this.__mass == null) {
this.__mass = [];
}
this.__mass.append(mass);
return this;
}
removeMass(mass) {
for( let i = 0; i < this.__mass.length; i++) {
if ( this.__mass[i] === mass) {
this.__mass.splice(i, 1);
}
}
return this.__mass;
}
get mass() {
return this.__mass;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set position(position = [0, 0, 0]) {
this.__position = [position];
return this;
}
addPosition(position = [0, 0, 0]) {
if (this.__position == null) {
this.__position = [];
}
this.__position.append(position);
return this;
}
removePosition(position) {
for( let i = 0; i < this.__position.length; i++) {
if ( this.__position[i] === position) {
this.__position.splice(i, 1);
}
}
return this.__position;
}
get position() {
return this.__position;
}
set speed(speed = 0) {
if (speed == null || speed < 0) {
return null;
}
this.__speed = [speed];
return this;
}
addSpeed(speed = 0) {
if (speed == null || speed < 0) {
return null;
}
if (this.__speed == null) {
this.__speed = [];
}
this.__speed.append(speed);
return this;
}
removeSpeed(speed) {
for( let i = 0; i < this.__speed.length; i++) {
if ( this.__speed[i] === speed) {
this.__speed.splice(i, 1);
}
}
return this.__speed;
}
get speed() {
return this.__speed;
}
set variation(variation = 0.25) {
if (variation == null || variation < 0) {
return null;
}
this.__variation = [variation];
return this;
}
addVariation(variation = 0.25) {
if (variation == null || variation < 0) {
return null;
}
if (this.__variation == null) {
this.__variation = [];
}
this.__variation.append(variation);
return this;
}
removeVariation(variation) {
for( let i = 0; i < this.__variation.length; i++) {
if ( this.__variation[i] === variation) {
this.__variation.splice(i, 1);
}
}
return this.__variation;
}
get variation() {
return this.__variation;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class Contact extends X3DNode {
constructor(kwargs = {}) {
super(kwargs);
var appliedParameters = kwargs["appliedParameters"] || ["BOUNCE"];
if ('"BOUNCE"' === appliedParameters) {
} else if ('"USER_FRICTION"' === appliedParameters) {
} else if ('"FRICTION_COEFFICIENT-2"' === appliedParameters) {
} else if ('"ERROR_REDUCTION"' === appliedParameters) {
} else if ('"CONSTANT_FORCE"' === appliedParameters) {
} else if ('"SPEED-1"' === appliedParameters) {
} else if ('"SPEED-2"' === appliedParameters) {
} else if ('"SLIP-1"' === appliedParameters) {
} else if ('"SLIP-2"' === appliedParameters) {
} else {
return null;
}
this.__appliedParameters = appliedParameters;
var body1 = kwargs["body1"] || null;
this.__body1 = body1;
var body2 = kwargs["body2"] || null;
this.__body2 = body2;
var bounce = kwargs["bounce"] || 0;
if (bounce == null || bounce < 0) {
return null;
}
if (bounce == null || bounce > 1) {
return null;
}
this.__bounce = bounce;
var contactNormal = kwargs["contactNormal"] || [0, 1, 0];
this.__contactNormal = contactNormal;
var depth = kwargs["depth"] || 0;
this.__depth = depth;
var frictionCoefficients = kwargs["frictionCoefficients"] || [0, 0];
if (frictionCoefficients == null || frictionCoefficients.length <= 0 || Math.min(frictionCoefficients) < 0) {
return null;
}
this.__frictionCoefficients = frictionCoefficients;
var frictionDirection = kwargs["frictionDirection"] || [0, 1, 0];
this.__frictionDirection = frictionDirection;
var geometry1 = kwargs["geometry1"] || null;
this.__geometry1 = geometry1;
var geometry2 = kwargs["geometry2"] || null;
this.__geometry2 = geometry2;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var minBounceSpeed = kwargs["minBounceSpeed"] || 0;
if (minBounceSpeed == null || minBounceSpeed < 0) {
return null;
}
this.__minBounceSpeed = minBounceSpeed;
var position = kwargs["position"] || [0, 0, 0];
this.__position = position;
var slipCoefficients = kwargs["slipCoefficients"] || [0, 0];
this.__slipCoefficients = slipCoefficients;
var softnessConstantForceMix = kwargs["softnessConstantForceMix"] || 0.0001;
if (softnessConstantForceMix == null || softnessConstantForceMix < 0) {
return null;
}
if (softnessConstantForceMix == null || softnessConstantForceMix > 1) {
return null;
}
this.__softnessConstantForceMix = softnessConstantForceMix;
var softnessErrorCorrection = kwargs["softnessErrorCorrection"] || 0.8;
if (softnessErrorCorrection == null || softnessErrorCorrection < 0) {
return null;
}
if (softnessErrorCorrection == null || softnessErrorCorrection > 1) {
return null;
}
this.__softnessErrorCorrection = softnessErrorCorrection;
var surfaceSpeed = kwargs["surfaceSpeed"] || [0, 0];
this.__surfaceSpeed = surfaceSpeed;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set appliedParameters(appliedParameters = ["BOUNCE"]) {
if ('"BOUNCE"' === appliedParameters) {
} else if ('"USER_FRICTION"' === appliedParameters) {
} else if ('"FRICTION_COEFFICIENT-2"' === appliedParameters) {
} else if ('"ERROR_REDUCTION"' === appliedParameters) {
} else if ('"CONSTANT_FORCE"' === appliedParameters) {
} else if ('"SPEED-1"' === appliedParameters) {
} else if ('"SPEED-2"' === appliedParameters) {
} else if ('"SLIP-1"' === appliedParameters) {
} else if ('"SLIP-2"' === appliedParameters) {
} else {
return null;
}
this.__appliedParameters = [appliedParameters];
return this;
}
addAppliedParameters(appliedParameters = ["BOUNCE"]) {
if ('"BOUNCE"' === appliedParameters) {
} else if ('"USER_FRICTION"' === appliedParameters) {
} else if ('"FRICTION_COEFFICIENT-2"' === appliedParameters) {
} else if ('"ERROR_REDUCTION"' === appliedParameters) {
} else if ('"CONSTANT_FORCE"' === appliedParameters) {
} else if ('"SPEED-1"' === appliedParameters) {
} else if ('"SPEED-2"' === appliedParameters) {
} else if ('"SLIP-1"' === appliedParameters) {
} else if ('"SLIP-2"' === appliedParameters) {
} else {
return null;
}
if (this.__appliedParameters == null) {
this.__appliedParameters = [];
}
this.__appliedParameters.append(appliedParameters);
return this;
}
removeAppliedParameters(appliedParameters) {
for( let i = 0; i < this.__appliedParameters.length; i++) {
if ( this.__appliedParameters[i] === appliedParameters) {
this.__appliedParameters.splice(i, 1);
}
}
return this.__appliedParameters;
}
get appliedParameters() {
return this.__appliedParameters;
}
set body1(body1 = null) {
this.__body1 = [body1];
return this;
}
addBody1(body1 = null) {
if (this.__body1 == null) {
this.__body1 = [];
}
this.__body1.append(body1);
return this;
}
removeBody1(body1) {
for( let i = 0; i < this.__body1.length; i++) {
if ( this.__body1[i] === body1) {
this.__body1.splice(i, 1);
}
}
return this.__body1;
}
get body1() {
return this.__body1;
}
set body2(body2 = null) {
this.__body2 = [body2];
return this;
}
addBody2(body2 = null) {
if (this.__body2 == null) {
this.__body2 = [];
}
this.__body2.append(body2);
return this;
}
removeBody2(body2) {
for( let i = 0; i < this.__body2.length; i++) {
if ( this.__body2[i] === body2) {
this.__body2.splice(i, 1);
}
}
return this.__body2;
}
get body2() {
return this.__body2;
}
set bounce(bounce = 0) {
if (bounce == null || bounce < 0) {
return null;
}
if (bounce == null || bounce > 1) {
return null;
}
this.__bounce = [bounce];
return this;
}
addBounce(bounce = 0) {
if (bounce == null || bounce < 0) {
return null;
}
if (bounce == null || bounce > 1) {
return null;
}
if (this.__bounce == null) {
this.__bounce = [];
}
this.__bounce.append(bounce);
return this;
}
removeBounce(bounce) {
for( let i = 0; i < this.__bounce.length; i++) {
if ( this.__bounce[i] === bounce) {
this.__bounce.splice(i, 1);
}
}
return this.__bounce;
}
get bounce() {
return this.__bounce;
}
set contactNormal(contactNormal = [0, 1, 0]) {
this.__contactNormal = [contactNormal];
return this;
}
addContactNormal(contactNormal = [0, 1, 0]) {
if (this.__contactNormal == null) {
this.__contactNormal = [];
}
this.__contactNormal.append(contactNormal);
return this;
}
removeContactNormal(contactNormal) {
for( let i = 0; i < this.__contactNormal.length; i++) {
if ( this.__contactNormal[i] === contactNormal) {
this.__contactNormal.splice(i, 1);
}
}
return this.__contactNormal;
}
get contactNormal() {
return this.__contactNormal;
}
set depth(depth = 0) {
this.__depth = [depth];
return this;
}
addDepth(depth = 0) {
if (this.__depth == null) {
this.__depth = [];
}
this.__depth.append(depth);
return this;
}
removeDepth(depth) {
for( let i = 0; i < this.__depth.length; i++) {
if ( this.__depth[i] === depth) {
this.__depth.splice(i, 1);
}
}
return this.__depth;
}
get depth() {
return this.__depth;
}
set frictionCoefficients(frictionCoefficients = [0, 0]) {
if (frictionCoefficients == null || frictionCoefficients.length <= 0 || Math.min(frictionCoefficients) < 0) {
return null;
}
this.__frictionCoefficients = [frictionCoefficients];
return this;
}
addFrictionCoefficients(frictionCoefficients = [0, 0]) {
if (frictionCoefficients == null || frictionCoefficients.length <= 0 || Math.min(frictionCoefficients) < 0) {
return null;
}
if (this.__frictionCoefficients == null) {
this.__frictionCoefficients = [];
}
this.__frictionCoefficients.append(frictionCoefficients);
return this;
}
removeFrictionCoefficients(frictionCoefficients) {
for( let i = 0; i < this.__frictionCoefficients.length; i++) {
if ( this.__frictionCoefficients[i] === frictionCoefficients) {
this.__frictionCoefficients.splice(i, 1);
}
}
return this.__frictionCoefficients;
}
get frictionCoefficients() {
return this.__frictionCoefficients;
}
set frictionDirection(frictionDirection = [0, 1, 0]) {
this.__frictionDirection = [frictionDirection];
return this;
}
addFrictionDirection(frictionDirection = [0, 1, 0]) {
if (this.__frictionDirection == null) {
this.__frictionDirection = [];
}
this.__frictionDirection.append(frictionDirection);
return this;
}
removeFrictionDirection(frictionDirection) {
for( let i = 0; i < this.__frictionDirection.length; i++) {
if ( this.__frictionDirection[i] === frictionDirection) {
this.__frictionDirection.splice(i, 1);
}
}
return this.__frictionDirection;
}
get frictionDirection() {
return this.__frictionDirection;
}
set geometry1(geometry1 = null) {
this.__geometry1 = [geometry1];
return this;
}
addGeometry1(geometry1 = null) {
if (this.__geometry1 == null) {
this.__geometry1 = [];
}
this.__geometry1.append(geometry1);
return this;
}
removeGeometry1(geometry1) {
for( let i = 0; i < this.__geometry1.length; i++) {
if ( this.__geometry1[i] === geometry1) {
this.__geometry1.splice(i, 1);
}
}
return this.__geometry1;
}
get geometry1() {
return this.__geometry1;
}
set geometry2(geometry2 = null) {
this.__geometry2 = [geometry2];
return this;
}
addGeometry2(geometry2 = null) {
if (this.__geometry2 == null) {
this.__geometry2 = [];
}
this.__geometry2.append(geometry2);
return this;
}
removeGeometry2(geometry2) {
for( let i = 0; i < this.__geometry2.length; i++) {
if ( this.__geometry2[i] === geometry2) {
this.__geometry2.splice(i, 1);
}
}
return this.__geometry2;
}
get geometry2() {
return this.__geometry2;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set minBounceSpeed(minBounceSpeed = 0) {
if (minBounceSpeed == null || minBounceSpeed < 0) {
return null;
}
this.__minBounceSpeed = [minBounceSpeed];
return this;
}
addMinBounceSpeed(minBounceSpeed = 0) {
if (minBounceSpeed == null || minBounceSpeed < 0) {
return null;
}
if (this.__minBounceSpeed == null) {
this.__minBounceSpeed = [];
}
this.__minBounceSpeed.append(minBounceSpeed);
return this;
}
removeMinBounceSpeed(minBounceSpeed) {
for( let i = 0; i < this.__minBounceSpeed.length; i++) {
if ( this.__minBounceSpeed[i] === minBounceSpeed) {
this.__minBounceSpeed.splice(i, 1);
}
}
return this.__minBounceSpeed;
}
get minBounceSpeed() {
return this.__minBounceSpeed;
}
set position(position = [0, 0, 0]) {
this.__position = [position];
return this;
}
addPosition(position = [0, 0, 0]) {
if (this.__position == null) {
this.__position = [];
}
this.__position.append(position);
return this;
}
removePosition(position) {
for( let i = 0; i < this.__position.length; i++) {
if ( this.__position[i] === position) {
this.__position.splice(i, 1);
}
}
return this.__position;
}
get position() {
return this.__position;
}
set slipCoefficients(slipCoefficients = [0, 0]) {
this.__slipCoefficients = [slipCoefficients];
return this;
}
addSlipCoefficients(slipCoefficients = [0, 0]) {
if (this.__slipCoefficients == null) {
this.__slipCoefficients = [];
}
this.__slipCoefficients.append(slipCoefficients);
return this;
}
removeSlipCoefficients(slipCoefficients) {
for( let i = 0; i < this.__slipCoefficients.length; i++) {
if ( this.__slipCoefficients[i] === slipCoefficients) {
this.__slipCoefficients.splice(i, 1);
}
}
return this.__slipCoefficients;
}
get slipCoefficients() {
return this.__slipCoefficients;
}
set softnessConstantForceMix(softnessConstantForceMix = 0.0001) {
if (softnessConstantForceMix == null || softnessConstantForceMix < 0) {
return null;
}
if (softnessConstantForceMix == null || softnessConstantForceMix > 1) {
return null;
}
this.__softnessConstantForceMix = [softnessConstantForceMix];
return this;
}
addSoftnessConstantForceMix(softnessConstantForceMix = 0.0001) {
if (softnessConstantForceMix == null || softnessConstantForceMix < 0) {
return null;
}
if (softnessConstantForceMix == null || softnessConstantForceMix > 1) {
return null;
}
if (this.__softnessConstantForceMix == null) {
this.__softnessConstantForceMix = [];
}
this.__softnessConstantForceMix.append(softnessConstantForceMix);
return this;
}
removeSoftnessConstantForceMix(softnessConstantForceMix) {
for( let i = 0; i < this.__softnessConstantForceMix.length; i++) {
if ( this.__softnessConstantForceMix[i] === softnessConstantForceMix) {
this.__softnessConstantForceMix.splice(i, 1);
}
}
return this.__softnessConstantForceMix;
}
get softnessConstantForceMix() {
return this.__softnessConstantForceMix;
}
set softnessErrorCorrection(softnessErrorCorrection = 0.8) {
if (softnessErrorCorrection == null || softnessErrorCorrection < 0) {
return null;
}
if (softnessErrorCorrection == null || softnessErrorCorrection > 1) {
return null;
}
this.__softnessErrorCorrection = [softnessErrorCorrection];
return this;
}
addSoftnessErrorCorrection(softnessErrorCorrection = 0.8) {
if (softnessErrorCorrection == null || softnessErrorCorrection < 0) {
return null;
}
if (softnessErrorCorrection == null || softnessErrorCorrection > 1) {
return null;
}
if (this.__softnessErrorCorrection == null) {
this.__softnessErrorCorrection = [];
}
this.__softnessErrorCorrection.append(softnessErrorCorrection);
return this;
}
removeSoftnessErrorCorrection(softnessErrorCorrection) {
for( let i = 0; i < this.__softnessErrorCorrection.length; i++) {
if ( this.__softnessErrorCorrection[i] === softnessErrorCorrection) {
this.__softnessErrorCorrection.splice(i, 1);
}
}
return this.__softnessErrorCorrection;
}
get softnessErrorCorrection() {
return this.__softnessErrorCorrection;
}
set surfaceSpeed(surfaceSpeed = [0, 0]) {
this.__surfaceSpeed = [surfaceSpeed];
return this;
}
addSurfaceSpeed(surfaceSpeed = [0, 0]) {
if (this.__surfaceSpeed == null) {
this.__surfaceSpeed = [];
}
this.__surfaceSpeed.append(surfaceSpeed);
return this;
}
removeSurfaceSpeed(surfaceSpeed) {
for( let i = 0; i < this.__surfaceSpeed.length; i++) {
if ( this.__surfaceSpeed[i] === surfaceSpeed) {
this.__surfaceSpeed.splice(i, 1);
}
}
return this.__surfaceSpeed;
}
get surfaceSpeed() {
return this.__surfaceSpeed;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__body1 === null) {
} else if (typeof this.__body1.toXMLNode === 'function') {
str += this.__body1.toXMLNode('body1');
} else if (typeof this.__body1 === 'string') {
str += ' body1="'+this.__body1+'"';
} else if (Array.isArray( this.__body1)) {
if (typeof this.__body1[0].toXMLNode !== 'function') {
str += ' body1="'+this.__body1.join(' ')+'"';
} else {
for (let i in this.__body1) {
if (typeof this.__body1[i].toXMLNode === 'function') {
str += this.__body1[i].toXMLNode('body1');
}
}
}
} else {
str += ' body1="'+this.__body1+'"';
}
if (this.__body2 === null) {
} else if (typeof this.__body2.toXMLNode === 'function') {
str += this.__body2.toXMLNode('body2');
} else if (typeof this.__body2 === 'string') {
str += ' body2="'+this.__body2+'"';
} else if (Array.isArray( this.__body2)) {
if (typeof this.__body2[0].toXMLNode !== 'function') {
str += ' body2="'+this.__body2.join(' ')+'"';
} else {
for (let i in this.__body2) {
if (typeof this.__body2[i].toXMLNode === 'function') {
str += this.__body2[i].toXMLNode('body2');
}
}
}
} else {
str += ' body2="'+this.__body2+'"';
}
if (this.__geometry1 === null) {
} else if (typeof this.__geometry1.toXMLNode === 'function') {
str += this.__geometry1.toXMLNode('geometry1');
} else if (typeof this.__geometry1 === 'string') {
str += ' geometry1="'+this.__geometry1+'"';
} else if (Array.isArray( this.__geometry1)) {
if (typeof this.__geometry1[0].toXMLNode !== 'function') {
str += ' geometry1="'+this.__geometry1.join(' ')+'"';
} else {
for (let i in this.__geometry1) {
if (typeof this.__geometry1[i].toXMLNode === 'function') {
str += this.__geometry1[i].toXMLNode('geometry1');
}
}
}
} else {
str += ' geometry1="'+this.__geometry1+'"';
}
if (this.__geometry2 === null) {
} else if (typeof this.__geometry2.toXMLNode === 'function') {
str += this.__geometry2.toXMLNode('geometry2');
} else if (typeof this.__geometry2 === 'string') {
str += ' geometry2="'+this.__geometry2+'"';
} else if (Array.isArray( this.__geometry2)) {
if (typeof this.__geometry2[0].toXMLNode !== 'function') {
str += ' geometry2="'+this.__geometry2.join(' ')+'"';
} else {
for (let i in this.__geometry2) {
if (typeof this.__geometry2[i].toXMLNode === 'function') {
str += this.__geometry2[i].toXMLNode('geometry2');
}
}
}
} else {
str += ' geometry2="'+this.__geometry2+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class Contour2D extends X3DNode {
constructor(kwargs = {}) {
super(kwargs);
var children_ = kwargs["children_"] || null;
this.__children_ = children_;
var children = kwargs["children"] || null;
this.__children = children;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var children_ = kwargs["children_"] || null;
this.__children_ = children_;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
addChildren(children_ = null) {
if (this.__children_ == null) {
this.__children_ = [];
}
this.__children_.append(children_);
return this;
}
set children(children = null) {
this.__children = [children];
return this;
}
addChildren(children = null) {
if (this.__children == null) {
this.__children = [];
}
this.__children.append(children);
return this;
}
removeChildren(children) {
for( let i = 0; i < this.__children.length; i++) {
if ( this.__children[i] === children) {
this.__children.splice(i, 1);
}
}
return this.__children;
}
get children() {
return this.__children;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__children_ === null) {
} else if (typeof this.__children_.toXMLNode === 'function') {
str += this.__children_.toXMLNode('children_');
} else if (typeof this.__children_ === 'string') {
str += ' children_="'+this.__children_+'"';
} else if (Array.isArray( this.__children_)) {
if (typeof this.__children_[0].toXMLNode !== 'function') {
str += ' children_="'+this.__children_.join(' ')+'"';
} else {
for (let i in this.__children_) {
if (typeof this.__children_[i].toXMLNode === 'function') {
str += this.__children_[i].toXMLNode('children_');
}
}
}
} else {
str += ' children_="'+this.__children_+'"';
}
if (this.__children === null) {
} else if (typeof this.__children.toXMLNode === 'function') {
str += this.__children.toXMLNode('children');
} else if (typeof this.__children === 'string') {
str += ' children="'+this.__children+'"';
} else if (Array.isArray( this.__children)) {
if (typeof this.__children[0].toXMLNode !== 'function') {
str += ' children="'+this.__children.join(' ')+'"';
} else {
for (let i in this.__children) {
if (typeof this.__children[i].toXMLNode === 'function') {
str += this.__children[i].toXMLNode('children');
}
}
}
} else {
str += ' children="'+this.__children+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__children_ === null) {
} else if (typeof this.__children_.toXMLNode === 'function') {
str += this.__children_.toXMLNode('children_');
} else if (typeof this.__children_ === 'string') {
str += ' children_="'+this.__children_+'"';
} else if (Array.isArray( this.__children_)) {
if (typeof this.__children_[0].toXMLNode !== 'function') {
str += ' children_="'+this.__children_.join(' ')+'"';
} else {
for (let i in this.__children_) {
if (typeof this.__children_[i].toXMLNode === 'function') {
str += this.__children_[i].toXMLNode('children_');
}
}
}
} else {
str += ' children_="'+this.__children_+'"';
}
str += ''
return str;
}
}
export class ContourPolyline2D extends X3DNurbsControlCurveNode {
constructor(kwargs = {}) {
super(kwargs);
var controlPoint = kwargs["controlPoint"] || null;
this.__controlPoint = controlPoint;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set controlPoint(controlPoint = null) {
this.__controlPoint = [controlPoint];
return this;
}
addControlPoint(controlPoint = null) {
if (this.__controlPoint == null) {
this.__controlPoint = [];
}
this.__controlPoint.append(controlPoint);
return this;
}
removeControlPoint(controlPoint) {
for( let i = 0; i < this.__controlPoint.length; i++) {
if ( this.__controlPoint[i] === controlPoint) {
this.__controlPoint.splice(i, 1);
}
}
return this.__controlPoint;
}
get controlPoint() {
return this.__controlPoint;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class Coordinate extends X3DCoordinateNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var point = kwargs["point"] || null;
this.__point = point;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set point(point = null) {
this.__point = [point];
return this;
}
addPoint(point = null) {
if (this.__point == null) {
this.__point = [];
}
this.__point.append(point);
return this;
}
removePoint(point) {
for( let i = 0; i < this.__point.length; i++) {
if ( this.__point[i] === point) {
this.__point.splice(i, 1);
}
}
return this.__point;
}
get point() {
return this.__point;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class CoordinateChaser extends X3DChaserNode {
constructor(kwargs = {}) {
super(kwargs);
var duration = kwargs["duration"] || 1;
if (duration == null || duration < 0) {
return null;
}
this.__duration = duration;
var initialDestination = kwargs["initialDestination"] || [0, 0, 0];
this.__initialDestination = initialDestination;
var initialValue = kwargs["initialValue"] || [0, 0, 0];
this.__initialValue = initialValue;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var destination = kwargs["destination"] || null;
this.__destination = destination;
var value = kwargs["value"] || null;
this.__value = value;
var value_changed = kwargs["value_changed"] || null;
this.__value_changed = value_changed;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set set_destination(destination = null) {
this.__destination = [destination];
return this;
}
set set_value(value = null) {
this.__value = [value];
return this;
}
removevalue_changed(value_changed) {
for( let i = 0; i < this.__value_changed.length; i++) {
if ( this.__value_changed[i] === value_changed) {
this.__value_changed.splice(i, 1);
}
}
return this.__value_changed;
}
get value_changed() {
return this.__value_changed;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class CoordinateDamper extends X3DDamperNode {
constructor(kwargs = {}) {
super(kwargs);
var initialDestination = kwargs["initialDestination"] || [0, 0, 0];
this.__initialDestination = initialDestination;
var initialValue = kwargs["initialValue"] || [0, 0, 0];
this.__initialValue = initialValue;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var order = kwargs["order"] || 3;
if (order == null || order < 0) {
return null;
}
if (order == null || order > 5) {
return null;
}
this.__order = order;
var destination = kwargs["destination"] || null;
this.__destination = destination;
var value = kwargs["value"] || null;
this.__value = value;
var tau = kwargs["tau"] || 0.3;
if (tau == null || tau < 0) {
return null;
}
this.__tau = tau;
var tolerance = kwargs["tolerance"] || -1;
this.__tolerance = tolerance;
var value_changed = kwargs["value_changed"] || null;
this.__value_changed = value_changed;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set set_destination(destination = null) {
this.__destination = [destination];
return this;
}
set set_value(value = null) {
this.__value = [value];
return this;
}
set tau(tau = 0.3) {
if (tau == null || tau < 0) {
return null;
}
this.__tau = [tau];
return this;
}
addTau(tau = 0.3) {
if (tau == null || tau < 0) {
return null;
}
if (this.__tau == null) {
this.__tau = [];
}
this.__tau.append(tau);
return this;
}
removeTau(tau) {
for( let i = 0; i < this.__tau.length; i++) {
if ( this.__tau[i] === tau) {
this.__tau.splice(i, 1);
}
}
return this.__tau;
}
get tau() {
return this.__tau;
}
set tolerance(tolerance = -1) {
this.__tolerance = [tolerance];
return this;
}
addTolerance(tolerance = -1) {
if (this.__tolerance == null) {
this.__tolerance = [];
}
this.__tolerance.append(tolerance);
return this;
}
removeTolerance(tolerance) {
for( let i = 0; i < this.__tolerance.length; i++) {
if ( this.__tolerance[i] === tolerance) {
this.__tolerance.splice(i, 1);
}
}
return this.__tolerance;
}
get tolerance() {
return this.__tolerance;
}
removevalue_changed(value_changed) {
for( let i = 0; i < this.__value_changed.length; i++) {
if ( this.__value_changed[i] === value_changed) {
this.__value_changed.splice(i, 1);
}
}
return this.__value_changed;
}
get value_changed() {
return this.__value_changed;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class CoordinateDouble extends X3DCoordinateNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var point = kwargs["point"] || null;
this.__point = point;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set point(point = null) {
this.__point = [point];
return this;
}
addPoint(point = null) {
if (this.__point == null) {
this.__point = [];
}
this.__point.append(point);
return this;
}
removePoint(point) {
for( let i = 0; i < this.__point.length; i++) {
if ( this.__point[i] === point) {
this.__point.splice(i, 1);
}
}
return this.__point;
}
get point() {
return this.__point;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class CoordinateInterpolator extends X3DInterpolatorNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var key = kwargs["key"] || null;
this.__key = key;
var keyValue = kwargs["keyValue"] || null;
this.__keyValue = keyValue;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var fraction = kwargs["fraction"] || null;
this.__fraction = fraction;
var value_changed = kwargs["value_changed"] || null;
this.__value_changed = value_changed;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set key(key = null) {
this.__key = [key];
return this;
}
addKey(key = null) {
if (this.__key == null) {
this.__key = [];
}
this.__key.append(key);
return this;
}
removeKey(key) {
for( let i = 0; i < this.__key.length; i++) {
if ( this.__key[i] === key) {
this.__key.splice(i, 1);
}
}
return this.__key;
}
get key() {
return this.__key;
}
set keyValue(keyValue = null) {
this.__keyValue = [keyValue];
return this;
}
addKeyValue(keyValue = null) {
if (this.__keyValue == null) {
this.__keyValue = [];
}
this.__keyValue.append(keyValue);
return this;
}
removeKeyValue(keyValue) {
for( let i = 0; i < this.__keyValue.length; i++) {
if ( this.__keyValue[i] === keyValue) {
this.__keyValue.splice(i, 1);
}
}
return this.__keyValue;
}
get keyValue() {
return this.__keyValue;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set set_fraction(fraction = null) {
this.__fraction = [fraction];
return this;
}
removevalue_changed(value_changed) {
for( let i = 0; i < this.__value_changed.length; i++) {
if ( this.__value_changed[i] === value_changed) {
this.__value_changed.splice(i, 1);
}
}
return this.__value_changed;
}
get value_changed() {
return this.__value_changed;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class CoordinateInterpolator2D extends X3DInterpolatorNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var key = kwargs["key"] || null;
this.__key = key;
var keyValue = kwargs["keyValue"] || null;
this.__keyValue = keyValue;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var fraction = kwargs["fraction"] || null;
this.__fraction = fraction;
var value_changed = kwargs["value_changed"] || null;
this.__value_changed = value_changed;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set key(key = null) {
this.__key = [key];
return this;
}
addKey(key = null) {
if (this.__key == null) {
this.__key = [];
}
this.__key.append(key);
return this;
}
removeKey(key) {
for( let i = 0; i < this.__key.length; i++) {
if ( this.__key[i] === key) {
this.__key.splice(i, 1);
}
}
return this.__key;
}
get key() {
return this.__key;
}
set keyValue(keyValue = null) {
this.__keyValue = [keyValue];
return this;
}
addKeyValue(keyValue = null) {
if (this.__keyValue == null) {
this.__keyValue = [];
}
this.__keyValue.append(keyValue);
return this;
}
removeKeyValue(keyValue) {
for( let i = 0; i < this.__keyValue.length; i++) {
if ( this.__keyValue[i] === keyValue) {
this.__keyValue.splice(i, 1);
}
}
return this.__keyValue;
}
get keyValue() {
return this.__keyValue;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set set_fraction(fraction = null) {
this.__fraction = [fraction];
return this;
}
removevalue_changed(value_changed) {
for( let i = 0; i < this.__value_changed.length; i++) {
if ( this.__value_changed[i] === value_changed) {
this.__value_changed.splice(i, 1);
}
}
return this.__value_changed;
}
get value_changed() {
return this.__value_changed;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class Cylinder extends X3DGeometryNode {
constructor(kwargs = {}) {
super(kwargs);
var bottom = kwargs["bottom"] || true;
this.__bottom = bottom;
var height = kwargs["height"] || 2;
if (height == null || height <= 0) {
return null;
}
this.__height = height;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var radius = kwargs["radius"] || 1;
if (radius == null || radius <= 0) {
return null;
}
this.__radius = radius;
var side = kwargs["side"] || true;
this.__side = side;
var solid = kwargs["solid"] || true;
this.__solid = solid;
var top = kwargs["top"] || true;
this.__top = top;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set top(top = true) {
this.__top = [top];
return this;
}
addTop(top = true) {
if (this.__top == null) {
this.__top = [];
}
this.__top.append(top);
return this;
}
removeTop(top) {
for( let i = 0; i < this.__top.length; i++) {
if ( this.__top[i] === top) {
this.__top.splice(i, 1);
}
}
return this.__top;
}
get isTop() {
return this.__top;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class CylinderSensor extends X3DDragSensorNode {
constructor(kwargs = {}) {
super(kwargs);
var autoOffset = kwargs["autoOffset"] || true;
this.__autoOffset = autoOffset;
var axisRotation = kwargs["axisRotation"] || [0, 1, 0, 0];
this.__axisRotation = axisRotation;
var description = kwargs["description"] || null;
this.__description = description;
var diskAngle = kwargs["diskAngle"] || 0.26179167;
if (diskAngle == null || diskAngle < 0) {
return null;
}
if (diskAngle == null || diskAngle > 1.5708) {
return null;
}
this.__diskAngle = diskAngle;
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var Over = kwargs["Over"] || null;
this.__Over = Over;
var maxAngle = kwargs["maxAngle"] || -1;
if (maxAngle == null || maxAngle <= -6.2832) {
return null;
}
if (maxAngle == null || maxAngle >= 6.2832) {
return null;
}
this.__maxAngle = maxAngle;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var minAngle = kwargs["minAngle"] || 0;
if (minAngle == null || minAngle <= -6.2832) {
return null;
}
if (minAngle == null || minAngle >= 6.2832) {
return null;
}
this.__minAngle = minAngle;
var offset = kwargs["offset"] || 0;
this.__offset = offset;
var rotation_changed = kwargs["rotation_changed"] || null;
this.__rotation_changed = rotation_changed;
var trackPoint_changed = kwargs["trackPoint_changed"] || null;
this.__trackPoint_changed = trackPoint_changed;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set autoOffset(autoOffset = true) {
this.__autoOffset = [autoOffset];
return this;
}
addAutoOffset(autoOffset = true) {
if (this.__autoOffset == null) {
this.__autoOffset = [];
}
this.__autoOffset.append(autoOffset);
return this;
}
removeAutoOffset(autoOffset) {
for( let i = 0; i < this.__autoOffset.length; i++) {
if ( this.__autoOffset[i] === autoOffset) {
this.__autoOffset.splice(i, 1);
}
}
return this.__autoOffset;
}
get isAutoOffset() {
return this.__autoOffset;
}
set axisRotation(axisRotation = [0, 1, 0, 0]) {
this.__axisRotation = [axisRotation];
return this;
}
addAxisRotation(axisRotation = [0, 1, 0, 0]) {
if (this.__axisRotation == null) {
this.__axisRotation = [];
}
this.__axisRotation.append(axisRotation);
return this;
}
removeAxisRotation(axisRotation) {
for( let i = 0; i < this.__axisRotation.length; i++) {
if ( this.__axisRotation[i] === axisRotation) {
this.__axisRotation.splice(i, 1);
}
}
return this.__axisRotation;
}
get axisRotation() {
return this.__axisRotation;
}
set description(description = null) {
this.__description = [description];
return this;
}
addDescription(description = null) {
if (this.__description == null) {
this.__description = [];
}
this.__description.append(description);
return this;
}
removeDescription(description) {
for( let i = 0; i < this.__description.length; i++) {
if ( this.__description[i] === description) {
this.__description.splice(i, 1);
}
}
return this.__description;
}
get description() {
return this.__description;
}
set diskAngle(diskAngle = 0.26179167) {
if (diskAngle == null || diskAngle < 0) {
return null;
}
if (diskAngle == null || diskAngle > 1.5708) {
return null;
}
this.__diskAngle = [diskAngle];
return this;
}
addDiskAngle(diskAngle = 0.26179167) {
if (diskAngle == null || diskAngle < 0) {
return null;
}
if (diskAngle == null || diskAngle > 1.5708) {
return null;
}
if (this.__diskAngle == null) {
this.__diskAngle = [];
}
this.__diskAngle.append(diskAngle);
return this;
}
removeDiskAngle(diskAngle) {
for( let i = 0; i < this.__diskAngle.length; i++) {
if ( this.__diskAngle[i] === diskAngle) {
this.__diskAngle.splice(i, 1);
}
}
return this.__diskAngle;
}
get diskAngle() {
return this.__diskAngle;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
get isOver() {
return this.__Over;
}
set maxAngle(maxAngle = -1) {
if (maxAngle == null || maxAngle <= -6.2832) {
return null;
}
if (maxAngle == null || maxAngle >= 6.2832) {
return null;
}
this.__maxAngle = [maxAngle];
return this;
}
addMaxAngle(maxAngle = -1) {
if (maxAngle == null || maxAngle <= -6.2832) {
return null;
}
if (maxAngle == null || maxAngle >= 6.2832) {
return null;
}
if (this.__maxAngle == null) {
this.__maxAngle = [];
}
this.__maxAngle.append(maxAngle);
return this;
}
removeMaxAngle(maxAngle) {
for( let i = 0; i < this.__maxAngle.length; i++) {
if ( this.__maxAngle[i] === maxAngle) {
this.__maxAngle.splice(i, 1);
}
}
return this.__maxAngle;
}
get maxAngle() {
return this.__maxAngle;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set minAngle(minAngle = 0) {
if (minAngle == null || minAngle <= -6.2832) {
return null;
}
if (minAngle == null || minAngle >= 6.2832) {
return null;
}
this.__minAngle = [minAngle];
return this;
}
addMinAngle(minAngle = 0) {
if (minAngle == null || minAngle <= -6.2832) {
return null;
}
if (minAngle == null || minAngle >= 6.2832) {
return null;
}
if (this.__minAngle == null) {
this.__minAngle = [];
}
this.__minAngle.append(minAngle);
return this;
}
removeMinAngle(minAngle) {
for( let i = 0; i < this.__minAngle.length; i++) {
if ( this.__minAngle[i] === minAngle) {
this.__minAngle.splice(i, 1);
}
}
return this.__minAngle;
}
get minAngle() {
return this.__minAngle;
}
set offset(offset = 0) {
this.__offset = [offset];
return this;
}
addOffset(offset = 0) {
if (this.__offset == null) {
this.__offset = [];
}
this.__offset.append(offset);
return this;
}
removeOffset(offset) {
for( let i = 0; i < this.__offset.length; i++) {
if ( this.__offset[i] === offset) {
this.__offset.splice(i, 1);
}
}
return this.__offset;
}
get offset() {
return this.__offset;
}
removerotation_changed(rotation_changed) {
for( let i = 0; i < this.__rotation_changed.length; i++) {
if ( this.__rotation_changed[i] === rotation_changed) {
this.__rotation_changed.splice(i, 1);
}
}
return this.__rotation_changed;
}
get rotation_changed() {
return this.__rotation_changed;
}
removetrackPoint_changed(trackPoint_changed) {
for( let i = 0; i < this.__trackPoint_changed.length; i++) {
if ( this.__trackPoint_changed[i] === trackPoint_changed) {
this.__trackPoint_changed.splice(i, 1);
}
}
return this.__trackPoint_changed;
}
get trackPoint_changed() {
return this.__trackPoint_changed;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class DirectionalLight extends X3DLightNode {
constructor(kwargs = {}) {
super(kwargs);
var ambientIntensity = kwargs["ambientIntensity"] || 0;
if (ambientIntensity == null || ambientIntensity < 0) {
return null;
}
if (ambientIntensity == null || ambientIntensity > 1) {
return null;
}
this.__ambientIntensity = ambientIntensity;
var color = kwargs["color"] || [1, 1, 1];
if (color == null || color.length <= 0 || Math.min(color) < 0) {
return null;
}
if (color == null || color.length <= 0 || Math.max(color) > 1) {
return null;
}
this.__color = color;
var direction = kwargs["direction"] || [0, 0, -1];
this.__direction = direction;
var global_ = kwargs["global_"] || false;
this.__global_ = global_;
var intensity = kwargs["intensity"] || 1;
if (intensity == null || intensity < 0) {
return null;
}
if (intensity == null || intensity > 1) {
return null;
}
this.__intensity = intensity;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var on = kwargs["on"] || true;
this.__on = on;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set ambientIntensity(ambientIntensity = 0) {
if (ambientIntensity == null || ambientIntensity < 0) {
return null;
}
if (ambientIntensity == null || ambientIntensity > 1) {
return null;
}
this.__ambientIntensity = [ambientIntensity];
return this;
}
addAmbientIntensity(ambientIntensity = 0) {
if (ambientIntensity == null || ambientIntensity < 0) {
return null;
}
if (ambientIntensity == null || ambientIntensity > 1) {
return null;
}
if (this.__ambientIntensity == null) {
this.__ambientIntensity = [];
}
this.__ambientIntensity.append(ambientIntensity);
return this;
}
removeAmbientIntensity(ambientIntensity) {
for( let i = 0; i < this.__ambientIntensity.length; i++) {
if ( this.__ambientIntensity[i] === ambientIntensity) {
this.__ambientIntensity.splice(i, 1);
}
}
return this.__ambientIntensity;
}
get ambientIntensity() {
return this.__ambientIntensity;
}
set color(color = [1, 1, 1]) {
if (color == null || color.length <= 0 || Math.min(color) < 0) {
return null;
}
if (color == null || color.length <= 0 || Math.max(color) > 1) {
return null;
}
this.__color = [color];
return this;
}
addColor(color = [1, 1, 1]) {
if (color == null || color.length <= 0 || Math.min(color) < 0) {
return null;
}
if (color == null || color.length <= 0 || Math.max(color) > 1) {
return null;
}
if (this.__color == null) {
this.__color = [];
}
this.__color.append(color);
return this;
}
removeColor(color) {
for( let i = 0; i < this.__color.length; i++) {
if ( this.__color[i] === color) {
this.__color.splice(i, 1);
}
}
return this.__color;
}
get color() {
return this.__color;
}
set direction(direction = [0, 0, -1]) {
this.__direction = [direction];
return this;
}
addDirection(direction = [0, 0, -1]) {
if (this.__direction == null) {
this.__direction = [];
}
this.__direction.append(direction);
return this;
}
removeDirection(direction) {
for( let i = 0; i < this.__direction.length; i++) {
if ( this.__direction[i] === direction) {
this.__direction.splice(i, 1);
}
}
return this.__direction;
}
get direction() {
return this.__direction;
}
set global(global_ = false) {
this.__global_ = [global_];
return this;
}
addGlobal(global_ = false) {
if (this.__global_ == null) {
this.__global_ = [];
}
this.__global_.append(global_);
return this;
}
removeGlobal(global_) {
for( let i = 0; i < this.__global_.length; i++) {
if ( this.__global_[i] === global_) {
this.__global_.splice(i, 1);
}
}
return this.__global_;
}
get isGlobal() {
return this.__global_;
}
set intensity(intensity = 1) {
if (intensity == null || intensity < 0) {
return null;
}
if (intensity == null || intensity > 1) {
return null;
}
this.__intensity = [intensity];
return this;
}
addIntensity(intensity = 1) {
if (intensity == null || intensity < 0) {
return null;
}
if (intensity == null || intensity > 1) {
return null;
}
if (this.__intensity == null) {
this.__intensity = [];
}
this.__intensity.append(intensity);
return this;
}
removeIntensity(intensity) {
for( let i = 0; i < this.__intensity.length; i++) {
if ( this.__intensity[i] === intensity) {
this.__intensity.splice(i, 1);
}
}
return this.__intensity;
}
get intensity() {
return this.__intensity;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set on(on = true) {
this.__on = [on];
return this;
}
addOn(on = true) {
if (this.__on == null) {
this.__on = [];
}
this.__on.append(on);
return this;
}
removeOn(on) {
for( let i = 0; i < this.__on.length; i++) {
if ( this.__on[i] === on) {
this.__on.splice(i, 1);
}
}
return this.__on;
}
get isOn() {
return this.__on;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class DISEntityManager extends X3DChildNode {
constructor(kwargs = {}) {
super(kwargs);
var EdEntities = kwargs["EdEntities"] || null;
this.__EdEntities = EdEntities;
var address = kwargs["address"] || "localhost";
this.__address = address;
var applicationID = kwargs["applicationID"] || 0;
this.__applicationID = applicationID;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var mapping = kwargs["mapping"] || null;
this.__mapping = mapping;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var port = kwargs["port"] || 0;
this.__port = port;
var DEntities = kwargs["DEntities"] || null;
this.__DEntities = DEntities;
var siteID = kwargs["siteID"] || 0;
this.__siteID = siteID;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
removeAddedEntities(EdEntities) {
for( let i = 0; i < this.__EdEntities.length; i++) {
if ( this.__EdEntities[i] === EdEntities) {
this.__EdEntities.splice(i, 1);
}
}
return this.__EdEntities;
}
get addEdEntities() {
return this.__EdEntities;
}
address(address = "localhost") {
if (this.__address == null) {
this.__address = [];
}
this.__address.append(address);
return this;
}
removeAddress(address) {
for( let i = 0; i < this.__address.length; i++) {
if ( this.__address[i] === address) {
this.__address.splice(i, 1);
}
}
return this.__address;
}
get address() {
return this.__address;
}
set applicationID(applicationID = 0) {
this.__applicationID = [applicationID];
return this;
}
addApplicationID(applicationID = 0) {
if (this.__applicationID == null) {
this.__applicationID = [];
}
this.__applicationID.append(applicationID);
return this;
}
removeApplicationID(applicationID) {
for( let i = 0; i < this.__applicationID.length; i++) {
if ( this.__applicationID[i] === applicationID) {
this.__applicationID.splice(i, 1);
}
}
return this.__applicationID;
}
get applicationID() {
return this.__applicationID;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set mapping(mapping = null) {
this.__mapping = [mapping];
return this;
}
addMapping(mapping = null) {
if (this.__mapping == null) {
this.__mapping = [];
}
this.__mapping.append(mapping);
return this;
}
removeMapping(mapping) {
for( let i = 0; i < this.__mapping.length; i++) {
if ( this.__mapping[i] === mapping) {
this.__mapping.splice(i, 1);
}
}
return this.__mapping;
}
get mapping() {
return this.__mapping;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set port(port = 0) {
this.__port = [port];
return this;
}
addPort(port = 0) {
if (this.__port == null) {
this.__port = [];
}
this.__port.append(port);
return this;
}
removePort(port) {
for( let i = 0; i < this.__port.length; i++) {
if ( this.__port[i] === port) {
this.__port.splice(i, 1);
}
}
return this.__port;
}
get port() {
return this.__port;
}
removeRemovedEntities(DEntities) {
for( let i = 0; i < this.__DEntities.length; i++) {
if ( this.__DEntities[i] === DEntities) {
this.__DEntities.splice(i, 1);
}
}
return this.__DEntities;
}
get removeDEntities() {
return this.__DEntities;
}
set siteID(siteID = 0) {
this.__siteID = [siteID];
return this;
}
addSiteID(siteID = 0) {
if (this.__siteID == null) {
this.__siteID = [];
}
this.__siteID.append(siteID);
return this;
}
removeSiteID(siteID) {
for( let i = 0; i < this.__siteID.length; i++) {
if ( this.__siteID[i] === siteID) {
this.__siteID.splice(i, 1);
}
}
return this.__siteID;
}
get siteID() {
return this.__siteID;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__EdEntities === null) {
} else if (typeof this.__EdEntities.toXMLNode === 'function') {
str += this.__EdEntities.toXMLNode('EdEntities');
} else if (typeof this.__EdEntities === 'string') {
str += ' EdEntities="'+this.__EdEntities+'"';
} else if (Array.isArray( this.__EdEntities)) {
if (typeof this.__EdEntities[0].toXMLNode !== 'function') {
str += ' EdEntities="'+this.__EdEntities.join(' ')+'"';
} else {
for (let i in this.__EdEntities) {
if (typeof this.__EdEntities[i].toXMLNode === 'function') {
str += this.__EdEntities[i].toXMLNode('EdEntities');
}
}
}
} else {
str += ' EdEntities="'+this.__EdEntities+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__mapping === null) {
} else if (typeof this.__mapping.toXMLNode === 'function') {
str += this.__mapping.toXMLNode('mapping');
} else if (typeof this.__mapping === 'string') {
str += ' mapping="'+this.__mapping+'"';
} else if (Array.isArray( this.__mapping)) {
if (typeof this.__mapping[0].toXMLNode !== 'function') {
str += ' mapping="'+this.__mapping.join(' ')+'"';
} else {
for (let i in this.__mapping) {
if (typeof this.__mapping[i].toXMLNode === 'function') {
str += this.__mapping[i].toXMLNode('mapping');
}
}
}
} else {
str += ' mapping="'+this.__mapping+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__DEntities === null) {
} else if (typeof this.__DEntities.toXMLNode === 'function') {
str += this.__DEntities.toXMLNode('DEntities');
} else if (typeof this.__DEntities === 'string') {
str += ' DEntities="'+this.__DEntities+'"';
} else if (Array.isArray( this.__DEntities)) {
if (typeof this.__DEntities[0].toXMLNode !== 'function') {
str += ' DEntities="'+this.__DEntities.join(' ')+'"';
} else {
for (let i in this.__DEntities) {
if (typeof this.__DEntities[i].toXMLNode === 'function') {
str += this.__DEntities[i].toXMLNode('DEntities');
}
}
}
} else {
str += ' DEntities="'+this.__DEntities+'"';
}
str += ''
return str;
}
}
export class DISEntityTypeMapping extends X3DInfoNode {
constructor(kwargs = {}) {
super(kwargs);
var category = kwargs["category"] || 0;
if (category == null || category < 0) {
return null;
}
if (category == null || category > 255) {
return null;
}
this.__category = category;
var country = kwargs["country"] || 0;
if (country == null || country < 0) {
return null;
}
if (country == null || country > 65535) {
return null;
}
this.__country = country;
var domain = kwargs["domain"] || 0;
if (domain == null || domain < 0) {
return null;
}
if (domain == null || domain > 255) {
return null;
}
this.__domain = domain;
var extra = kwargs["extra"] || 0;
if (extra == null || extra < 0) {
return null;
}
if (extra == null || extra > 255) {
return null;
}
this.__extra = extra;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var kind = kwargs["kind"] || 0;
if (kind == null || kind < 0) {
return null;
}
if (kind == null || kind > 255) {
return null;
}
this.__kind = kind;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var specific = kwargs["specific"] || 0;
if (specific == null || specific < 0) {
return null;
}
if (specific == null || specific > 255) {
return null;
}
this.__specific = specific;
var subcategory = kwargs["subcategory"] || 0;
if (subcategory == null || subcategory < 0) {
return null;
}
if (subcategory == null || subcategory > 255) {
return null;
}
this.__subcategory = subcategory;
var url = kwargs["url"] || null;
this.__url = url;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set url(url = null) {
this.__url = [url];
return this;
}
addUrl(url = null) {
if (this.__url == null) {
this.__url = [];
}
this.__url.append(url);
return this;
}
removeUrl(url) {
for( let i = 0; i < this.__url.length; i++) {
if ( this.__url[i] === url) {
this.__url.splice(i, 1);
}
}
return this.__url;
}
get url() {
return this.__url;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class Disk2D extends X3DGeometryNode {
constructor(kwargs = {}) {
super(kwargs);
var innerRadius = kwargs["innerRadius"] || 0;
if (innerRadius == null || innerRadius < 0) {
return null;
}
this.__innerRadius = innerRadius;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var outerRadius = kwargs["outerRadius"] || 1;
if (outerRadius == null || outerRadius <= 0) {
return null;
}
this.__outerRadius = outerRadius;
var solid = kwargs["solid"] || false;
this.__solid = solid;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class DoubleAxisHingeJoint extends X3DRigidJointNode {
constructor(kwargs = {}) {
super(kwargs);
var anchorPoint = kwargs["anchorPoint"] || [0, 0, 0];
this.__anchorPoint = anchorPoint;
var axis1 = kwargs["axis1"] || [0, 0, 0];
this.__axis1 = axis1;
var axis2 = kwargs["axis2"] || [0, 0, 0];
this.__axis2 = axis2;
var body1 = kwargs["body1"] || null;
this.__body1 = body1;
var body1AnchorPoint = kwargs["body1AnchorPoint"] || null;
this.__body1AnchorPoint = body1AnchorPoint;
var body1Axis = kwargs["body1Axis"] || null;
this.__body1Axis = body1Axis;
var body2 = kwargs["body2"] || null;
this.__body2 = body2;
var body2AnchorPoint = kwargs["body2AnchorPoint"] || null;
this.__body2AnchorPoint = body2AnchorPoint;
var body2Axis = kwargs["body2Axis"] || null;
this.__body2Axis = body2Axis;
var desiredAngularVelocity1 = kwargs["desiredAngularVelocity1"] || 0;
this.__desiredAngularVelocity1 = desiredAngularVelocity1;
var desiredAngularVelocity2 = kwargs["desiredAngularVelocity2"] || 0;
this.__desiredAngularVelocity2 = desiredAngularVelocity2;
var forceOutput = kwargs["forceOutput"] || ["NONE"];
this.__forceOutput = forceOutput;
var hinge1Angle = kwargs["hinge1Angle"] || null;
this.__hinge1Angle = hinge1Angle;
var hinge1AngleRate = kwargs["hinge1AngleRate"] || null;
this.__hinge1AngleRate = hinge1AngleRate;
var hinge2Angle = kwargs["hinge2Angle"] || null;
this.__hinge2Angle = hinge2Angle;
var hinge2AngleRate = kwargs["hinge2AngleRate"] || null;
this.__hinge2AngleRate = hinge2AngleRate;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var maxAngle1 = kwargs["maxAngle1"] || 3.141592653;
this.__maxAngle1 = maxAngle1;
var maxTorque1 = kwargs["maxTorque1"] || 0;
this.__maxTorque1 = maxTorque1;
var maxTorque2 = kwargs["maxTorque2"] || 0;
this.__maxTorque2 = maxTorque2;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var minAngle1 = kwargs["minAngle1"] || -3.141592653;
this.__minAngle1 = minAngle1;
var stop1Bounce = kwargs["stop1Bounce"] || 0;
this.__stop1Bounce = stop1Bounce;
var stop1ConstantForceMix = kwargs["stop1ConstantForceMix"] || 0.001;
this.__stop1ConstantForceMix = stop1ConstantForceMix;
var stop1ErrorCorrection = kwargs["stop1ErrorCorrection"] || 0.8;
this.__stop1ErrorCorrection = stop1ErrorCorrection;
var suspensionErrorCorrection = kwargs["suspensionErrorCorrection"] || 0.8;
this.__suspensionErrorCorrection = suspensionErrorCorrection;
var suspensionForce = kwargs["suspensionForce"] || 0;
this.__suspensionForce = suspensionForce;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set anchorPoint(anchorPoint = [0, 0, 0]) {
this.__anchorPoint = [anchorPoint];
return this;
}
addAnchorPoint(anchorPoint = [0, 0, 0]) {
if (this.__anchorPoint == null) {
this.__anchorPoint = [];
}
this.__anchorPoint.append(anchorPoint);
return this;
}
removeAnchorPoint(anchorPoint) {
for( let i = 0; i < this.__anchorPoint.length; i++) {
if ( this.__anchorPoint[i] === anchorPoint) {
this.__anchorPoint.splice(i, 1);
}
}
return this.__anchorPoint;
}
get anchorPoint() {
return this.__anchorPoint;
}
set axis1(axis1 = [0, 0, 0]) {
this.__axis1 = [axis1];
return this;
}
addAxis1(axis1 = [0, 0, 0]) {
if (this.__axis1 == null) {
this.__axis1 = [];
}
this.__axis1.append(axis1);
return this;
}
removeAxis1(axis1) {
for( let i = 0; i < this.__axis1.length; i++) {
if ( this.__axis1[i] === axis1) {
this.__axis1.splice(i, 1);
}
}
return this.__axis1;
}
get axis1() {
return this.__axis1;
}
set axis2(axis2 = [0, 0, 0]) {
this.__axis2 = [axis2];
return this;
}
addAxis2(axis2 = [0, 0, 0]) {
if (this.__axis2 == null) {
this.__axis2 = [];
}
this.__axis2.append(axis2);
return this;
}
removeAxis2(axis2) {
for( let i = 0; i < this.__axis2.length; i++) {
if ( this.__axis2[i] === axis2) {
this.__axis2.splice(i, 1);
}
}
return this.__axis2;
}
get axis2() {
return this.__axis2;
}
set body1(body1 = null) {
this.__body1 = [body1];
return this;
}
addBody1(body1 = null) {
if (this.__body1 == null) {
this.__body1 = [];
}
this.__body1.append(body1);
return this;
}
removeBody1(body1) {
for( let i = 0; i < this.__body1.length; i++) {
if ( this.__body1[i] === body1) {
this.__body1.splice(i, 1);
}
}
return this.__body1;
}
get body1() {
return this.__body1;
}
removeBody1AnchorPoint(body1AnchorPoint) {
for( let i = 0; i < this.__body1AnchorPoint.length; i++) {
if ( this.__body1AnchorPoint[i] === body1AnchorPoint) {
this.__body1AnchorPoint.splice(i, 1);
}
}
return this.__body1AnchorPoint;
}
get body1AnchorPoint() {
return this.__body1AnchorPoint;
}
removeBody1Axis(body1Axis) {
for( let i = 0; i < this.__body1Axis.length; i++) {
if ( this.__body1Axis[i] === body1Axis) {
this.__body1Axis.splice(i, 1);
}
}
return this.__body1Axis;
}
get body1Axis() {
return this.__body1Axis;
}
set body2(body2 = null) {
this.__body2 = [body2];
return this;
}
addBody2(body2 = null) {
if (this.__body2 == null) {
this.__body2 = [];
}
this.__body2.append(body2);
return this;
}
removeBody2(body2) {
for( let i = 0; i < this.__body2.length; i++) {
if ( this.__body2[i] === body2) {
this.__body2.splice(i, 1);
}
}
return this.__body2;
}
get body2() {
return this.__body2;
}
removeBody2AnchorPoint(body2AnchorPoint) {
for( let i = 0; i < this.__body2AnchorPoint.length; i++) {
if ( this.__body2AnchorPoint[i] === body2AnchorPoint) {
this.__body2AnchorPoint.splice(i, 1);
}
}
return this.__body2AnchorPoint;
}
get body2AnchorPoint() {
return this.__body2AnchorPoint;
}
removeBody2Axis(body2Axis) {
for( let i = 0; i < this.__body2Axis.length; i++) {
if ( this.__body2Axis[i] === body2Axis) {
this.__body2Axis.splice(i, 1);
}
}
return this.__body2Axis;
}
get body2Axis() {
return this.__body2Axis;
}
set desiredAngularVelocity1(desiredAngularVelocity1 = 0) {
this.__desiredAngularVelocity1 = [desiredAngularVelocity1];
return this;
}
addDesiredAngularVelocity1(desiredAngularVelocity1 = 0) {
if (this.__desiredAngularVelocity1 == null) {
this.__desiredAngularVelocity1 = [];
}
this.__desiredAngularVelocity1.append(desiredAngularVelocity1);
return this;
}
removeDesiredAngularVelocity1(desiredAngularVelocity1) {
for( let i = 0; i < this.__desiredAngularVelocity1.length; i++) {
if ( this.__desiredAngularVelocity1[i] === desiredAngularVelocity1) {
this.__desiredAngularVelocity1.splice(i, 1);
}
}
return this.__desiredAngularVelocity1;
}
get desiredAngularVelocity1() {
return this.__desiredAngularVelocity1;
}
set desiredAngularVelocity2(desiredAngularVelocity2 = 0) {
this.__desiredAngularVelocity2 = [desiredAngularVelocity2];
return this;
}
addDesiredAngularVelocity2(desiredAngularVelocity2 = 0) {
if (this.__desiredAngularVelocity2 == null) {
this.__desiredAngularVelocity2 = [];
}
this.__desiredAngularVelocity2.append(desiredAngularVelocity2);
return this;
}
removeDesiredAngularVelocity2(desiredAngularVelocity2) {
for( let i = 0; i < this.__desiredAngularVelocity2.length; i++) {
if ( this.__desiredAngularVelocity2[i] === desiredAngularVelocity2) {
this.__desiredAngularVelocity2.splice(i, 1);
}
}
return this.__desiredAngularVelocity2;
}
get desiredAngularVelocity2() {
return this.__desiredAngularVelocity2;
}
set forceOutput(forceOutput = ["NONE"]) {
this.__forceOutput = [forceOutput];
return this;
}
addForceOutput(forceOutput = ["NONE"]) {
if (this.__forceOutput == null) {
this.__forceOutput = [];
}
this.__forceOutput.append(forceOutput);
return this;
}
removeForceOutput(forceOutput) {
for( let i = 0; i < this.__forceOutput.length; i++) {
if ( this.__forceOutput[i] === forceOutput) {
this.__forceOutput.splice(i, 1);
}
}
return this.__forceOutput;
}
get forceOutput() {
return this.__forceOutput;
}
removeHinge1Angle(hinge1Angle) {
for( let i = 0; i < this.__hinge1Angle.length; i++) {
if ( this.__hinge1Angle[i] === hinge1Angle) {
this.__hinge1Angle.splice(i, 1);
}
}
return this.__hinge1Angle;
}
get hinge1Angle() {
return this.__hinge1Angle;
}
removeHinge1AngleRate(hinge1AngleRate) {
for( let i = 0; i < this.__hinge1AngleRate.length; i++) {
if ( this.__hinge1AngleRate[i] === hinge1AngleRate) {
this.__hinge1AngleRate.splice(i, 1);
}
}
return this.__hinge1AngleRate;
}
get hinge1AngleRate() {
return this.__hinge1AngleRate;
}
removeHinge2Angle(hinge2Angle) {
for( let i = 0; i < this.__hinge2Angle.length; i++) {
if ( this.__hinge2Angle[i] === hinge2Angle) {
this.__hinge2Angle.splice(i, 1);
}
}
return this.__hinge2Angle;
}
get hinge2Angle() {
return this.__hinge2Angle;
}
removeHinge2AngleRate(hinge2AngleRate) {
for( let i = 0; i < this.__hinge2AngleRate.length; i++) {
if ( this.__hinge2AngleRate[i] === hinge2AngleRate) {
this.__hinge2AngleRate.splice(i, 1);
}
}
return this.__hinge2AngleRate;
}
get hinge2AngleRate() {
return this.__hinge2AngleRate;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set maxAngle1(maxAngle1 = 3.141592653) {
this.__maxAngle1 = [maxAngle1];
return this;
}
addMaxAngle1(maxAngle1 = 3.141592653) {
if (this.__maxAngle1 == null) {
this.__maxAngle1 = [];
}
this.__maxAngle1.append(maxAngle1);
return this;
}
removeMaxAngle1(maxAngle1) {
for( let i = 0; i < this.__maxAngle1.length; i++) {
if ( this.__maxAngle1[i] === maxAngle1) {
this.__maxAngle1.splice(i, 1);
}
}
return this.__maxAngle1;
}
get maxAngle1() {
return this.__maxAngle1;
}
set maxTorque1(maxTorque1 = 0) {
this.__maxTorque1 = [maxTorque1];
return this;
}
addMaxTorque1(maxTorque1 = 0) {
if (this.__maxTorque1 == null) {
this.__maxTorque1 = [];
}
this.__maxTorque1.append(maxTorque1);
return this;
}
removeMaxTorque1(maxTorque1) {
for( let i = 0; i < this.__maxTorque1.length; i++) {
if ( this.__maxTorque1[i] === maxTorque1) {
this.__maxTorque1.splice(i, 1);
}
}
return this.__maxTorque1;
}
get maxTorque1() {
return this.__maxTorque1;
}
set maxTorque2(maxTorque2 = 0) {
this.__maxTorque2 = [maxTorque2];
return this;
}
addMaxTorque2(maxTorque2 = 0) {
if (this.__maxTorque2 == null) {
this.__maxTorque2 = [];
}
this.__maxTorque2.append(maxTorque2);
return this;
}
removeMaxTorque2(maxTorque2) {
for( let i = 0; i < this.__maxTorque2.length; i++) {
if ( this.__maxTorque2[i] === maxTorque2) {
this.__maxTorque2.splice(i, 1);
}
}
return this.__maxTorque2;
}
get maxTorque2() {
return this.__maxTorque2;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set minAngle1(minAngle1 = -3.141592653) {
this.__minAngle1 = [minAngle1];
return this;
}
addMinAngle1(minAngle1 = -3.141592653) {
if (this.__minAngle1 == null) {
this.__minAngle1 = [];
}
this.__minAngle1.append(minAngle1);
return this;
}
removeMinAngle1(minAngle1) {
for( let i = 0; i < this.__minAngle1.length; i++) {
if ( this.__minAngle1[i] === minAngle1) {
this.__minAngle1.splice(i, 1);
}
}
return this.__minAngle1;
}
get minAngle1() {
return this.__minAngle1;
}
set stop1Bounce(stop1Bounce = 0) {
this.__stop1Bounce = [stop1Bounce];
return this;
}
addStop1Bounce(stop1Bounce = 0) {
if (this.__stop1Bounce == null) {
this.__stop1Bounce = [];
}
this.__stop1Bounce.append(stop1Bounce);
return this;
}
removeStop1Bounce(stop1Bounce) {
for( let i = 0; i < this.__stop1Bounce.length; i++) {
if ( this.__stop1Bounce[i] === stop1Bounce) {
this.__stop1Bounce.splice(i, 1);
}
}
return this.__stop1Bounce;
}
get stop1Bounce() {
return this.__stop1Bounce;
}
set stop1ConstantForceMix(stop1ConstantForceMix = 0.001) {
this.__stop1ConstantForceMix = [stop1ConstantForceMix];
return this;
}
addStop1ConstantForceMix(stop1ConstantForceMix = 0.001) {
if (this.__stop1ConstantForceMix == null) {
this.__stop1ConstantForceMix = [];
}
this.__stop1ConstantForceMix.append(stop1ConstantForceMix);
return this;
}
removeStop1ConstantForceMix(stop1ConstantForceMix) {
for( let i = 0; i < this.__stop1ConstantForceMix.length; i++) {
if ( this.__stop1ConstantForceMix[i] === stop1ConstantForceMix) {
this.__stop1ConstantForceMix.splice(i, 1);
}
}
return this.__stop1ConstantForceMix;
}
get stop1ConstantForceMix() {
return this.__stop1ConstantForceMix;
}
set stop1ErrorCorrection(stop1ErrorCorrection = 0.8) {
this.__stop1ErrorCorrection = [stop1ErrorCorrection];
return this;
}
addStop1ErrorCorrection(stop1ErrorCorrection = 0.8) {
if (this.__stop1ErrorCorrection == null) {
this.__stop1ErrorCorrection = [];
}
this.__stop1ErrorCorrection.append(stop1ErrorCorrection);
return this;
}
removeStop1ErrorCorrection(stop1ErrorCorrection) {
for( let i = 0; i < this.__stop1ErrorCorrection.length; i++) {
if ( this.__stop1ErrorCorrection[i] === stop1ErrorCorrection) {
this.__stop1ErrorCorrection.splice(i, 1);
}
}
return this.__stop1ErrorCorrection;
}
get stop1ErrorCorrection() {
return this.__stop1ErrorCorrection;
}
set suspensionErrorCorrection(suspensionErrorCorrection = 0.8) {
this.__suspensionErrorCorrection = [suspensionErrorCorrection];
return this;
}
addSuspensionErrorCorrection(suspensionErrorCorrection = 0.8) {
if (this.__suspensionErrorCorrection == null) {
this.__suspensionErrorCorrection = [];
}
this.__suspensionErrorCorrection.append(suspensionErrorCorrection);
return this;
}
removeSuspensionErrorCorrection(suspensionErrorCorrection) {
for( let i = 0; i < this.__suspensionErrorCorrection.length; i++) {
if ( this.__suspensionErrorCorrection[i] === suspensionErrorCorrection) {
this.__suspensionErrorCorrection.splice(i, 1);
}
}
return this.__suspensionErrorCorrection;
}
get suspensionErrorCorrection() {
return this.__suspensionErrorCorrection;
}
set suspensionForce(suspensionForce = 0) {
this.__suspensionForce = [suspensionForce];
return this;
}
addSuspensionForce(suspensionForce = 0) {
if (this.__suspensionForce == null) {
this.__suspensionForce = [];
}
this.__suspensionForce.append(suspensionForce);
return this;
}
removeSuspensionForce(suspensionForce) {
for( let i = 0; i < this.__suspensionForce.length; i++) {
if ( this.__suspensionForce[i] === suspensionForce) {
this.__suspensionForce.splice(i, 1);
}
}
return this.__suspensionForce;
}
get suspensionForce() {
return this.__suspensionForce;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__body1 === null) {
} else if (typeof this.__body1.toXMLNode === 'function') {
str += this.__body1.toXMLNode('body1');
} else if (typeof this.__body1 === 'string') {
str += ' body1="'+this.__body1+'"';
} else if (Array.isArray( this.__body1)) {
if (typeof this.__body1[0].toXMLNode !== 'function') {
str += ' body1="'+this.__body1.join(' ')+'"';
} else {
for (let i in this.__body1) {
if (typeof this.__body1[i].toXMLNode === 'function') {
str += this.__body1[i].toXMLNode('body1');
}
}
}
} else {
str += ' body1="'+this.__body1+'"';
}
if (this.__body2 === null) {
} else if (typeof this.__body2.toXMLNode === 'function') {
str += this.__body2.toXMLNode('body2');
} else if (typeof this.__body2 === 'string') {
str += ' body2="'+this.__body2+'"';
} else if (Array.isArray( this.__body2)) {
if (typeof this.__body2[0].toXMLNode !== 'function') {
str += ' body2="'+this.__body2.join(' ')+'"';
} else {
for (let i in this.__body2) {
if (typeof this.__body2[i].toXMLNode === 'function') {
str += this.__body2[i].toXMLNode('body2');
}
}
}
} else {
str += ' body2="'+this.__body2+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class EaseInEaseOut extends X3DChildNode {
constructor(kwargs = {}) {
super(kwargs);
var easeInEaseOut = kwargs["easeInEaseOut"] || null;
this.__easeInEaseOut = easeInEaseOut;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var key = kwargs["key"] || null;
this.__key = key;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var modifiedFraction_changed = kwargs["modifiedFraction_changed"] || null;
this.__modifiedFraction_changed = modifiedFraction_changed;
var fraction = kwargs["fraction"] || null;
this.__fraction = fraction;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set easeInEaseOut(easeInEaseOut = null) {
this.__easeInEaseOut = [easeInEaseOut];
return this;
}
addEaseInEaseOut(easeInEaseOut = null) {
if (this.__easeInEaseOut == null) {
this.__easeInEaseOut = [];
}
this.__easeInEaseOut.append(easeInEaseOut);
return this;
}
removeEaseInEaseOut(easeInEaseOut) {
for( let i = 0; i < this.__easeInEaseOut.length; i++) {
if ( this.__easeInEaseOut[i] === easeInEaseOut) {
this.__easeInEaseOut.splice(i, 1);
}
}
return this.__easeInEaseOut;
}
get easeInEaseOut() {
return this.__easeInEaseOut;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set key(key = null) {
this.__key = [key];
return this;
}
addKey(key = null) {
if (this.__key == null) {
this.__key = [];
}
this.__key.append(key);
return this;
}
removeKey(key) {
for( let i = 0; i < this.__key.length; i++) {
if ( this.__key[i] === key) {
this.__key.splice(i, 1);
}
}
return this.__key;
}
get key() {
return this.__key;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
removemodifiedFraction_changed(modifiedFraction_changed) {
for( let i = 0; i < this.__modifiedFraction_changed.length; i++) {
if ( this.__modifiedFraction_changed[i] === modifiedFraction_changed) {
this.__modifiedFraction_changed.splice(i, 1);
}
}
return this.__modifiedFraction_changed;
}
get modifiedFraction_changed() {
return this.__modifiedFraction_changed;
}
set set_fraction(fraction = null) {
this.__fraction = [fraction];
return this;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class EdgeEnhancementVolumeStyle extends X3DComposableVolumeRenderStyleNode {
constructor(kwargs = {}) {
super(kwargs);
var edgeColor = kwargs["edgeColor"] || [0, 0, 0, 1];
if (edgeColor == null || edgeColor < 0) {
return null;
}
if (edgeColor == null || edgeColor > 1) {
return null;
}
this.__edgeColor = edgeColor;
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var gradientThreshold = kwargs["gradientThreshold"] || 0.4;
if (gradientThreshold == null || gradientThreshold < 0) {
return null;
}
if (gradientThreshold == null || gradientThreshold > 3.1416) {
return null;
}
this.__gradientThreshold = gradientThreshold;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var surfaceNormals = kwargs["surfaceNormals"] || null;
this.__surfaceNormals = surfaceNormals;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set edgeColor(edgeColor = [0, 0, 0, 1]) {
if (edgeColor == null || edgeColor < 0) {
return null;
}
if (edgeColor == null || edgeColor > 1) {
return null;
}
this.__edgeColor = [edgeColor];
return this;
}
addEdgeColor(edgeColor = [0, 0, 0, 1]) {
if (edgeColor == null || edgeColor < 0) {
return null;
}
if (edgeColor == null || edgeColor > 1) {
return null;
}
if (this.__edgeColor == null) {
this.__edgeColor = [];
}
this.__edgeColor.append(edgeColor);
return this;
}
removeEdgeColor(edgeColor) {
for( let i = 0; i < this.__edgeColor.length; i++) {
if ( this.__edgeColor[i] === edgeColor) {
this.__edgeColor.splice(i, 1);
}
}
return this.__edgeColor;
}
get edgeColor() {
return this.__edgeColor;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
set gradientThreshold(gradientThreshold = 0.4) {
if (gradientThreshold == null || gradientThreshold < 0) {
return null;
}
if (gradientThreshold == null || gradientThreshold > 3.1416) {
return null;
}
this.__gradientThreshold = [gradientThreshold];
return this;
}
addGradientThreshold(gradientThreshold = 0.4) {
if (gradientThreshold == null || gradientThreshold < 0) {
return null;
}
if (gradientThreshold == null || gradientThreshold > 3.1416) {
return null;
}
if (this.__gradientThreshold == null) {
this.__gradientThreshold = [];
}
this.__gradientThreshold.append(gradientThreshold);
return this;
}
removeGradientThreshold(gradientThreshold) {
for( let i = 0; i < this.__gradientThreshold.length; i++) {
if ( this.__gradientThreshold[i] === gradientThreshold) {
this.__gradientThreshold.splice(i, 1);
}
}
return this.__gradientThreshold;
}
get gradientThreshold() {
return this.__gradientThreshold;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set surfaceNormals(surfaceNormals = null) {
this.__surfaceNormals = [surfaceNormals];
return this;
}
addSurfaceNormals(surfaceNormals = null) {
if (this.__surfaceNormals == null) {
this.__surfaceNormals = [];
}
this.__surfaceNormals.append(surfaceNormals);
return this;
}
removeSurfaceNormals(surfaceNormals) {
for( let i = 0; i < this.__surfaceNormals.length; i++) {
if ( this.__surfaceNormals[i] === surfaceNormals) {
this.__surfaceNormals.splice(i, 1);
}
}
return this.__surfaceNormals;
}
get surfaceNormals() {
return this.__surfaceNormals;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__surfaceNormals === null) {
} else if (typeof this.__surfaceNormals.toXMLNode === 'function') {
str += this.__surfaceNormals.toXMLNode('surfaceNormals');
} else if (typeof this.__surfaceNormals === 'string') {
str += ' surfaceNormals="'+this.__surfaceNormals+'"';
} else if (Array.isArray( this.__surfaceNormals)) {
if (typeof this.__surfaceNormals[0].toXMLNode !== 'function') {
str += ' surfaceNormals="'+this.__surfaceNormals.join(' ')+'"';
} else {
for (let i in this.__surfaceNormals) {
if (typeof this.__surfaceNormals[i].toXMLNode === 'function') {
str += this.__surfaceNormals[i].toXMLNode('surfaceNormals');
}
}
}
} else {
str += ' surfaceNormals="'+this.__surfaceNormals+'"';
}
str += ''
return str;
}
}
export class ElevationGrid extends X3DGeometryNode {
constructor(kwargs = {}) {
super(kwargs);
var attrib = kwargs["attrib"] || null;
this.__attrib = attrib;
var ccw = kwargs["ccw"] || true;
this.__ccw = ccw;
var color = kwargs["color"] || null;
this.__color = color;
var colorPerVertex = kwargs["colorPerVertex"] || true;
this.__colorPerVertex = colorPerVertex;
var creaseAngle = kwargs["creaseAngle"] || 0;
if (creaseAngle == null || creaseAngle < 0) {
return null;
}
this.__creaseAngle = creaseAngle;
var fogCoord = kwargs["fogCoord"] || null;
this.__fogCoord = fogCoord;
var height = kwargs["height"] || [0, 0, 0, 0];
this.__height = height;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var normal = kwargs["normal"] || null;
this.__normal = normal;
var normalPerVertex = kwargs["normalPerVertex"] || true;
this.__normalPerVertex = normalPerVertex;
var height = kwargs["height"] || null;
this.__height = height;
var solid = kwargs["solid"] || true;
this.__solid = solid;
var texCoord = kwargs["texCoord"] || null;
this.__texCoord = texCoord;
var xDimension = kwargs["xDimension"] || 2;
if (xDimension == null || xDimension < 0) {
return null;
}
this.__xDimension = xDimension;
var xSpacing = kwargs["xSpacing"] || 1.0;
if (xSpacing == null || xSpacing <= 0) {
return null;
}
this.__xSpacing = xSpacing;
var zDimension = kwargs["zDimension"] || 2;
if (zDimension == null || zDimension < 0) {
return null;
}
this.__zDimension = zDimension;
var zSpacing = kwargs["zSpacing"] || 1.0;
if (zSpacing == null || zSpacing <= 0) {
return null;
}
this.__zSpacing = zSpacing;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set attrib(attrib = null) {
this.__attrib = [attrib];
return this;
}
addAttrib(attrib = null) {
if (this.__attrib == null) {
this.__attrib = [];
}
this.__attrib.append(attrib);
return this;
}
removeAttrib(attrib) {
for( let i = 0; i < this.__attrib.length; i++) {
if ( this.__attrib[i] === attrib) {
this.__attrib.splice(i, 1);
}
}
return this.__attrib;
}
get attrib() {
return this.__attrib;
}
set color(color = null) {
this.__color = [color];
return this;
}
addColor(color = null) {
if (this.__color == null) {
this.__color = [];
}
this.__color.append(color);
return this;
}
removeColor(color) {
for( let i = 0; i < this.__color.length; i++) {
if ( this.__color[i] === color) {
this.__color.splice(i, 1);
}
}
return this.__color;
}
get color() {
return this.__color;
}
set fogCoord(fogCoord = null) {
this.__fogCoord = [fogCoord];
return this;
}
addFogCoord(fogCoord = null) {
if (this.__fogCoord == null) {
this.__fogCoord = [];
}
this.__fogCoord.append(fogCoord);
return this;
}
removeFogCoord(fogCoord) {
for( let i = 0; i < this.__fogCoord.length; i++) {
if ( this.__fogCoord[i] === fogCoord) {
this.__fogCoord.splice(i, 1);
}
}
return this.__fogCoord;
}
get fogCoord() {
return this.__fogCoord;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set normal(normal = null) {
this.__normal = [normal];
return this;
}
addNormal(normal = null) {
if (this.__normal == null) {
this.__normal = [];
}
this.__normal.append(normal);
return this;
}
removeNormal(normal) {
for( let i = 0; i < this.__normal.length; i++) {
if ( this.__normal[i] === normal) {
this.__normal.splice(i, 1);
}
}
return this.__normal;
}
get normal() {
return this.__normal;
}
set set_height(height = null) {
this.__height = [height];
return this;
}
set texCoord(texCoord = null) {
this.__texCoord = [texCoord];
return this;
}
addTexCoord(texCoord = null) {
if (this.__texCoord == null) {
this.__texCoord = [];
}
this.__texCoord.append(texCoord);
return this;
}
removeTexCoord(texCoord) {
for( let i = 0; i < this.__texCoord.length; i++) {
if ( this.__texCoord[i] === texCoord) {
this.__texCoord.splice(i, 1);
}
}
return this.__texCoord;
}
get texCoord() {
return this.__texCoord;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__attrib === null) {
} else if (typeof this.__attrib.toXMLNode === 'function') {
str += this.__attrib.toXMLNode('attrib');
} else if (typeof this.__attrib === 'string') {
str += ' attrib="'+this.__attrib+'"';
} else if (Array.isArray( this.__attrib)) {
if (typeof this.__attrib[0].toXMLNode !== 'function') {
str += ' attrib="'+this.__attrib.join(' ')+'"';
} else {
for (let i in this.__attrib) {
if (typeof this.__attrib[i].toXMLNode === 'function') {
str += this.__attrib[i].toXMLNode('attrib');
}
}
}
} else {
str += ' attrib="'+this.__attrib+'"';
}
if (this.__color === null) {
} else if (typeof this.__color.toXMLNode === 'function') {
str += this.__color.toXMLNode('color');
} else if (typeof this.__color === 'string') {
str += ' color="'+this.__color+'"';
} else if (Array.isArray( this.__color)) {
if (typeof this.__color[0].toXMLNode !== 'function') {
str += ' color="'+this.__color.join(' ')+'"';
} else {
for (let i in this.__color) {
if (typeof this.__color[i].toXMLNode === 'function') {
str += this.__color[i].toXMLNode('color');
}
}
}
} else {
str += ' color="'+this.__color+'"';
}
if (this.__fogCoord === null) {
} else if (typeof this.__fogCoord.toXMLNode === 'function') {
str += this.__fogCoord.toXMLNode('fogCoord');
} else if (typeof this.__fogCoord === 'string') {
str += ' fogCoord="'+this.__fogCoord+'"';
} else if (Array.isArray( this.__fogCoord)) {
if (typeof this.__fogCoord[0].toXMLNode !== 'function') {
str += ' fogCoord="'+this.__fogCoord.join(' ')+'"';
} else {
for (let i in this.__fogCoord) {
if (typeof this.__fogCoord[i].toXMLNode === 'function') {
str += this.__fogCoord[i].toXMLNode('fogCoord');
}
}
}
} else {
str += ' fogCoord="'+this.__fogCoord+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__normal === null) {
} else if (typeof this.__normal.toXMLNode === 'function') {
str += this.__normal.toXMLNode('normal');
} else if (typeof this.__normal === 'string') {
str += ' normal="'+this.__normal+'"';
} else if (Array.isArray( this.__normal)) {
if (typeof this.__normal[0].toXMLNode !== 'function') {
str += ' normal="'+this.__normal.join(' ')+'"';
} else {
for (let i in this.__normal) {
if (typeof this.__normal[i].toXMLNode === 'function') {
str += this.__normal[i].toXMLNode('normal');
}
}
}
} else {
str += ' normal="'+this.__normal+'"';
}
if (this.__texCoord === null) {
} else if (typeof this.__texCoord.toXMLNode === 'function') {
str += this.__texCoord.toXMLNode('texCoord');
} else if (typeof this.__texCoord === 'string') {
str += ' texCoord="'+this.__texCoord+'"';
} else if (Array.isArray( this.__texCoord)) {
if (typeof this.__texCoord[0].toXMLNode !== 'function') {
str += ' texCoord="'+this.__texCoord.join(' ')+'"';
} else {
for (let i in this.__texCoord) {
if (typeof this.__texCoord[i].toXMLNode === 'function') {
str += this.__texCoord[i].toXMLNode('texCoord');
}
}
}
} else {
str += ' texCoord="'+this.__texCoord+'"';
}
str += ''
return str;
}
}
export class EspduTransform extends X3DGroupingNode {
constructor(kwargs = {}) {
super(kwargs);
var children_ = kwargs["children_"] || null;
this.__children_ = children_;
var address = kwargs["address"] || "localhost";
this.__address = address;
var applicationID = kwargs["applicationID"] || 0;
this.__applicationID = applicationID;
var articulationParameterArray = kwargs["articulationParameterArray"] || null;
this.__articulationParameterArray = articulationParameterArray;
var articulationParameterChangeIndicatorArray = kwargs["articulationParameterChangeIndicatorArray"] || null;
this.__articulationParameterChangeIndicatorArray = articulationParameterChangeIndicatorArray;
var articulationParameterCount = kwargs["articulationParameterCount"] || 0;
this.__articulationParameterCount = articulationParameterCount;
var articulationParameterDesignatorArray = kwargs["articulationParameterDesignatorArray"] || null;
this.__articulationParameterDesignatorArray = articulationParameterDesignatorArray;
var articulationParameterIdPartAttachedToArray = kwargs["articulationParameterIdPartAttachedToArray"] || null;
this.__articulationParameterIdPartAttachedToArray = articulationParameterIdPartAttachedToArray;
var articulationParameterTypeArray = kwargs["articulationParameterTypeArray"] || null;
this.__articulationParameterTypeArray = articulationParameterTypeArray;
var articulationParameterValue0_changed = kwargs["articulationParameterValue0_changed"] || null;
this.__articulationParameterValue0_changed = articulationParameterValue0_changed;
var articulationParameterValue1_changed = kwargs["articulationParameterValue1_changed"] || null;
this.__articulationParameterValue1_changed = articulationParameterValue1_changed;
var articulationParameterValue2_changed = kwargs["articulationParameterValue2_changed"] || null;
this.__articulationParameterValue2_changed = articulationParameterValue2_changed;
var articulationParameterValue3_changed = kwargs["articulationParameterValue3_changed"] || null;
this.__articulationParameterValue3_changed = articulationParameterValue3_changed;
var articulationParameterValue4_changed = kwargs["articulationParameterValue4_changed"] || null;
this.__articulationParameterValue4_changed = articulationParameterValue4_changed;
var articulationParameterValue5_changed = kwargs["articulationParameterValue5_changed"] || null;
this.__articulationParameterValue5_changed = articulationParameterValue5_changed;
var articulationParameterValue6_changed = kwargs["articulationParameterValue6_changed"] || null;
this.__articulationParameterValue6_changed = articulationParameterValue6_changed;
var articulationParameterValue7_changed = kwargs["articulationParameterValue7_changed"] || null;
this.__articulationParameterValue7_changed = articulationParameterValue7_changed;
var bboxCenter = kwargs["bboxCenter"] || [0, 0, 0];
this.__bboxCenter = bboxCenter;
var bboxSize = kwargs["bboxSize"] || [-1, -1, -1];
this.__bboxSize = bboxSize;
var center = kwargs["center"] || [0, 0, 0];
this.__center = center;
var children = kwargs["children"] || null;
this.__children = children;
var collideTime = kwargs["collideTime"] || null;
this.__collideTime = collideTime;
var collisionType = kwargs["collisionType"] || 0;
this.__collisionType = collisionType;
var deadReckoning = kwargs["deadReckoning"] || 0;
this.__deadReckoning = deadReckoning;
var detonateTime = kwargs["detonateTime"] || null;
this.__detonateTime = detonateTime;
var detonationLocation = kwargs["detonationLocation"] || [0, 0, 0];
this.__detonationLocation = detonationLocation;
var detonationRelativeLocation = kwargs["detonationRelativeLocation"] || [0, 0, 0];
this.__detonationRelativeLocation = detonationRelativeLocation;
var detonationResult = kwargs["detonationResult"] || 0;
this.__detonationResult = detonationResult;
var displayBBox = kwargs["displayBBox"] || false;
this.__displayBBox = displayBBox;
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var entityCategory = kwargs["entityCategory"] || 0;
this.__entityCategory = entityCategory;
var entityCountry = kwargs["entityCountry"] || 0;
this.__entityCountry = entityCountry;
var entityDomain = kwargs["entityDomain"] || 0;
this.__entityDomain = entityDomain;
var entityExtra = kwargs["entityExtra"] || 0;
this.__entityExtra = entityExtra;
var entityID = kwargs["entityID"] || 0;
this.__entityID = entityID;
var entityKind = kwargs["entityKind"] || 0;
this.__entityKind = entityKind;
var entitySpecific = kwargs["entitySpecific"] || 0;
this.__entitySpecific = entitySpecific;
var entitySubcategory = kwargs["entitySubcategory"] || 0;
this.__entitySubcategory = entitySubcategory;
var eventApplicationID = kwargs["eventApplicationID"] || 0;
this.__eventApplicationID = eventApplicationID;
var eventEntityID = kwargs["eventEntityID"] || 0;
this.__eventEntityID = eventEntityID;
var eventNumber = kwargs["eventNumber"] || 0;
this.__eventNumber = eventNumber;
var eventSiteID = kwargs["eventSiteID"] || 0;
this.__eventSiteID = eventSiteID;
var fired1 = kwargs["fired1"] || false;
this.__fired1 = fired1;
var fired2 = kwargs["fired2"] || false;
this.__fired2 = fired2;
var firedTime = kwargs["firedTime"] || null;
this.__firedTime = firedTime;
var fireMissionIndex = kwargs["fireMissionIndex"] || 0;
this.__fireMissionIndex = fireMissionIndex;
var firingRange = kwargs["firingRange"] || 0;
this.__firingRange = firingRange;
var firingRate = kwargs["firingRate"] || 0;
this.__firingRate = firingRate;
var forceID = kwargs["forceID"] || 0;
this.__forceID = forceID;
var fuse = kwargs["fuse"] || 0;
this.__fuse = fuse;
var geoCoords = kwargs["geoCoords"] || [0, 0, 0];
this.__geoCoords = geoCoords;
var geoSystem = kwargs["geoSystem"] || ["GD", "WE"];
this.__geoSystem = geoSystem;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var Collided = kwargs["Collided"] || null;
this.__Collided = Collided;
var Detonated = kwargs["Detonated"] || null;
this.__Detonated = Detonated;
var NetworkReader = kwargs["NetworkReader"] || null;
this.__NetworkReader = NetworkReader;
var NetworkWriter = kwargs["NetworkWriter"] || null;
this.__NetworkWriter = NetworkWriter;
var RtpHeaderHeard = kwargs["RtpHeaderHeard"] || null;
this.__RtpHeaderHeard = RtpHeaderHeard;
var StandAlone = kwargs["StandAlone"] || null;
this.__StandAlone = StandAlone;
var linearAcceleration = kwargs["linearAcceleration"] || [0, 0, 0];
this.__linearAcceleration = linearAcceleration;
var linearVelocity = kwargs["linearVelocity"] || [0, 0, 0];
this.__linearVelocity = linearVelocity;
var marking = kwargs["marking"] || null;
this.__marking = marking;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var multicastRelayHost = kwargs["multicastRelayHost"] || null;
this.__multicastRelayHost = multicastRelayHost;
var multicastRelayPort = kwargs["multicastRelayPort"] || 0;
this.__multicastRelayPort = multicastRelayPort;
var munitionApplicationID = kwargs["munitionApplicationID"] || 0;
this.__munitionApplicationID = munitionApplicationID;
var munitionEndPoint = kwargs["munitionEndPoint"] || [0, 0, 0];
this.__munitionEndPoint = munitionEndPoint;
var munitionEntityID = kwargs["munitionEntityID"] || 0;
this.__munitionEntityID = munitionEntityID;
var munitionQuantity = kwargs["munitionQuantity"] || 0;
this.__munitionQuantity = munitionQuantity;
var munitionSiteID = kwargs["munitionSiteID"] || 0;
this.__munitionSiteID = munitionSiteID;
var munitionStartPoint = kwargs["munitionStartPoint"] || [0, 0, 0];
this.__munitionStartPoint = munitionStartPoint;
var networkMode = kwargs["networkMode"] || "standAlone";
if ('standAlone' === networkMode) {
} else if ('networkReader' === networkMode) {
} else if ('networkWriter' === networkMode) {
} else {
return null;
}
this.__networkMode = networkMode;
var port = kwargs["port"] || 0;
this.__port = port;
var readInterval = kwargs["readInterval"] || 0.1;
if (readInterval == null || readInterval < 0) {
return null;
}
this.__readInterval = readInterval;
var children_ = kwargs["children_"] || null;
this.__children_ = children_;
var rotation = kwargs["rotation"] || [0, 0, 1, 0];
this.__rotation = rotation;
var rtpHeaderExpected = kwargs["rtpHeaderExpected"] || false;
this.__rtpHeaderExpected = rtpHeaderExpected;
var scale = kwargs["scale"] || [1, 1, 1];
this.__scale = scale;
var scaleOrientation = kwargs["scaleOrientation"] || [0, 0, 1, 0];
this.__scaleOrientation = scaleOrientation;
var articulationParameterValue0 = kwargs["articulationParameterValue0"] || null;
this.__articulationParameterValue0 = articulationParameterValue0;
var articulationParameterValue1 = kwargs["articulationParameterValue1"] || null;
this.__articulationParameterValue1 = articulationParameterValue1;
var articulationParameterValue2 = kwargs["articulationParameterValue2"] || null;
this.__articulationParameterValue2 = articulationParameterValue2;
var articulationParameterValue3 = kwargs["articulationParameterValue3"] || null;
this.__articulationParameterValue3 = articulationParameterValue3;
var articulationParameterValue4 = kwargs["articulationParameterValue4"] || null;
this.__articulationParameterValue4 = articulationParameterValue4;
var articulationParameterValue5 = kwargs["articulationParameterValue5"] || null;
this.__articulationParameterValue5 = articulationParameterValue5;
var articulationParameterValue6 = kwargs["articulationParameterValue6"] || null;
this.__articulationParameterValue6 = articulationParameterValue6;
var articulationParameterValue7 = kwargs["articulationParameterValue7"] || null;
this.__articulationParameterValue7 = articulationParameterValue7;
var siteID = kwargs["siteID"] || 0;
this.__siteID = siteID;
var timestamp = kwargs["timestamp"] || null;
if (timestamp == null || timestamp < 0) {
return null;
}
this.__timestamp = timestamp;
var translation = kwargs["translation"] || [0, 0, 0];
this.__translation = translation;
var visible = kwargs["visible"] || true;
this.__visible = visible;
var warhead = kwargs["warhead"] || 0;
this.__warhead = warhead;
var writeInterval = kwargs["writeInterval"] || 1.0;
if (writeInterval == null || writeInterval < 0) {
return null;
}
this.__writeInterval = writeInterval;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
addChildren(children_ = null) {
if (this.__children_ == null) {
this.__children_ = [];
}
this.__children_.append(children_);
return this;
}
address(address = "localhost") {
if (this.__address == null) {
this.__address = [];
}
this.__address.append(address);
return this;
}
removeAddress(address) {
for( let i = 0; i < this.__address.length; i++) {
if ( this.__address[i] === address) {
this.__address.splice(i, 1);
}
}
return this.__address;
}
get address() {
return this.__address;
}
set applicationID(applicationID = 0) {
this.__applicationID = [applicationID];
return this;
}
addApplicationID(applicationID = 0) {
if (this.__applicationID == null) {
this.__applicationID = [];
}
this.__applicationID.append(applicationID);
return this;
}
removeApplicationID(applicationID) {
for( let i = 0; i < this.__applicationID.length; i++) {
if ( this.__applicationID[i] === applicationID) {
this.__applicationID.splice(i, 1);
}
}
return this.__applicationID;
}
get applicationID() {
return this.__applicationID;
}
set articulationParameterArray(articulationParameterArray = null) {
this.__articulationParameterArray = [articulationParameterArray];
return this;
}
addArticulationParameterArray(articulationParameterArray = null) {
if (this.__articulationParameterArray == null) {
this.__articulationParameterArray = [];
}
this.__articulationParameterArray.append(articulationParameterArray);
return this;
}
removeArticulationParameterArray(articulationParameterArray) {
for( let i = 0; i < this.__articulationParameterArray.length; i++) {
if ( this.__articulationParameterArray[i] === articulationParameterArray) {
this.__articulationParameterArray.splice(i, 1);
}
}
return this.__articulationParameterArray;
}
get articulationParameterArray() {
return this.__articulationParameterArray;
}
set articulationParameterChangeIndicatorArray(articulationParameterChangeIndicatorArray = null) {
this.__articulationParameterChangeIndicatorArray = [articulationParameterChangeIndicatorArray];
return this;
}
addArticulationParameterChangeIndicatorArray(articulationParameterChangeIndicatorArray = null) {
if (this.__articulationParameterChangeIndicatorArray == null) {
this.__articulationParameterChangeIndicatorArray = [];
}
this.__articulationParameterChangeIndicatorArray.append(articulationParameterChangeIndicatorArray);
return this;
}
removeArticulationParameterChangeIndicatorArray(articulationParameterChangeIndicatorArray) {
for( let i = 0; i < this.__articulationParameterChangeIndicatorArray.length; i++) {
if ( this.__articulationParameterChangeIndicatorArray[i] === articulationParameterChangeIndicatorArray) {
this.__articulationParameterChangeIndicatorArray.splice(i, 1);
}
}
return this.__articulationParameterChangeIndicatorArray;
}
get articulationParameterChangeIndicatorArray() {
return this.__articulationParameterChangeIndicatorArray;
}
set articulationParameterCount(articulationParameterCount = 0) {
this.__articulationParameterCount = [articulationParameterCount];
return this;
}
addArticulationParameterCount(articulationParameterCount = 0) {
if (this.__articulationParameterCount == null) {
this.__articulationParameterCount = [];
}
this.__articulationParameterCount.append(articulationParameterCount);
return this;
}
removeArticulationParameterCount(articulationParameterCount) {
for( let i = 0; i < this.__articulationParameterCount.length; i++) {
if ( this.__articulationParameterCount[i] === articulationParameterCount) {
this.__articulationParameterCount.splice(i, 1);
}
}
return this.__articulationParameterCount;
}
get articulationParameterCount() {
return this.__articulationParameterCount;
}
set articulationParameterDesignatorArray(articulationParameterDesignatorArray = null) {
this.__articulationParameterDesignatorArray = [articulationParameterDesignatorArray];
return this;
}
addArticulationParameterDesignatorArray(articulationParameterDesignatorArray = null) {
if (this.__articulationParameterDesignatorArray == null) {
this.__articulationParameterDesignatorArray = [];
}
this.__articulationParameterDesignatorArray.append(articulationParameterDesignatorArray);
return this;
}
removeArticulationParameterDesignatorArray(articulationParameterDesignatorArray) {
for( let i = 0; i < this.__articulationParameterDesignatorArray.length; i++) {
if ( this.__articulationParameterDesignatorArray[i] === articulationParameterDesignatorArray) {
this.__articulationParameterDesignatorArray.splice(i, 1);
}
}
return this.__articulationParameterDesignatorArray;
}
get articulationParameterDesignatorArray() {
return this.__articulationParameterDesignatorArray;
}
set articulationParameterIdPartAttachedToArray(articulationParameterIdPartAttachedToArray = null) {
this.__articulationParameterIdPartAttachedToArray = [articulationParameterIdPartAttachedToArray];
return this;
}
addArticulationParameterIdPartAttachedToArray(articulationParameterIdPartAttachedToArray = null) {
if (this.__articulationParameterIdPartAttachedToArray == null) {
this.__articulationParameterIdPartAttachedToArray = [];
}
this.__articulationParameterIdPartAttachedToArray.append(articulationParameterIdPartAttachedToArray);
return this;
}
removeArticulationParameterIdPartAttachedToArray(articulationParameterIdPartAttachedToArray) {
for( let i = 0; i < this.__articulationParameterIdPartAttachedToArray.length; i++) {
if ( this.__articulationParameterIdPartAttachedToArray[i] === articulationParameterIdPartAttachedToArray) {
this.__articulationParameterIdPartAttachedToArray.splice(i, 1);
}
}
return this.__articulationParameterIdPartAttachedToArray;
}
get articulationParameterIdPartAttachedToArray() {
return this.__articulationParameterIdPartAttachedToArray;
}
set articulationParameterTypeArray(articulationParameterTypeArray = null) {
this.__articulationParameterTypeArray = [articulationParameterTypeArray];
return this;
}
addArticulationParameterTypeArray(articulationParameterTypeArray = null) {
if (this.__articulationParameterTypeArray == null) {
this.__articulationParameterTypeArray = [];
}
this.__articulationParameterTypeArray.append(articulationParameterTypeArray);
return this;
}
removeArticulationParameterTypeArray(articulationParameterTypeArray) {
for( let i = 0; i < this.__articulationParameterTypeArray.length; i++) {
if ( this.__articulationParameterTypeArray[i] === articulationParameterTypeArray) {
this.__articulationParameterTypeArray.splice(i, 1);
}
}
return this.__articulationParameterTypeArray;
}
get articulationParameterTypeArray() {
return this.__articulationParameterTypeArray;
}
removearticulationParameterValue0_changed(articulationParameterValue0_changed) {
for( let i = 0; i < this.__articulationParameterValue0_changed.length; i++) {
if ( this.__articulationParameterValue0_changed[i] === articulationParameterValue0_changed) {
this.__articulationParameterValue0_changed.splice(i, 1);
}
}
return this.__articulationParameterValue0_changed;
}
get articulationParameterValue0_changed() {
return this.__articulationParameterValue0_changed;
}
removearticulationParameterValue1_changed(articulationParameterValue1_changed) {
for( let i = 0; i < this.__articulationParameterValue1_changed.length; i++) {
if ( this.__articulationParameterValue1_changed[i] === articulationParameterValue1_changed) {
this.__articulationParameterValue1_changed.splice(i, 1);
}
}
return this.__articulationParameterValue1_changed;
}
get articulationParameterValue1_changed() {
return this.__articulationParameterValue1_changed;
}
removearticulationParameterValue2_changed(articulationParameterValue2_changed) {
for( let i = 0; i < this.__articulationParameterValue2_changed.length; i++) {
if ( this.__articulationParameterValue2_changed[i] === articulationParameterValue2_changed) {
this.__articulationParameterValue2_changed.splice(i, 1);
}
}
return this.__articulationParameterValue2_changed;
}
get articulationParameterValue2_changed() {
return this.__articulationParameterValue2_changed;
}
removearticulationParameterValue3_changed(articulationParameterValue3_changed) {
for( let i = 0; i < this.__articulationParameterValue3_changed.length; i++) {
if ( this.__articulationParameterValue3_changed[i] === articulationParameterValue3_changed) {
this.__articulationParameterValue3_changed.splice(i, 1);
}
}
return this.__articulationParameterValue3_changed;
}
get articulationParameterValue3_changed() {
return this.__articulationParameterValue3_changed;
}
removearticulationParameterValue4_changed(articulationParameterValue4_changed) {
for( let i = 0; i < this.__articulationParameterValue4_changed.length; i++) {
if ( this.__articulationParameterValue4_changed[i] === articulationParameterValue4_changed) {
this.__articulationParameterValue4_changed.splice(i, 1);
}
}
return this.__articulationParameterValue4_changed;
}
get articulationParameterValue4_changed() {
return this.__articulationParameterValue4_changed;
}
removearticulationParameterValue5_changed(articulationParameterValue5_changed) {
for( let i = 0; i < this.__articulationParameterValue5_changed.length; i++) {
if ( this.__articulationParameterValue5_changed[i] === articulationParameterValue5_changed) {
this.__articulationParameterValue5_changed.splice(i, 1);
}
}
return this.__articulationParameterValue5_changed;
}
get articulationParameterValue5_changed() {
return this.__articulationParameterValue5_changed;
}
removearticulationParameterValue6_changed(articulationParameterValue6_changed) {
for( let i = 0; i < this.__articulationParameterValue6_changed.length; i++) {
if ( this.__articulationParameterValue6_changed[i] === articulationParameterValue6_changed) {
this.__articulationParameterValue6_changed.splice(i, 1);
}
}
return this.__articulationParameterValue6_changed;
}
get articulationParameterValue6_changed() {
return this.__articulationParameterValue6_changed;
}
removearticulationParameterValue7_changed(articulationParameterValue7_changed) {
for( let i = 0; i < this.__articulationParameterValue7_changed.length; i++) {
if ( this.__articulationParameterValue7_changed[i] === articulationParameterValue7_changed) {
this.__articulationParameterValue7_changed.splice(i, 1);
}
}
return this.__articulationParameterValue7_changed;
}
get articulationParameterValue7_changed() {
return this.__articulationParameterValue7_changed;
}
set center(center = [0, 0, 0]) {
this.__center = [center];
return this;
}
addCenter(center = [0, 0, 0]) {
if (this.__center == null) {
this.__center = [];
}
this.__center.append(center);
return this;
}
removeCenter(center) {
for( let i = 0; i < this.__center.length; i++) {
if ( this.__center[i] === center) {
this.__center.splice(i, 1);
}
}
return this.__center;
}
get center() {
return this.__center;
}
set children(children = null) {
this.__children = [children];
return this;
}
addChildren(children = null) {
if (this.__children == null) {
this.__children = [];
}
this.__children.append(children);
return this;
}
removeChildren(children) {
for( let i = 0; i < this.__children.length; i++) {
if ( this.__children[i] === children) {
this.__children.splice(i, 1);
}
}
return this.__children;
}
get children() {
return this.__children;
}
removeCollideTime(collideTime) {
for( let i = 0; i < this.__collideTime.length; i++) {
if ( this.__collideTime[i] === collideTime) {
this.__collideTime.splice(i, 1);
}
}
return this.__collideTime;
}
get collideTime() {
return this.__collideTime;
}
set collisionType(collisionType = 0) {
this.__collisionType = [collisionType];
return this;
}
addCollisionType(collisionType = 0) {
if (this.__collisionType == null) {
this.__collisionType = [];
}
this.__collisionType.append(collisionType);
return this;
}
removeCollisionType(collisionType) {
for( let i = 0; i < this.__collisionType.length; i++) {
if ( this.__collisionType[i] === collisionType) {
this.__collisionType.splice(i, 1);
}
}
return this.__collisionType;
}
get collisionType() {
return this.__collisionType;
}
set deadReckoning(deadReckoning = 0) {
this.__deadReckoning = [deadReckoning];
return this;
}
addDeadReckoning(deadReckoning = 0) {
if (this.__deadReckoning == null) {
this.__deadReckoning = [];
}
this.__deadReckoning.append(deadReckoning);
return this;
}
removeDeadReckoning(deadReckoning) {
for( let i = 0; i < this.__deadReckoning.length; i++) {
if ( this.__deadReckoning[i] === deadReckoning) {
this.__deadReckoning.splice(i, 1);
}
}
return this.__deadReckoning;
}
get deadReckoning() {
return this.__deadReckoning;
}
removeDetonateTime(detonateTime) {
for( let i = 0; i < this.__detonateTime.length; i++) {
if ( this.__detonateTime[i] === detonateTime) {
this.__detonateTime.splice(i, 1);
}
}
return this.__detonateTime;
}
get detonateTime() {
return this.__detonateTime;
}
set detonationLocation(detonationLocation = [0, 0, 0]) {
this.__detonationLocation = [detonationLocation];
return this;
}
addDetonationLocation(detonationLocation = [0, 0, 0]) {
if (this.__detonationLocation == null) {
this.__detonationLocation = [];
}
this.__detonationLocation.append(detonationLocation);
return this;
}
removeDetonationLocation(detonationLocation) {
for( let i = 0; i < this.__detonationLocation.length; i++) {
if ( this.__detonationLocation[i] === detonationLocation) {
this.__detonationLocation.splice(i, 1);
}
}
return this.__detonationLocation;
}
get detonationLocation() {
return this.__detonationLocation;
}
set detonationRelativeLocation(detonationRelativeLocation = [0, 0, 0]) {
this.__detonationRelativeLocation = [detonationRelativeLocation];
return this;
}
addDetonationRelativeLocation(detonationRelativeLocation = [0, 0, 0]) {
if (this.__detonationRelativeLocation == null) {
this.__detonationRelativeLocation = [];
}
this.__detonationRelativeLocation.append(detonationRelativeLocation);
return this;
}
removeDetonationRelativeLocation(detonationRelativeLocation) {
for( let i = 0; i < this.__detonationRelativeLocation.length; i++) {
if ( this.__detonationRelativeLocation[i] === detonationRelativeLocation) {
this.__detonationRelativeLocation.splice(i, 1);
}
}
return this.__detonationRelativeLocation;
}
get detonationRelativeLocation() {
return this.__detonationRelativeLocation;
}
set detonationResult(detonationResult = 0) {
this.__detonationResult = [detonationResult];
return this;
}
addDetonationResult(detonationResult = 0) {
if (this.__detonationResult == null) {
this.__detonationResult = [];
}
this.__detonationResult.append(detonationResult);
return this;
}
removeDetonationResult(detonationResult) {
for( let i = 0; i < this.__detonationResult.length; i++) {
if ( this.__detonationResult[i] === detonationResult) {
this.__detonationResult.splice(i, 1);
}
}
return this.__detonationResult;
}
get detonationResult() {
return this.__detonationResult;
}
set displayBBox(displayBBox = false) {
this.__displayBBox = [displayBBox];
return this;
}
addDisplayBBox(displayBBox = false) {
if (this.__displayBBox == null) {
this.__displayBBox = [];
}
this.__displayBBox.append(displayBBox);
return this;
}
removeDisplayBBox(displayBBox) {
for( let i = 0; i < this.__displayBBox.length; i++) {
if ( this.__displayBBox[i] === displayBBox) {
this.__displayBBox.splice(i, 1);
}
}
return this.__displayBBox;
}
get isDisplayBBox() {
return this.__displayBBox;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
set entityCategory(entityCategory = 0) {
this.__entityCategory = [entityCategory];
return this;
}
addEntityCategory(entityCategory = 0) {
if (this.__entityCategory == null) {
this.__entityCategory = [];
}
this.__entityCategory.append(entityCategory);
return this;
}
removeEntityCategory(entityCategory) {
for( let i = 0; i < this.__entityCategory.length; i++) {
if ( this.__entityCategory[i] === entityCategory) {
this.__entityCategory.splice(i, 1);
}
}
return this.__entityCategory;
}
get entityCategory() {
return this.__entityCategory;
}
set entityCountry(entityCountry = 0) {
this.__entityCountry = [entityCountry];
return this;
}
addEntityCountry(entityCountry = 0) {
if (this.__entityCountry == null) {
this.__entityCountry = [];
}
this.__entityCountry.append(entityCountry);
return this;
}
removeEntityCountry(entityCountry) {
for( let i = 0; i < this.__entityCountry.length; i++) {
if ( this.__entityCountry[i] === entityCountry) {
this.__entityCountry.splice(i, 1);
}
}
return this.__entityCountry;
}
get entityCountry() {
return this.__entityCountry;
}
set entityDomain(entityDomain = 0) {
this.__entityDomain = [entityDomain];
return this;
}
addEntityDomain(entityDomain = 0) {
if (this.__entityDomain == null) {
this.__entityDomain = [];
}
this.__entityDomain.append(entityDomain);
return this;
}
removeEntityDomain(entityDomain) {
for( let i = 0; i < this.__entityDomain.length; i++) {
if ( this.__entityDomain[i] === entityDomain) {
this.__entityDomain.splice(i, 1);
}
}
return this.__entityDomain;
}
get entityDomain() {
return this.__entityDomain;
}
set entityExtra(entityExtra = 0) {
this.__entityExtra = [entityExtra];
return this;
}
addEntityExtra(entityExtra = 0) {
if (this.__entityExtra == null) {
this.__entityExtra = [];
}
this.__entityExtra.append(entityExtra);
return this;
}
removeEntityExtra(entityExtra) {
for( let i = 0; i < this.__entityExtra.length; i++) {
if ( this.__entityExtra[i] === entityExtra) {
this.__entityExtra.splice(i, 1);
}
}
return this.__entityExtra;
}
get entityExtra() {
return this.__entityExtra;
}
set entityID(entityID = 0) {
this.__entityID = [entityID];
return this;
}
addEntityID(entityID = 0) {
if (this.__entityID == null) {
this.__entityID = [];
}
this.__entityID.append(entityID);
return this;
}
removeEntityID(entityID) {
for( let i = 0; i < this.__entityID.length; i++) {
if ( this.__entityID[i] === entityID) {
this.__entityID.splice(i, 1);
}
}
return this.__entityID;
}
get entityID() {
return this.__entityID;
}
set entityKind(entityKind = 0) {
this.__entityKind = [entityKind];
return this;
}
addEntityKind(entityKind = 0) {
if (this.__entityKind == null) {
this.__entityKind = [];
}
this.__entityKind.append(entityKind);
return this;
}
removeEntityKind(entityKind) {
for( let i = 0; i < this.__entityKind.length; i++) {
if ( this.__entityKind[i] === entityKind) {
this.__entityKind.splice(i, 1);
}
}
return this.__entityKind;
}
get entityKind() {
return this.__entityKind;
}
set entitySpecific(entitySpecific = 0) {
this.__entitySpecific = [entitySpecific];
return this;
}
addEntitySpecific(entitySpecific = 0) {
if (this.__entitySpecific == null) {
this.__entitySpecific = [];
}
this.__entitySpecific.append(entitySpecific);
return this;
}
removeEntitySpecific(entitySpecific) {
for( let i = 0; i < this.__entitySpecific.length; i++) {
if ( this.__entitySpecific[i] === entitySpecific) {
this.__entitySpecific.splice(i, 1);
}
}
return this.__entitySpecific;
}
get entitySpecific() {
return this.__entitySpecific;
}
set entitySubcategory(entitySubcategory = 0) {
this.__entitySubcategory = [entitySubcategory];
return this;
}
addEntitySubcategory(entitySubcategory = 0) {
if (this.__entitySubcategory == null) {
this.__entitySubcategory = [];
}
this.__entitySubcategory.append(entitySubcategory);
return this;
}
removeEntitySubcategory(entitySubcategory) {
for( let i = 0; i < this.__entitySubcategory.length; i++) {
if ( this.__entitySubcategory[i] === entitySubcategory) {
this.__entitySubcategory.splice(i, 1);
}
}
return this.__entitySubcategory;
}
get entitySubcategory() {
return this.__entitySubcategory;
}
set eventApplicationID(eventApplicationID = 0) {
this.__eventApplicationID = [eventApplicationID];
return this;
}
addEventApplicationID(eventApplicationID = 0) {
if (this.__eventApplicationID == null) {
this.__eventApplicationID = [];
}
this.__eventApplicationID.append(eventApplicationID);
return this;
}
removeEventApplicationID(eventApplicationID) {
for( let i = 0; i < this.__eventApplicationID.length; i++) {
if ( this.__eventApplicationID[i] === eventApplicationID) {
this.__eventApplicationID.splice(i, 1);
}
}
return this.__eventApplicationID;
}
get eventApplicationID() {
return this.__eventApplicationID;
}
set eventEntityID(eventEntityID = 0) {
this.__eventEntityID = [eventEntityID];
return this;
}
addEventEntityID(eventEntityID = 0) {
if (this.__eventEntityID == null) {
this.__eventEntityID = [];
}
this.__eventEntityID.append(eventEntityID);
return this;
}
removeEventEntityID(eventEntityID) {
for( let i = 0; i < this.__eventEntityID.length; i++) {
if ( this.__eventEntityID[i] === eventEntityID) {
this.__eventEntityID.splice(i, 1);
}
}
return this.__eventEntityID;
}
get eventEntityID() {
return this.__eventEntityID;
}
set eventNumber(eventNumber = 0) {
this.__eventNumber = [eventNumber];
return this;
}
addEventNumber(eventNumber = 0) {
if (this.__eventNumber == null) {
this.__eventNumber = [];
}
this.__eventNumber.append(eventNumber);
return this;
}
removeEventNumber(eventNumber) {
for( let i = 0; i < this.__eventNumber.length; i++) {
if ( this.__eventNumber[i] === eventNumber) {
this.__eventNumber.splice(i, 1);
}
}
return this.__eventNumber;
}
get eventNumber() {
return this.__eventNumber;
}
set eventSiteID(eventSiteID = 0) {
this.__eventSiteID = [eventSiteID];
return this;
}
addEventSiteID(eventSiteID = 0) {
if (this.__eventSiteID == null) {
this.__eventSiteID = [];
}
this.__eventSiteID.append(eventSiteID);
return this;
}
removeEventSiteID(eventSiteID) {
for( let i = 0; i < this.__eventSiteID.length; i++) {
if ( this.__eventSiteID[i] === eventSiteID) {
this.__eventSiteID.splice(i, 1);
}
}
return this.__eventSiteID;
}
get eventSiteID() {
return this.__eventSiteID;
}
set fired1(fired1 = false) {
this.__fired1 = [fired1];
return this;
}
addFired1(fired1 = false) {
if (this.__fired1 == null) {
this.__fired1 = [];
}
this.__fired1.append(fired1);
return this;
}
removeFired1(fired1) {
for( let i = 0; i < this.__fired1.length; i++) {
if ( this.__fired1[i] === fired1) {
this.__fired1.splice(i, 1);
}
}
return this.__fired1;
}
get isFired1() {
return this.__fired1;
}
set fired2(fired2 = false) {
this.__fired2 = [fired2];
return this;
}
addFired2(fired2 = false) {
if (this.__fired2 == null) {
this.__fired2 = [];
}
this.__fired2.append(fired2);
return this;
}
removeFired2(fired2) {
for( let i = 0; i < this.__fired2.length; i++) {
if ( this.__fired2[i] === fired2) {
this.__fired2.splice(i, 1);
}
}
return this.__fired2;
}
get isFired2() {
return this.__fired2;
}
removeFiredTime(firedTime) {
for( let i = 0; i < this.__firedTime.length; i++) {
if ( this.__firedTime[i] === firedTime) {
this.__firedTime.splice(i, 1);
}
}
return this.__firedTime;
}
get firedTime() {
return this.__firedTime;
}
set fireMissionIndex(fireMissionIndex = 0) {
this.__fireMissionIndex = [fireMissionIndex];
return this;
}
addFireMissionIndex(fireMissionIndex = 0) {
if (this.__fireMissionIndex == null) {
this.__fireMissionIndex = [];
}
this.__fireMissionIndex.append(fireMissionIndex);
return this;
}
removeFireMissionIndex(fireMissionIndex) {
for( let i = 0; i < this.__fireMissionIndex.length; i++) {
if ( this.__fireMissionIndex[i] === fireMissionIndex) {
this.__fireMissionIndex.splice(i, 1);
}
}
return this.__fireMissionIndex;
}
get fireMissionIndex() {
return this.__fireMissionIndex;
}
set firingRange(firingRange = 0) {
this.__firingRange = [firingRange];
return this;
}
addFiringRange(firingRange = 0) {
if (this.__firingRange == null) {
this.__firingRange = [];
}
this.__firingRange.append(firingRange);
return this;
}
removeFiringRange(firingRange) {
for( let i = 0; i < this.__firingRange.length; i++) {
if ( this.__firingRange[i] === firingRange) {
this.__firingRange.splice(i, 1);
}
}
return this.__firingRange;
}
get firingRange() {
return this.__firingRange;
}
set firingRate(firingRate = 0) {
this.__firingRate = [firingRate];
return this;
}
addFiringRate(firingRate = 0) {
if (this.__firingRate == null) {
this.__firingRate = [];
}
this.__firingRate.append(firingRate);
return this;
}
removeFiringRate(firingRate) {
for( let i = 0; i < this.__firingRate.length; i++) {
if ( this.__firingRate[i] === firingRate) {
this.__firingRate.splice(i, 1);
}
}
return this.__firingRate;
}
get firingRate() {
return this.__firingRate;
}
set forceID(forceID = 0) {
this.__forceID = [forceID];
return this;
}
addForceID(forceID = 0) {
if (this.__forceID == null) {
this.__forceID = [];
}
this.__forceID.append(forceID);
return this;
}
removeForceID(forceID) {
for( let i = 0; i < this.__forceID.length; i++) {
if ( this.__forceID[i] === forceID) {
this.__forceID.splice(i, 1);
}
}
return this.__forceID;
}
get forceID() {
return this.__forceID;
}
set fuse(fuse = 0) {
this.__fuse = [fuse];
return this;
}
addFuse(fuse = 0) {
if (this.__fuse == null) {
this.__fuse = [];
}
this.__fuse.append(fuse);
return this;
}
removeFuse(fuse) {
for( let i = 0; i < this.__fuse.length; i++) {
if ( this.__fuse[i] === fuse) {
this.__fuse.splice(i, 1);
}
}
return this.__fuse;
}
get fuse() {
return this.__fuse;
}
set geoCoords(geoCoords = [0, 0, 0]) {
this.__geoCoords = [geoCoords];
return this;
}
addGeoCoords(geoCoords = [0, 0, 0]) {
if (this.__geoCoords == null) {
this.__geoCoords = [];
}
this.__geoCoords.append(geoCoords);
return this;
}
removeGeoCoords(geoCoords) {
for( let i = 0; i < this.__geoCoords.length; i++) {
if ( this.__geoCoords[i] === geoCoords) {
this.__geoCoords.splice(i, 1);
}
}
return this.__geoCoords;
}
get geoCoords() {
return this.__geoCoords;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
get isCollided() {
return this.__Collided;
}
get isDetonated() {
return this.__Detonated;
}
get isNetworkReader() {
return this.__NetworkReader;
}
get isNetworkWriter() {
return this.__NetworkWriter;
}
get isRtpHeaderHeard() {
return this.__RtpHeaderHeard;
}
get isStandAlone() {
return this.__StandAlone;
}
set linearAcceleration(linearAcceleration = [0, 0, 0]) {
this.__linearAcceleration = [linearAcceleration];
return this;
}
addLinearAcceleration(linearAcceleration = [0, 0, 0]) {
if (this.__linearAcceleration == null) {
this.__linearAcceleration = [];
}
this.__linearAcceleration.append(linearAcceleration);
return this;
}
removeLinearAcceleration(linearAcceleration) {
for( let i = 0; i < this.__linearAcceleration.length; i++) {
if ( this.__linearAcceleration[i] === linearAcceleration) {
this.__linearAcceleration.splice(i, 1);
}
}
return this.__linearAcceleration;
}
get linearAcceleration() {
return this.__linearAcceleration;
}
set linearVelocity(linearVelocity = [0, 0, 0]) {
this.__linearVelocity = [linearVelocity];
return this;
}
addLinearVelocity(linearVelocity = [0, 0, 0]) {
if (this.__linearVelocity == null) {
this.__linearVelocity = [];
}
this.__linearVelocity.append(linearVelocity);
return this;
}
removeLinearVelocity(linearVelocity) {
for( let i = 0; i < this.__linearVelocity.length; i++) {
if ( this.__linearVelocity[i] === linearVelocity) {
this.__linearVelocity.splice(i, 1);
}
}
return this.__linearVelocity;
}
get linearVelocity() {
return this.__linearVelocity;
}
set marking(marking = null) {
this.__marking = [marking];
return this;
}
addMarking(marking = null) {
if (this.__marking == null) {
this.__marking = [];
}
this.__marking.append(marking);
return this;
}
removeMarking(marking) {
for( let i = 0; i < this.__marking.length; i++) {
if ( this.__marking[i] === marking) {
this.__marking.splice(i, 1);
}
}
return this.__marking;
}
get marking() {
return this.__marking;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set multicastRelayHost(multicastRelayHost = null) {
this.__multicastRelayHost = [multicastRelayHost];
return this;
}
addMulticastRelayHost(multicastRelayHost = null) {
if (this.__multicastRelayHost == null) {
this.__multicastRelayHost = [];
}
this.__multicastRelayHost.append(multicastRelayHost);
return this;
}
removeMulticastRelayHost(multicastRelayHost) {
for( let i = 0; i < this.__multicastRelayHost.length; i++) {
if ( this.__multicastRelayHost[i] === multicastRelayHost) {
this.__multicastRelayHost.splice(i, 1);
}
}
return this.__multicastRelayHost;
}
get multicastRelayHost() {
return this.__multicastRelayHost;
}
set multicastRelayPort(multicastRelayPort = 0) {
this.__multicastRelayPort = [multicastRelayPort];
return this;
}
addMulticastRelayPort(multicastRelayPort = 0) {
if (this.__multicastRelayPort == null) {
this.__multicastRelayPort = [];
}
this.__multicastRelayPort.append(multicastRelayPort);
return this;
}
removeMulticastRelayPort(multicastRelayPort) {
for( let i = 0; i < this.__multicastRelayPort.length; i++) {
if ( this.__multicastRelayPort[i] === multicastRelayPort) {
this.__multicastRelayPort.splice(i, 1);
}
}
return this.__multicastRelayPort;
}
get multicastRelayPort() {
return this.__multicastRelayPort;
}
set munitionApplicationID(munitionApplicationID = 0) {
this.__munitionApplicationID = [munitionApplicationID];
return this;
}
addMunitionApplicationID(munitionApplicationID = 0) {
if (this.__munitionApplicationID == null) {
this.__munitionApplicationID = [];
}
this.__munitionApplicationID.append(munitionApplicationID);
return this;
}
removeMunitionApplicationID(munitionApplicationID) {
for( let i = 0; i < this.__munitionApplicationID.length; i++) {
if ( this.__munitionApplicationID[i] === munitionApplicationID) {
this.__munitionApplicationID.splice(i, 1);
}
}
return this.__munitionApplicationID;
}
get munitionApplicationID() {
return this.__munitionApplicationID;
}
set munitionEndPoint(munitionEndPoint = [0, 0, 0]) {
this.__munitionEndPoint = [munitionEndPoint];
return this;
}
addMunitionEndPoint(munitionEndPoint = [0, 0, 0]) {
if (this.__munitionEndPoint == null) {
this.__munitionEndPoint = [];
}
this.__munitionEndPoint.append(munitionEndPoint);
return this;
}
removeMunitionEndPoint(munitionEndPoint) {
for( let i = 0; i < this.__munitionEndPoint.length; i++) {
if ( this.__munitionEndPoint[i] === munitionEndPoint) {
this.__munitionEndPoint.splice(i, 1);
}
}
return this.__munitionEndPoint;
}
get munitionEndPoint() {
return this.__munitionEndPoint;
}
set munitionEntityID(munitionEntityID = 0) {
this.__munitionEntityID = [munitionEntityID];
return this;
}
addMunitionEntityID(munitionEntityID = 0) {
if (this.__munitionEntityID == null) {
this.__munitionEntityID = [];
}
this.__munitionEntityID.append(munitionEntityID);
return this;
}
removeMunitionEntityID(munitionEntityID) {
for( let i = 0; i < this.__munitionEntityID.length; i++) {
if ( this.__munitionEntityID[i] === munitionEntityID) {
this.__munitionEntityID.splice(i, 1);
}
}
return this.__munitionEntityID;
}
get munitionEntityID() {
return this.__munitionEntityID;
}
set munitionQuantity(munitionQuantity = 0) {
this.__munitionQuantity = [munitionQuantity];
return this;
}
addMunitionQuantity(munitionQuantity = 0) {
if (this.__munitionQuantity == null) {
this.__munitionQuantity = [];
}
this.__munitionQuantity.append(munitionQuantity);
return this;
}
removeMunitionQuantity(munitionQuantity) {
for( let i = 0; i < this.__munitionQuantity.length; i++) {
if ( this.__munitionQuantity[i] === munitionQuantity) {
this.__munitionQuantity.splice(i, 1);
}
}
return this.__munitionQuantity;
}
get munitionQuantity() {
return this.__munitionQuantity;
}
set munitionSiteID(munitionSiteID = 0) {
this.__munitionSiteID = [munitionSiteID];
return this;
}
addMunitionSiteID(munitionSiteID = 0) {
if (this.__munitionSiteID == null) {
this.__munitionSiteID = [];
}
this.__munitionSiteID.append(munitionSiteID);
return this;
}
removeMunitionSiteID(munitionSiteID) {
for( let i = 0; i < this.__munitionSiteID.length; i++) {
if ( this.__munitionSiteID[i] === munitionSiteID) {
this.__munitionSiteID.splice(i, 1);
}
}
return this.__munitionSiteID;
}
get munitionSiteID() {
return this.__munitionSiteID;
}
set munitionStartPoint(munitionStartPoint = [0, 0, 0]) {
this.__munitionStartPoint = [munitionStartPoint];
return this;
}
addMunitionStartPoint(munitionStartPoint = [0, 0, 0]) {
if (this.__munitionStartPoint == null) {
this.__munitionStartPoint = [];
}
this.__munitionStartPoint.append(munitionStartPoint);
return this;
}
removeMunitionStartPoint(munitionStartPoint) {
for( let i = 0; i < this.__munitionStartPoint.length; i++) {
if ( this.__munitionStartPoint[i] === munitionStartPoint) {
this.__munitionStartPoint.splice(i, 1);
}
}
return this.__munitionStartPoint;
}
get munitionStartPoint() {
return this.__munitionStartPoint;
}
set networkMode(networkMode = "standAlone") {
if ('standAlone' === networkMode) {
} else if ('networkReader' === networkMode) {
} else if ('networkWriter' === networkMode) {
} else {
return null;
}
this.__networkMode = [networkMode];
return this;
}
addNetworkMode(networkMode = "standAlone") {
if ('standAlone' === networkMode) {
} else if ('networkReader' === networkMode) {
} else if ('networkWriter' === networkMode) {
} else {
return null;
}
if (this.__networkMode == null) {
this.__networkMode = [];
}
this.__networkMode.append(networkMode);
return this;
}
removeNetworkMode(networkMode) {
for( let i = 0; i < this.__networkMode.length; i++) {
if ( this.__networkMode[i] === networkMode) {
this.__networkMode.splice(i, 1);
}
}
return this.__networkMode;
}
get networkMode() {
return this.__networkMode;
}
set port(port = 0) {
this.__port = [port];
return this;
}
addPort(port = 0) {
if (this.__port == null) {
this.__port = [];
}
this.__port.append(port);
return this;
}
removePort(port) {
for( let i = 0; i < this.__port.length; i++) {
if ( this.__port[i] === port) {
this.__port.splice(i, 1);
}
}
return this.__port;
}
get port() {
return this.__port;
}
set readInterval(readInterval = 0.1) {
if (readInterval == null || readInterval < 0) {
return null;
}
this.__readInterval = [readInterval];
return this;
}
addReadInterval(readInterval = 0.1) {
if (readInterval == null || readInterval < 0) {
return null;
}
if (this.__readInterval == null) {
this.__readInterval = [];
}
this.__readInterval.append(readInterval);
return this;
}
removeReadInterval(readInterval) {
for( let i = 0; i < this.__readInterval.length; i++) {
if ( this.__readInterval[i] === readInterval) {
this.__readInterval.splice(i, 1);
}
}
return this.__readInterval;
}
get readInterval() {
return this.__readInterval;
}
set rotation(rotation = [0, 0, 1, 0]) {
this.__rotation = [rotation];
return this;
}
addRotation(rotation = [0, 0, 1, 0]) {
if (this.__rotation == null) {
this.__rotation = [];
}
this.__rotation.append(rotation);
return this;
}
removeRotation(rotation) {
for( let i = 0; i < this.__rotation.length; i++) {
if ( this.__rotation[i] === rotation) {
this.__rotation.splice(i, 1);
}
}
return this.__rotation;
}
get rotation() {
return this.__rotation;
}
set scale(scale = [1, 1, 1]) {
this.__scale = [scale];
return this;
}
addScale(scale = [1, 1, 1]) {
if (this.__scale == null) {
this.__scale = [];
}
this.__scale.append(scale);
return this;
}
removeScale(scale) {
for( let i = 0; i < this.__scale.length; i++) {
if ( this.__scale[i] === scale) {
this.__scale.splice(i, 1);
}
}
return this.__scale;
}
get scale() {
return this.__scale;
}
set scaleOrientation(scaleOrientation = [0, 0, 1, 0]) {
this.__scaleOrientation = [scaleOrientation];
return this;
}
addScaleOrientation(scaleOrientation = [0, 0, 1, 0]) {
if (this.__scaleOrientation == null) {
this.__scaleOrientation = [];
}
this.__scaleOrientation.append(scaleOrientation);
return this;
}
removeScaleOrientation(scaleOrientation) {
for( let i = 0; i < this.__scaleOrientation.length; i++) {
if ( this.__scaleOrientation[i] === scaleOrientation) {
this.__scaleOrientation.splice(i, 1);
}
}
return this.__scaleOrientation;
}
get scaleOrientation() {
return this.__scaleOrientation;
}
set set_articulationParameterValue0(articulationParameterValue0 = null) {
this.__articulationParameterValue0 = [articulationParameterValue0];
return this;
}
set set_articulationParameterValue1(articulationParameterValue1 = null) {
this.__articulationParameterValue1 = [articulationParameterValue1];
return this;
}
set set_articulationParameterValue2(articulationParameterValue2 = null) {
this.__articulationParameterValue2 = [articulationParameterValue2];
return this;
}
set set_articulationParameterValue3(articulationParameterValue3 = null) {
this.__articulationParameterValue3 = [articulationParameterValue3];
return this;
}
set set_articulationParameterValue4(articulationParameterValue4 = null) {
this.__articulationParameterValue4 = [articulationParameterValue4];
return this;
}
set set_articulationParameterValue5(articulationParameterValue5 = null) {
this.__articulationParameterValue5 = [articulationParameterValue5];
return this;
}
set set_articulationParameterValue6(articulationParameterValue6 = null) {
this.__articulationParameterValue6 = [articulationParameterValue6];
return this;
}
set set_articulationParameterValue7(articulationParameterValue7 = null) {
this.__articulationParameterValue7 = [articulationParameterValue7];
return this;
}
set siteID(siteID = 0) {
this.__siteID = [siteID];
return this;
}
addSiteID(siteID = 0) {
if (this.__siteID == null) {
this.__siteID = [];
}
this.__siteID.append(siteID);
return this;
}
removeSiteID(siteID) {
for( let i = 0; i < this.__siteID.length; i++) {
if ( this.__siteID[i] === siteID) {
this.__siteID.splice(i, 1);
}
}
return this.__siteID;
}
get siteID() {
return this.__siteID;
}
removeTimestamp(timestamp) {
for( let i = 0; i < this.__timestamp.length; i++) {
if ( this.__timestamp[i] === timestamp) {
this.__timestamp.splice(i, 1);
}
}
return this.__timestamp;
}
get timestamp() {
return this.__timestamp;
}
set translation(translation = [0, 0, 0]) {
this.__translation = [translation];
return this;
}
addTranslation(translation = [0, 0, 0]) {
if (this.__translation == null) {
this.__translation = [];
}
this.__translation.append(translation);
return this;
}
removeTranslation(translation) {
for( let i = 0; i < this.__translation.length; i++) {
if ( this.__translation[i] === translation) {
this.__translation.splice(i, 1);
}
}
return this.__translation;
}
get translation() {
return this.__translation;
}
set visible(visible = true) {
this.__visible = [visible];
return this;
}
addVisible(visible = true) {
if (this.__visible == null) {
this.__visible = [];
}
this.__visible.append(visible);
return this;
}
removeVisible(visible) {
for( let i = 0; i < this.__visible.length; i++) {
if ( this.__visible[i] === visible) {
this.__visible.splice(i, 1);
}
}
return this.__visible;
}
get isVisible() {
return this.__visible;
}
set warhead(warhead = 0) {
this.__warhead = [warhead];
return this;
}
addWarhead(warhead = 0) {
if (this.__warhead == null) {
this.__warhead = [];
}
this.__warhead.append(warhead);
return this;
}
removeWarhead(warhead) {
for( let i = 0; i < this.__warhead.length; i++) {
if ( this.__warhead[i] === warhead) {
this.__warhead.splice(i, 1);
}
}
return this.__warhead;
}
get warhead() {
return this.__warhead;
}
set writeInterval(writeInterval = 1.0) {
if (writeInterval == null || writeInterval < 0) {
return null;
}
this.__writeInterval = [writeInterval];
return this;
}
addWriteInterval(writeInterval = 1.0) {
if (writeInterval == null || writeInterval < 0) {
return null;
}
if (this.__writeInterval == null) {
this.__writeInterval = [];
}
this.__writeInterval.append(writeInterval);
return this;
}
removeWriteInterval(writeInterval) {
for( let i = 0; i < this.__writeInterval.length; i++) {
if ( this.__writeInterval[i] === writeInterval) {
this.__writeInterval.splice(i, 1);
}
}
return this.__writeInterval;
}
get writeInterval() {
return this.__writeInterval;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__children_ === null) {
} else if (typeof this.__children_.toXMLNode === 'function') {
str += this.__children_.toXMLNode('children_');
} else if (typeof this.__children_ === 'string') {
str += ' children_="'+this.__children_+'"';
} else if (Array.isArray( this.__children_)) {
if (typeof this.__children_[0].toXMLNode !== 'function') {
str += ' children_="'+this.__children_.join(' ')+'"';
} else {
for (let i in this.__children_) {
if (typeof this.__children_[i].toXMLNode === 'function') {
str += this.__children_[i].toXMLNode('children_');
}
}
}
} else {
str += ' children_="'+this.__children_+'"';
}
if (this.__children === null) {
} else if (typeof this.__children.toXMLNode === 'function') {
str += this.__children.toXMLNode('children');
} else if (typeof this.__children === 'string') {
str += ' children="'+this.__children+'"';
} else if (Array.isArray( this.__children)) {
if (typeof this.__children[0].toXMLNode !== 'function') {
str += ' children="'+this.__children.join(' ')+'"';
} else {
for (let i in this.__children) {
if (typeof this.__children[i].toXMLNode === 'function') {
str += this.__children[i].toXMLNode('children');
}
}
}
} else {
str += ' children="'+this.__children+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__children_ === null) {
} else if (typeof this.__children_.toXMLNode === 'function') {
str += this.__children_.toXMLNode('children_');
} else if (typeof this.__children_ === 'string') {
str += ' children_="'+this.__children_+'"';
} else if (Array.isArray( this.__children_)) {
if (typeof this.__children_[0].toXMLNode !== 'function') {
str += ' children_="'+this.__children_.join(' ')+'"';
} else {
for (let i in this.__children_) {
if (typeof this.__children_[i].toXMLNode === 'function') {
str += this.__children_[i].toXMLNode('children_');
}
}
}
} else {
str += ' children_="'+this.__children_+'"';
}
str += ''
return str;
}
}
export class ExplosionEmitter extends X3DParticleEmitterNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var mass = kwargs["mass"] || 0;
if (mass == null || mass < 0) {
return null;
}
this.__mass = mass;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var position = kwargs["position"] || [0, 0, 0];
this.__position = position;
var speed = kwargs["speed"] || 0;
if (speed == null || speed < 0) {
return null;
}
this.__speed = speed;
var surfaceArea = kwargs["surfaceArea"] || 0;
if (surfaceArea == null || surfaceArea < 0) {
return null;
}
this.__surfaceArea = surfaceArea;
var variation = kwargs["variation"] || 0.25;
if (variation == null || variation < 0) {
return null;
}
this.__variation = variation;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set mass(mass = 0) {
if (mass == null || mass < 0) {
return null;
}
this.__mass = [mass];
return this;
}
addMass(mass = 0) {
if (mass == null || mass < 0) {
return null;
}
if (this.__mass == null) {
this.__mass = [];
}
this.__mass.append(mass);
return this;
}
removeMass(mass) {
for( let i = 0; i < this.__mass.length; i++) {
if ( this.__mass[i] === mass) {
this.__mass.splice(i, 1);
}
}
return this.__mass;
}
get mass() {
return this.__mass;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set position(position = [0, 0, 0]) {
this.__position = [position];
return this;
}
addPosition(position = [0, 0, 0]) {
if (this.__position == null) {
this.__position = [];
}
this.__position.append(position);
return this;
}
removePosition(position) {
for( let i = 0; i < this.__position.length; i++) {
if ( this.__position[i] === position) {
this.__position.splice(i, 1);
}
}
return this.__position;
}
get position() {
return this.__position;
}
set speed(speed = 0) {
if (speed == null || speed < 0) {
return null;
}
this.__speed = [speed];
return this;
}
addSpeed(speed = 0) {
if (speed == null || speed < 0) {
return null;
}
if (this.__speed == null) {
this.__speed = [];
}
this.__speed.append(speed);
return this;
}
removeSpeed(speed) {
for( let i = 0; i < this.__speed.length; i++) {
if ( this.__speed[i] === speed) {
this.__speed.splice(i, 1);
}
}
return this.__speed;
}
get speed() {
return this.__speed;
}
set variation(variation = 0.25) {
if (variation == null || variation < 0) {
return null;
}
this.__variation = [variation];
return this;
}
addVariation(variation = 0.25) {
if (variation == null || variation < 0) {
return null;
}
if (this.__variation == null) {
this.__variation = [];
}
this.__variation.append(variation);
return this;
}
removeVariation(variation) {
for( let i = 0; i < this.__variation.length; i++) {
if ( this.__variation[i] === variation) {
this.__variation.splice(i, 1);
}
}
return this.__variation;
}
get variation() {
return this.__variation;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class Extrusion extends X3DGeometryNode {
constructor(kwargs = {}) {
super(kwargs);
var beginCap = kwargs["beginCap"] || true;
this.__beginCap = beginCap;
var ccw = kwargs["ccw"] || true;
this.__ccw = ccw;
var convex = kwargs["convex"] || true;
this.__convex = convex;
var creaseAngle = kwargs["creaseAngle"] || 0.0;
if (creaseAngle == null || creaseAngle < 0) {
return null;
}
this.__creaseAngle = creaseAngle;
var crossSection = kwargs["crossSection"] || [1, 1, 1, -1, -1, -1, -1, 1, 1, 1];
this.__crossSection = crossSection;
var endCap = kwargs["endCap"] || true;
this.__endCap = endCap;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var orientation = kwargs["orientation"] || [0, 0, 1, 0];
this.__orientation = orientation;
var scale = kwargs["scale"] || [1, 1];
this.__scale = scale;
var crossSection = kwargs["crossSection"] || null;
this.__crossSection = crossSection;
var orientation = kwargs["orientation"] || null;
this.__orientation = orientation;
var scale = kwargs["scale"] || null;
this.__scale = scale;
var spine = kwargs["spine"] || null;
this.__spine = spine;
var solid = kwargs["solid"] || true;
this.__solid = solid;
var spine = kwargs["spine"] || [0, 0, 0, 0, 1, 0];
this.__spine = spine;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set orientation(orientation = [0, 0, 1, 0]) {
this.__orientation = [orientation];
return this;
}
addOrientation(orientation = [0, 0, 1, 0]) {
if (this.__orientation == null) {
this.__orientation = [];
}
this.__orientation.append(orientation);
return this;
}
removeOrientation(orientation) {
for( let i = 0; i < this.__orientation.length; i++) {
if ( this.__orientation[i] === orientation) {
this.__orientation.splice(i, 1);
}
}
return this.__orientation;
}
get orientation() {
return this.__orientation;
}
set scale(scale = [1, 1]) {
this.__scale = [scale];
return this;
}
addScale(scale = [1, 1]) {
if (this.__scale == null) {
this.__scale = [];
}
this.__scale.append(scale);
return this;
}
removeScale(scale) {
for( let i = 0; i < this.__scale.length; i++) {
if ( this.__scale[i] === scale) {
this.__scale.splice(i, 1);
}
}
return this.__scale;
}
get scale() {
return this.__scale;
}
set set_crossSection(crossSection = null) {
this.__crossSection = [crossSection];
return this;
}
set set_orientation(orientation = null) {
this.__orientation = [orientation];
return this;
}
set set_scale(scale = null) {
this.__scale = [scale];
return this;
}
set set_spine(spine = null) {
this.__spine = [spine];
return this;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class FillProperties extends X3DAppearanceChildNode {
constructor(kwargs = {}) {
super(kwargs);
var filled = kwargs["filled"] || true;
this.__filled = filled;
var hatchColor = kwargs["hatchColor"] || [1, 1, 1];
if (hatchColor == null || hatchColor.length <= 0 || Math.min(hatchColor) < 0) {
return null;
}
if (hatchColor == null || hatchColor.length <= 0 || Math.max(hatchColor) > 1) {
return null;
}
this.__hatchColor = hatchColor;
var hatched = kwargs["hatched"] || true;
this.__hatched = hatched;
var hatchStyle = kwargs["hatchStyle"] || 1;
this.__hatchStyle = hatchStyle;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set filled(filled = true) {
this.__filled = [filled];
return this;
}
addFilled(filled = true) {
if (this.__filled == null) {
this.__filled = [];
}
this.__filled.append(filled);
return this;
}
removeFilled(filled) {
for( let i = 0; i < this.__filled.length; i++) {
if ( this.__filled[i] === filled) {
this.__filled.splice(i, 1);
}
}
return this.__filled;
}
get isFilled() {
return this.__filled;
}
set hatchColor(hatchColor = [1, 1, 1]) {
if (hatchColor == null || hatchColor.length <= 0 || Math.min(hatchColor) < 0) {
return null;
}
if (hatchColor == null || hatchColor.length <= 0 || Math.max(hatchColor) > 1) {
return null;
}
this.__hatchColor = [hatchColor];
return this;
}
addHatchColor(hatchColor = [1, 1, 1]) {
if (hatchColor == null || hatchColor.length <= 0 || Math.min(hatchColor) < 0) {
return null;
}
if (hatchColor == null || hatchColor.length <= 0 || Math.max(hatchColor) > 1) {
return null;
}
if (this.__hatchColor == null) {
this.__hatchColor = [];
}
this.__hatchColor.append(hatchColor);
return this;
}
removeHatchColor(hatchColor) {
for( let i = 0; i < this.__hatchColor.length; i++) {
if ( this.__hatchColor[i] === hatchColor) {
this.__hatchColor.splice(i, 1);
}
}
return this.__hatchColor;
}
get hatchColor() {
return this.__hatchColor;
}
set hatched(hatched = true) {
this.__hatched = [hatched];
return this;
}
addHatched(hatched = true) {
if (this.__hatched == null) {
this.__hatched = [];
}
this.__hatched.append(hatched);
return this;
}
removeHatched(hatched) {
for( let i = 0; i < this.__hatched.length; i++) {
if ( this.__hatched[i] === hatched) {
this.__hatched.splice(i, 1);
}
}
return this.__hatched;
}
get isHatched() {
return this.__hatched;
}
set hatchStyle(hatchStyle = 1) {
this.__hatchStyle = [hatchStyle];
return this;
}
addHatchStyle(hatchStyle = 1) {
if (this.__hatchStyle == null) {
this.__hatchStyle = [];
}
this.__hatchStyle.append(hatchStyle);
return this;
}
removeHatchStyle(hatchStyle) {
for( let i = 0; i < this.__hatchStyle.length; i++) {
if ( this.__hatchStyle[i] === hatchStyle) {
this.__hatchStyle.splice(i, 1);
}
}
return this.__hatchStyle;
}
get hatchStyle() {
return this.__hatchStyle;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class FloatVertexAttribute extends X3DVertexAttributeNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var name = kwargs["name"] || null;
this.__name = name;
var numComponents = kwargs["numComponents"] || 4;
if (numComponents == null || numComponents < 1) {
return null;
}
if (numComponents == null || numComponents > 4) {
return null;
}
this.__numComponents = numComponents;
var value = kwargs["value"] || null;
this.__value = value;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set name(name = null) {
this.__name = [name];
return this;
}
addName(name = null) {
if (this.__name == null) {
this.__name = [];
}
this.__name.append(name);
return this;
}
removeName(name) {
for( let i = 0; i < this.__name.length; i++) {
if ( this.__name[i] === name) {
this.__name.splice(i, 1);
}
}
return this.__name;
}
get name() {
return this.__name;
}
set value(value = null) {
this.__value = [value];
return this;
}
addValue(value = null) {
if (this.__value == null) {
this.__value = [];
}
this.__value.append(value);
return this;
}
removeValue(value) {
for( let i = 0; i < this.__value.length; i++) {
if ( this.__value[i] === value) {
this.__value.splice(i, 1);
}
}
return this.__value;
}
get value() {
return this.__value;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class Fog extends X3DBindableNode {
constructor(kwargs = {}) {
super(kwargs);
var bindTime = kwargs["bindTime"] || null;
this.__bindTime = bindTime;
var color = kwargs["color"] || [1, 1, 1];
if (color == null || color.length <= 0 || Math.min(color) < 0) {
return null;
}
if (color == null || color.length <= 0 || Math.max(color) > 1) {
return null;
}
this.__color = color;
var fogType = kwargs["fogType"] || "LINEAR";
if ('LINEAR' === fogType) {
} else if ('EXPONENTIAL' === fogType) {
} else {
return null;
}
this.__fogType = fogType;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Bound = kwargs["Bound"] || null;
this.__Bound = Bound;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var bind = kwargs["bind"] || null;
this.__bind = bind;
var visibilityRange = kwargs["visibilityRange"] || 0;
if (visibilityRange == null || visibilityRange < 0) {
return null;
}
this.__visibilityRange = visibilityRange;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
removeBindTime(bindTime) {
for( let i = 0; i < this.__bindTime.length; i++) {
if ( this.__bindTime[i] === bindTime) {
this.__bindTime.splice(i, 1);
}
}
return this.__bindTime;
}
get bindTime() {
return this.__bindTime;
}
set color(color = [1, 1, 1]) {
if (color == null || color.length <= 0 || Math.min(color) < 0) {
return null;
}
if (color == null || color.length <= 0 || Math.max(color) > 1) {
return null;
}
this.__color = [color];
return this;
}
addColor(color = [1, 1, 1]) {
if (color == null || color.length <= 0 || Math.min(color) < 0) {
return null;
}
if (color == null || color.length <= 0 || Math.max(color) > 1) {
return null;
}
if (this.__color == null) {
this.__color = [];
}
this.__color.append(color);
return this;
}
removeColor(color) {
for( let i = 0; i < this.__color.length; i++) {
if ( this.__color[i] === color) {
this.__color.splice(i, 1);
}
}
return this.__color;
}
get color() {
return this.__color;
}
set fogType(fogType = "LINEAR") {
if ('LINEAR' === fogType) {
} else if ('EXPONENTIAL' === fogType) {
} else {
return null;
}
this.__fogType = [fogType];
return this;
}
addFogType(fogType = "LINEAR") {
if ('LINEAR' === fogType) {
} else if ('EXPONENTIAL' === fogType) {
} else {
return null;
}
if (this.__fogType == null) {
this.__fogType = [];
}
this.__fogType.append(fogType);
return this;
}
removeFogType(fogType) {
for( let i = 0; i < this.__fogType.length; i++) {
if ( this.__fogType[i] === fogType) {
this.__fogType.splice(i, 1);
}
}
return this.__fogType;
}
get fogType() {
return this.__fogType;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isBound() {
return this.__Bound;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set set_bind(bind = null) {
this.__bind = [bind];
return this;
}
set visibilityRange(visibilityRange = 0) {
if (visibilityRange == null || visibilityRange < 0) {
return null;
}
this.__visibilityRange = [visibilityRange];
return this;
}
addVisibilityRange(visibilityRange = 0) {
if (visibilityRange == null || visibilityRange < 0) {
return null;
}
if (this.__visibilityRange == null) {
this.__visibilityRange = [];
}
this.__visibilityRange.append(visibilityRange);
return this;
}
removeVisibilityRange(visibilityRange) {
for( let i = 0; i < this.__visibilityRange.length; i++) {
if ( this.__visibilityRange[i] === visibilityRange) {
this.__visibilityRange.splice(i, 1);
}
}
return this.__visibilityRange;
}
get visibilityRange() {
return this.__visibilityRange;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class FogCoordinate extends X3DGeometricPropertyNode {
constructor(kwargs = {}) {
super(kwargs);
var depth = kwargs["depth"] || null;
if (depth == null || depth.length <= 0 || Math.min(depth) < 0) {
return null;
}
if (depth == null || depth.length <= 0 || Math.max(depth) > 1) {
return null;
}
this.__depth = depth;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set depth(depth = null) {
if (depth == null || depth.length <= 0 || Math.min(depth) < 0) {
return null;
}
if (depth == null || depth.length <= 0 || Math.max(depth) > 1) {
return null;
}
this.__depth = [depth];
return this;
}
addDepth(depth = null) {
if (depth == null || depth.length <= 0 || Math.min(depth) < 0) {
return null;
}
if (depth == null || depth.length <= 0 || Math.max(depth) > 1) {
return null;
}
if (this.__depth == null) {
this.__depth = [];
}
this.__depth.append(depth);
return this;
}
removeDepth(depth) {
for( let i = 0; i < this.__depth.length; i++) {
if ( this.__depth[i] === depth) {
this.__depth.splice(i, 1);
}
}
return this.__depth;
}
get depth() {
return this.__depth;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class FontStyle extends X3DFontStyleNode {
constructor(kwargs = {}) {
super(kwargs);
var family = kwargs["family"] || ["SERIF"];
this.__family = family;
var horizontal = kwargs["horizontal"] || true;
this.__horizontal = horizontal;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var justify = kwargs["justify"] || ["BEGIN"];
if ('"MIDDLE"' === justify) {
} else if ('"MIDDLE" "BEGIN"' === justify) {
} else if ('"MIDDLE" "END"' === justify) {
} else if ('"MIDDLE" "FIRST"' === justify) {
} else if ('"MIDDLE" "MIDDLE"' === justify) {
} else if ('"BEGIN"' === justify) {
} else if ('"BEGIN" "BEGIN"' === justify) {
} else if ('"BEGIN" "END"' === justify) {
} else if ('"BEGIN" "FIRST"' === justify) {
} else if ('"BEGIN" "MIDDLE"' === justify) {
} else if ('"END"' === justify) {
} else if ('"END" "BEGIN"' === justify) {
} else if ('"END" "END"' === justify) {
} else if ('"END" "FIRST"' === justify) {
} else if ('"END" "MIDDLE"' === justify) {
} else if ('"FIRST"' === justify) {
} else if ('"FIRST" "BEGIN"' === justify) {
} else if ('"FIRST" "END"' === justify) {
} else if ('"FIRST" "FIRST"' === justify) {
} else if ('"FIRST" "MIDDLE"' === justify) {
} else {
return null;
}
this.__justify = justify;
var language = kwargs["language"] || null;
this.__language = language;
var leftToRight = kwargs["leftToRight"] || true;
this.__leftToRight = leftToRight;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var size = kwargs["size"] || 1.0;
if (size == null || size <= 0) {
return null;
}
this.__size = size;
var spacing = kwargs["spacing"] || 1.0;
if (spacing == null || spacing < 0) {
return null;
}
this.__spacing = spacing;
var style = kwargs["style"] || "PLAIN";
if ('PLAIN' === style) {
} else if ('BOLD' === style) {
} else if ('ITALIC' === style) {
} else if ('BOLDITALIC' === style) {
} else {
return null;
}
this.__style = style;
var topToBottom = kwargs["topToBottom"] || true;
this.__topToBottom = topToBottom;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class ForcePhysicsModel extends X3DParticlePhysicsModelNode {
constructor(kwargs = {}) {
super(kwargs);
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var force = kwargs["force"] || [0, -9.8, 0];
this.__force = force;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
set force(force = [0, -9.8, 0]) {
this.__force = [force];
return this;
}
addForce(force = [0, -9.8, 0]) {
if (this.__force == null) {
this.__force = [];
}
this.__force.append(force);
return this;
}
removeForce(force) {
for( let i = 0; i < this.__force.length; i++) {
if ( this.__force[i] === force) {
this.__force.splice(i, 1);
}
}
return this.__force;
}
get force() {
return this.__force;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class GeneratedCubeMapTexture extends X3DEnvironmentTextureNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var size = kwargs["size"] || 128;
if (size == null || size <= 0) {
return null;
}
this.__size = size;
var textureProperties = kwargs["textureProperties"] || null;
this.__textureProperties = textureProperties;
var update = kwargs["update"] || "NONE";
if ('NONE' === update) {
} else if ('NEXT_FRAME_ONLY' === update) {
} else if ('ALWAYS' === update) {
} else {
return null;
}
this.__update = update;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set update(update = "NONE") {
if ('NONE' === update) {
} else if ('NEXT_FRAME_ONLY' === update) {
} else if ('ALWAYS' === update) {
} else {
return null;
}
this.__update = [update];
return this;
}
addUpdate(update = "NONE") {
if ('NONE' === update) {
} else if ('NEXT_FRAME_ONLY' === update) {
} else if ('ALWAYS' === update) {
} else {
return null;
}
if (this.__update == null) {
this.__update = [];
}
this.__update.append(update);
return this;
}
removeUpdate(update) {
for( let i = 0; i < this.__update.length; i++) {
if ( this.__update[i] === update) {
this.__update.splice(i, 1);
}
}
return this.__update;
}
get update() {
return this.__update;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__textureProperties === null) {
} else if (typeof this.__textureProperties.toXMLNode === 'function') {
str += this.__textureProperties.toXMLNode('textureProperties');
} else if (typeof this.__textureProperties === 'string') {
str += ' textureProperties="'+this.__textureProperties+'"';
} else if (Array.isArray( this.__textureProperties)) {
if (typeof this.__textureProperties[0].toXMLNode !== 'function') {
str += ' textureProperties="'+this.__textureProperties.join(' ')+'"';
} else {
for (let i in this.__textureProperties) {
if (typeof this.__textureProperties[i].toXMLNode === 'function') {
str += this.__textureProperties[i].toXMLNode('textureProperties');
}
}
}
} else {
str += ' textureProperties="'+this.__textureProperties+'"';
}
str += ''
return str;
}
}
export class GeoCoordinate extends X3DCoordinateNode {
constructor(kwargs = {}) {
super(kwargs);
var geoOrigin = kwargs["geoOrigin"] || null;
this.__geoOrigin = geoOrigin;
var geoSystem = kwargs["geoSystem"] || ["GD", "WE"];
this.__geoSystem = geoSystem;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var point = kwargs["point"] || null;
this.__point = point;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set point(point = null) {
this.__point = [point];
return this;
}
addPoint(point = null) {
if (this.__point == null) {
this.__point = [];
}
this.__point.append(point);
return this;
}
removePoint(point) {
for( let i = 0; i < this.__point.length; i++) {
if ( this.__point[i] === point) {
this.__point.splice(i, 1);
}
}
return this.__point;
}
get point() {
return this.__point;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__geoOrigin === null) {
} else if (typeof this.__geoOrigin.toXMLNode === 'function') {
str += this.__geoOrigin.toXMLNode('geoOrigin');
} else if (typeof this.__geoOrigin === 'string') {
str += ' geoOrigin="'+this.__geoOrigin+'"';
} else if (Array.isArray( this.__geoOrigin)) {
if (typeof this.__geoOrigin[0].toXMLNode !== 'function') {
str += ' geoOrigin="'+this.__geoOrigin.join(' ')+'"';
} else {
for (let i in this.__geoOrigin) {
if (typeof this.__geoOrigin[i].toXMLNode === 'function') {
str += this.__geoOrigin[i].toXMLNode('geoOrigin');
}
}
}
} else {
str += ' geoOrigin="'+this.__geoOrigin+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class GeoElevationGrid extends X3DGeometryNode {
constructor(kwargs = {}) {
super(kwargs);
var ccw = kwargs["ccw"] || true;
this.__ccw = ccw;
var color = kwargs["color"] || null;
this.__color = color;
var colorPerVertex = kwargs["colorPerVertex"] || true;
this.__colorPerVertex = colorPerVertex;
var creaseAngle = kwargs["creaseAngle"] || 0;
if (creaseAngle == null || creaseAngle < 0) {
return null;
}
this.__creaseAngle = creaseAngle;
var geoGridOrigin = kwargs["geoGridOrigin"] || [0, 0, 0];
this.__geoGridOrigin = geoGridOrigin;
var geoOrigin = kwargs["geoOrigin"] || null;
this.__geoOrigin = geoOrigin;
var geoSystem = kwargs["geoSystem"] || ["GD", "WE"];
this.__geoSystem = geoSystem;
var height = kwargs["height"] || [0, 0, 0, 0];
this.__height = height;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var normal = kwargs["normal"] || null;
this.__normal = normal;
var normalPerVertex = kwargs["normalPerVertex"] || true;
this.__normalPerVertex = normalPerVertex;
var height = kwargs["height"] || null;
this.__height = height;
var solid = kwargs["solid"] || true;
this.__solid = solid;
var texCoord = kwargs["texCoord"] || null;
this.__texCoord = texCoord;
var xDimension = kwargs["xDimension"] || 2;
if (xDimension == null || xDimension < 0) {
return null;
}
this.__xDimension = xDimension;
var xSpacing = kwargs["xSpacing"] || 1.0;
if (xSpacing == null || xSpacing <= 0) {
return null;
}
this.__xSpacing = xSpacing;
var yScale = kwargs["yScale"] || 1;
if (yScale == null || yScale < 0) {
return null;
}
this.__yScale = yScale;
var zDimension = kwargs["zDimension"] || 2;
if (zDimension == null || zDimension < 0) {
return null;
}
this.__zDimension = zDimension;
var zSpacing = kwargs["zSpacing"] || 1.0;
if (zSpacing == null || zSpacing <= 0) {
return null;
}
this.__zSpacing = zSpacing;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set color(color = null) {
this.__color = [color];
return this;
}
addColor(color = null) {
if (this.__color == null) {
this.__color = [];
}
this.__color.append(color);
return this;
}
removeColor(color) {
for( let i = 0; i < this.__color.length; i++) {
if ( this.__color[i] === color) {
this.__color.splice(i, 1);
}
}
return this.__color;
}
get color() {
return this.__color;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set normal(normal = null) {
this.__normal = [normal];
return this;
}
addNormal(normal = null) {
if (this.__normal == null) {
this.__normal = [];
}
this.__normal.append(normal);
return this;
}
removeNormal(normal) {
for( let i = 0; i < this.__normal.length; i++) {
if ( this.__normal[i] === normal) {
this.__normal.splice(i, 1);
}
}
return this.__normal;
}
get normal() {
return this.__normal;
}
set set_height(height = null) {
this.__height = [height];
return this;
}
set texCoord(texCoord = null) {
this.__texCoord = [texCoord];
return this;
}
addTexCoord(texCoord = null) {
if (this.__texCoord == null) {
this.__texCoord = [];
}
this.__texCoord.append(texCoord);
return this;
}
removeTexCoord(texCoord) {
for( let i = 0; i < this.__texCoord.length; i++) {
if ( this.__texCoord[i] === texCoord) {
this.__texCoord.splice(i, 1);
}
}
return this.__texCoord;
}
get texCoord() {
return this.__texCoord;
}
set yScale(yScale = 1) {
if (yScale == null || yScale < 0) {
return null;
}
this.__yScale = [yScale];
return this;
}
addYScale(yScale = 1) {
if (yScale == null || yScale < 0) {
return null;
}
if (this.__yScale == null) {
this.__yScale = [];
}
this.__yScale.append(yScale);
return this;
}
removeYScale(yScale) {
for( let i = 0; i < this.__yScale.length; i++) {
if ( this.__yScale[i] === yScale) {
this.__yScale.splice(i, 1);
}
}
return this.__yScale;
}
get yScale() {
return this.__yScale;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__color === null) {
} else if (typeof this.__color.toXMLNode === 'function') {
str += this.__color.toXMLNode('color');
} else if (typeof this.__color === 'string') {
str += ' color="'+this.__color+'"';
} else if (Array.isArray( this.__color)) {
if (typeof this.__color[0].toXMLNode !== 'function') {
str += ' color="'+this.__color.join(' ')+'"';
} else {
for (let i in this.__color) {
if (typeof this.__color[i].toXMLNode === 'function') {
str += this.__color[i].toXMLNode('color');
}
}
}
} else {
str += ' color="'+this.__color+'"';
}
if (this.__geoOrigin === null) {
} else if (typeof this.__geoOrigin.toXMLNode === 'function') {
str += this.__geoOrigin.toXMLNode('geoOrigin');
} else if (typeof this.__geoOrigin === 'string') {
str += ' geoOrigin="'+this.__geoOrigin+'"';
} else if (Array.isArray( this.__geoOrigin)) {
if (typeof this.__geoOrigin[0].toXMLNode !== 'function') {
str += ' geoOrigin="'+this.__geoOrigin.join(' ')+'"';
} else {
for (let i in this.__geoOrigin) {
if (typeof this.__geoOrigin[i].toXMLNode === 'function') {
str += this.__geoOrigin[i].toXMLNode('geoOrigin');
}
}
}
} else {
str += ' geoOrigin="'+this.__geoOrigin+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__normal === null) {
} else if (typeof this.__normal.toXMLNode === 'function') {
str += this.__normal.toXMLNode('normal');
} else if (typeof this.__normal === 'string') {
str += ' normal="'+this.__normal+'"';
} else if (Array.isArray( this.__normal)) {
if (typeof this.__normal[0].toXMLNode !== 'function') {
str += ' normal="'+this.__normal.join(' ')+'"';
} else {
for (let i in this.__normal) {
if (typeof this.__normal[i].toXMLNode === 'function') {
str += this.__normal[i].toXMLNode('normal');
}
}
}
} else {
str += ' normal="'+this.__normal+'"';
}
if (this.__texCoord === null) {
} else if (typeof this.__texCoord.toXMLNode === 'function') {
str += this.__texCoord.toXMLNode('texCoord');
} else if (typeof this.__texCoord === 'string') {
str += ' texCoord="'+this.__texCoord+'"';
} else if (Array.isArray( this.__texCoord)) {
if (typeof this.__texCoord[0].toXMLNode !== 'function') {
str += ' texCoord="'+this.__texCoord.join(' ')+'"';
} else {
for (let i in this.__texCoord) {
if (typeof this.__texCoord[i].toXMLNode === 'function') {
str += this.__texCoord[i].toXMLNode('texCoord');
}
}
}
} else {
str += ' texCoord="'+this.__texCoord+'"';
}
str += ''
return str;
}
}
export class GeoLocation extends X3DGroupingNode {
constructor(kwargs = {}) {
super(kwargs);
var children_ = kwargs["children_"] || null;
this.__children_ = children_;
var bboxCenter = kwargs["bboxCenter"] || [0, 0, 0];
this.__bboxCenter = bboxCenter;
var bboxSize = kwargs["bboxSize"] || [-1, -1, -1];
this.__bboxSize = bboxSize;
var children = kwargs["children"] || null;
this.__children = children;
var displayBBox = kwargs["displayBBox"] || false;
this.__displayBBox = displayBBox;
var geoCoords = kwargs["geoCoords"] || [0, 0, 0];
this.__geoCoords = geoCoords;
var geoOrigin = kwargs["geoOrigin"] || null;
this.__geoOrigin = geoOrigin;
var geoSystem = kwargs["geoSystem"] || ["GD", "WE"];
this.__geoSystem = geoSystem;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var children_ = kwargs["children_"] || null;
this.__children_ = children_;
var visible = kwargs["visible"] || true;
this.__visible = visible;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
addChildren(children_ = null) {
if (this.__children_ == null) {
this.__children_ = [];
}
this.__children_.append(children_);
return this;
}
set children(children = null) {
this.__children = [children];
return this;
}
addChildren(children = null) {
if (this.__children == null) {
this.__children = [];
}
this.__children.append(children);
return this;
}
removeChildren(children) {
for( let i = 0; i < this.__children.length; i++) {
if ( this.__children[i] === children) {
this.__children.splice(i, 1);
}
}
return this.__children;
}
get children() {
return this.__children;
}
set displayBBox(displayBBox = false) {
this.__displayBBox = [displayBBox];
return this;
}
addDisplayBBox(displayBBox = false) {
if (this.__displayBBox == null) {
this.__displayBBox = [];
}
this.__displayBBox.append(displayBBox);
return this;
}
removeDisplayBBox(displayBBox) {
for( let i = 0; i < this.__displayBBox.length; i++) {
if ( this.__displayBBox[i] === displayBBox) {
this.__displayBBox.splice(i, 1);
}
}
return this.__displayBBox;
}
get isDisplayBBox() {
return this.__displayBBox;
}
set geoCoords(geoCoords = [0, 0, 0]) {
this.__geoCoords = [geoCoords];
return this;
}
addGeoCoords(geoCoords = [0, 0, 0]) {
if (this.__geoCoords == null) {
this.__geoCoords = [];
}
this.__geoCoords.append(geoCoords);
return this;
}
removeGeoCoords(geoCoords) {
for( let i = 0; i < this.__geoCoords.length; i++) {
if ( this.__geoCoords[i] === geoCoords) {
this.__geoCoords.splice(i, 1);
}
}
return this.__geoCoords;
}
get geoCoords() {
return this.__geoCoords;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set visible(visible = true) {
this.__visible = [visible];
return this;
}
addVisible(visible = true) {
if (this.__visible == null) {
this.__visible = [];
}
this.__visible.append(visible);
return this;
}
removeVisible(visible) {
for( let i = 0; i < this.__visible.length; i++) {
if ( this.__visible[i] === visible) {
this.__visible.splice(i, 1);
}
}
return this.__visible;
}
get isVisible() {
return this.__visible;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__children_ === null) {
} else if (typeof this.__children_.toXMLNode === 'function') {
str += this.__children_.toXMLNode('children_');
} else if (typeof this.__children_ === 'string') {
str += ' children_="'+this.__children_+'"';
} else if (Array.isArray( this.__children_)) {
if (typeof this.__children_[0].toXMLNode !== 'function') {
str += ' children_="'+this.__children_.join(' ')+'"';
} else {
for (let i in this.__children_) {
if (typeof this.__children_[i].toXMLNode === 'function') {
str += this.__children_[i].toXMLNode('children_');
}
}
}
} else {
str += ' children_="'+this.__children_+'"';
}
if (this.__children === null) {
} else if (typeof this.__children.toXMLNode === 'function') {
str += this.__children.toXMLNode('children');
} else if (typeof this.__children === 'string') {
str += ' children="'+this.__children+'"';
} else if (Array.isArray( this.__children)) {
if (typeof this.__children[0].toXMLNode !== 'function') {
str += ' children="'+this.__children.join(' ')+'"';
} else {
for (let i in this.__children) {
if (typeof this.__children[i].toXMLNode === 'function') {
str += this.__children[i].toXMLNode('children');
}
}
}
} else {
str += ' children="'+this.__children+'"';
}
if (this.__geoOrigin === null) {
} else if (typeof this.__geoOrigin.toXMLNode === 'function') {
str += this.__geoOrigin.toXMLNode('geoOrigin');
} else if (typeof this.__geoOrigin === 'string') {
str += ' geoOrigin="'+this.__geoOrigin+'"';
} else if (Array.isArray( this.__geoOrigin)) {
if (typeof this.__geoOrigin[0].toXMLNode !== 'function') {
str += ' geoOrigin="'+this.__geoOrigin.join(' ')+'"';
} else {
for (let i in this.__geoOrigin) {
if (typeof this.__geoOrigin[i].toXMLNode === 'function') {
str += this.__geoOrigin[i].toXMLNode('geoOrigin');
}
}
}
} else {
str += ' geoOrigin="'+this.__geoOrigin+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__children_ === null) {
} else if (typeof this.__children_.toXMLNode === 'function') {
str += this.__children_.toXMLNode('children_');
} else if (typeof this.__children_ === 'string') {
str += ' children_="'+this.__children_+'"';
} else if (Array.isArray( this.__children_)) {
if (typeof this.__children_[0].toXMLNode !== 'function') {
str += ' children_="'+this.__children_.join(' ')+'"';
} else {
for (let i in this.__children_) {
if (typeof this.__children_[i].toXMLNode === 'function') {
str += this.__children_[i].toXMLNode('children_');
}
}
}
} else {
str += ' children_="'+this.__children_+'"';
}
str += ''
return str;
}
}
export class GeoLOD extends X3DChildNode {
constructor(kwargs = {}) {
super(kwargs);
var bboxCenter = kwargs["bboxCenter"] || [0, 0, 0];
this.__bboxCenter = bboxCenter;
var bboxSize = kwargs["bboxSize"] || [-1, -1, -1];
this.__bboxSize = bboxSize;
var center = kwargs["center"] || [0, 0, 0];
this.__center = center;
var child1Url = kwargs["child1Url"] || null;
this.__child1Url = child1Url;
var child2Url = kwargs["child2Url"] || null;
this.__child2Url = child2Url;
var child3Url = kwargs["child3Url"] || null;
this.__child3Url = child3Url;
var child4Url = kwargs["child4Url"] || null;
this.__child4Url = child4Url;
var children = kwargs["children"] || null;
this.__children = children;
var displayBBox = kwargs["displayBBox"] || false;
this.__displayBBox = displayBBox;
var geoOrigin = kwargs["geoOrigin"] || null;
this.__geoOrigin = geoOrigin;
var geoSystem = kwargs["geoSystem"] || ["GD", "WE"];
this.__geoSystem = geoSystem;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var level_changed = kwargs["level_changed"] || null;
if (level_changed == null || level_changed < 0) {
return null;
}
if (level_changed == null || level_changed > 1) {
return null;
}
this.__level_changed = level_changed;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var range = kwargs["range"] || 10;
if (range == null || range < 0) {
return null;
}
this.__range = range;
var rootNode = kwargs["rootNode"] || null;
this.__rootNode = rootNode;
var rootUrl = kwargs["rootUrl"] || null;
this.__rootUrl = rootUrl;
var visible = kwargs["visible"] || true;
this.__visible = visible;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
removeChildren(children) {
for( let i = 0; i < this.__children.length; i++) {
if ( this.__children[i] === children) {
this.__children.splice(i, 1);
}
}
return this.__children;
}
get children() {
return this.__children;
}
set displayBBox(displayBBox = false) {
this.__displayBBox = [displayBBox];
return this;
}
addDisplayBBox(displayBBox = false) {
if (this.__displayBBox == null) {
this.__displayBBox = [];
}
this.__displayBBox.append(displayBBox);
return this;
}
removeDisplayBBox(displayBBox) {
for( let i = 0; i < this.__displayBBox.length; i++) {
if ( this.__displayBBox[i] === displayBBox) {
this.__displayBBox.splice(i, 1);
}
}
return this.__displayBBox;
}
get isDisplayBBox() {
return this.__displayBBox;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
removelevel_changed(level_changed) {
for( let i = 0; i < this.__level_changed.length; i++) {
if ( this.__level_changed[i] === level_changed) {
this.__level_changed.splice(i, 1);
}
}
return this.__level_changed;
}
get level_changed() {
return this.__level_changed;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set visible(visible = true) {
this.__visible = [visible];
return this;
}
addVisible(visible = true) {
if (this.__visible == null) {
this.__visible = [];
}
this.__visible.append(visible);
return this;
}
removeVisible(visible) {
for( let i = 0; i < this.__visible.length; i++) {
if ( this.__visible[i] === visible) {
this.__visible.splice(i, 1);
}
}
return this.__visible;
}
get isVisible() {
return this.__visible;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__children === null) {
} else if (typeof this.__children.toXMLNode === 'function') {
str += this.__children.toXMLNode('children');
} else if (typeof this.__children === 'string') {
str += ' children="'+this.__children+'"';
} else if (Array.isArray( this.__children)) {
if (typeof this.__children[0].toXMLNode !== 'function') {
str += ' children="'+this.__children.join(' ')+'"';
} else {
for (let i in this.__children) {
if (typeof this.__children[i].toXMLNode === 'function') {
str += this.__children[i].toXMLNode('children');
}
}
}
} else {
str += ' children="'+this.__children+'"';
}
if (this.__geoOrigin === null) {
} else if (typeof this.__geoOrigin.toXMLNode === 'function') {
str += this.__geoOrigin.toXMLNode('geoOrigin');
} else if (typeof this.__geoOrigin === 'string') {
str += ' geoOrigin="'+this.__geoOrigin+'"';
} else if (Array.isArray( this.__geoOrigin)) {
if (typeof this.__geoOrigin[0].toXMLNode !== 'function') {
str += ' geoOrigin="'+this.__geoOrigin.join(' ')+'"';
} else {
for (let i in this.__geoOrigin) {
if (typeof this.__geoOrigin[i].toXMLNode === 'function') {
str += this.__geoOrigin[i].toXMLNode('geoOrigin');
}
}
}
} else {
str += ' geoOrigin="'+this.__geoOrigin+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__rootNode === null) {
} else if (typeof this.__rootNode.toXMLNode === 'function') {
str += this.__rootNode.toXMLNode('rootNode');
} else if (typeof this.__rootNode === 'string') {
str += ' rootNode="'+this.__rootNode+'"';
} else if (Array.isArray( this.__rootNode)) {
if (typeof this.__rootNode[0].toXMLNode !== 'function') {
str += ' rootNode="'+this.__rootNode.join(' ')+'"';
} else {
for (let i in this.__rootNode) {
if (typeof this.__rootNode[i].toXMLNode === 'function') {
str += this.__rootNode[i].toXMLNode('rootNode');
}
}
}
} else {
str += ' rootNode="'+this.__rootNode+'"';
}
str += ''
return str;
}
}
export class GeoMetadata extends X3DInfoNode {
constructor(kwargs = {}) {
super(kwargs);
var data = kwargs["data"] || null;
this.__data = data;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var summary = kwargs["summary"] || null;
this.__summary = summary;
var url = kwargs["url"] || null;
this.__url = url;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set data(data = null) {
this.__data = [data];
return this;
}
addData(data = null) {
if (this.__data == null) {
this.__data = [];
}
this.__data.append(data);
return this;
}
removeData(data) {
for( let i = 0; i < this.__data.length; i++) {
if ( this.__data[i] === data) {
this.__data.splice(i, 1);
}
}
return this.__data;
}
get data() {
return this.__data;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set summary(summary = null) {
this.__summary = [summary];
return this;
}
addSummary(summary = null) {
if (this.__summary == null) {
this.__summary = [];
}
this.__summary.append(summary);
return this;
}
removeSummary(summary) {
for( let i = 0; i < this.__summary.length; i++) {
if ( this.__summary[i] === summary) {
this.__summary.splice(i, 1);
}
}
return this.__summary;
}
get summary() {
return this.__summary;
}
set url(url = null) {
this.__url = [url];
return this;
}
addUrl(url = null) {
if (this.__url == null) {
this.__url = [];
}
this.__url.append(url);
return this;
}
removeUrl(url) {
for( let i = 0; i < this.__url.length; i++) {
if ( this.__url[i] === url) {
this.__url.splice(i, 1);
}
}
return this.__url;
}
get url() {
return this.__url;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__data === null) {
} else if (typeof this.__data.toXMLNode === 'function') {
str += this.__data.toXMLNode('data');
} else if (typeof this.__data === 'string') {
str += ' data="'+this.__data+'"';
} else if (Array.isArray( this.__data)) {
if (typeof this.__data[0].toXMLNode !== 'function') {
str += ' data="'+this.__data.join(' ')+'"';
} else {
for (let i in this.__data) {
if (typeof this.__data[i].toXMLNode === 'function') {
str += this.__data[i].toXMLNode('data');
}
}
}
} else {
str += ' data="'+this.__data+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class GeoOrigin extends X3DNode {
constructor(kwargs = {}) {
super(kwargs);
var geoCoords = kwargs["geoCoords"] || [0, 0, 0];
this.__geoCoords = geoCoords;
var geoSystem = kwargs["geoSystem"] || ["GD", "WE"];
this.__geoSystem = geoSystem;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var rotateYUp = kwargs["rotateYUp"] || false;
this.__rotateYUp = rotateYUp;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set geoCoords(geoCoords = [0, 0, 0]) {
this.__geoCoords = [geoCoords];
return this;
}
addGeoCoords(geoCoords = [0, 0, 0]) {
if (this.__geoCoords == null) {
this.__geoCoords = [];
}
this.__geoCoords.append(geoCoords);
return this;
}
removeGeoCoords(geoCoords) {
for( let i = 0; i < this.__geoCoords.length; i++) {
if ( this.__geoCoords[i] === geoCoords) {
this.__geoCoords.splice(i, 1);
}
}
return this.__geoCoords;
}
get geoCoords() {
return this.__geoCoords;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class GeoPositionInterpolator extends X3DInterpolatorNode {
constructor(kwargs = {}) {
super(kwargs);
var geoOrigin = kwargs["geoOrigin"] || null;
this.__geoOrigin = geoOrigin;
var geoSystem = kwargs["geoSystem"] || ["GD", "WE"];
this.__geoSystem = geoSystem;
var geovalue_changed = kwargs["geovalue_changed"] || null;
this.__geovalue_changed = geovalue_changed;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var key = kwargs["key"] || null;
this.__key = key;
var keyValue = kwargs["keyValue"] || null;
this.__keyValue = keyValue;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var fraction = kwargs["fraction"] || null;
this.__fraction = fraction;
var value_changed = kwargs["value_changed"] || null;
this.__value_changed = value_changed;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
removegeovalue_changed(geovalue_changed) {
for( let i = 0; i < this.__geovalue_changed.length; i++) {
if ( this.__geovalue_changed[i] === geovalue_changed) {
this.__geovalue_changed.splice(i, 1);
}
}
return this.__geovalue_changed;
}
get geovalue_changed() {
return this.__geovalue_changed;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set key(key = null) {
this.__key = [key];
return this;
}
addKey(key = null) {
if (this.__key == null) {
this.__key = [];
}
this.__key.append(key);
return this;
}
removeKey(key) {
for( let i = 0; i < this.__key.length; i++) {
if ( this.__key[i] === key) {
this.__key.splice(i, 1);
}
}
return this.__key;
}
get key() {
return this.__key;
}
set keyValue(keyValue = null) {
this.__keyValue = [keyValue];
return this;
}
addKeyValue(keyValue = null) {
if (this.__keyValue == null) {
this.__keyValue = [];
}
this.__keyValue.append(keyValue);
return this;
}
removeKeyValue(keyValue) {
for( let i = 0; i < this.__keyValue.length; i++) {
if ( this.__keyValue[i] === keyValue) {
this.__keyValue.splice(i, 1);
}
}
return this.__keyValue;
}
get keyValue() {
return this.__keyValue;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set set_fraction(fraction = null) {
this.__fraction = [fraction];
return this;
}
removevalue_changed(value_changed) {
for( let i = 0; i < this.__value_changed.length; i++) {
if ( this.__value_changed[i] === value_changed) {
this.__value_changed.splice(i, 1);
}
}
return this.__value_changed;
}
get value_changed() {
return this.__value_changed;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__geoOrigin === null) {
} else if (typeof this.__geoOrigin.toXMLNode === 'function') {
str += this.__geoOrigin.toXMLNode('geoOrigin');
} else if (typeof this.__geoOrigin === 'string') {
str += ' geoOrigin="'+this.__geoOrigin+'"';
} else if (Array.isArray( this.__geoOrigin)) {
if (typeof this.__geoOrigin[0].toXMLNode !== 'function') {
str += ' geoOrigin="'+this.__geoOrigin.join(' ')+'"';
} else {
for (let i in this.__geoOrigin) {
if (typeof this.__geoOrigin[i].toXMLNode === 'function') {
str += this.__geoOrigin[i].toXMLNode('geoOrigin');
}
}
}
} else {
str += ' geoOrigin="'+this.__geoOrigin+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class GeoProximitySensor extends X3DEnvironmentalSensorNode {
constructor(kwargs = {}) {
super(kwargs);
var center = kwargs["center"] || [0, 0, 0];
this.__center = center;
var centerOfRotation_changed = kwargs["centerOfRotation_changed"] || null;
this.__centerOfRotation_changed = centerOfRotation_changed;
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var enterTime = kwargs["enterTime"] || null;
this.__enterTime = enterTime;
var exitTime = kwargs["exitTime"] || null;
this.__exitTime = exitTime;
var geoCenter = kwargs["geoCenter"] || [0, 0, 0];
this.__geoCenter = geoCenter;
var geoCoord_changed = kwargs["geoCoord_changed"] || null;
this.__geoCoord_changed = geoCoord_changed;
var geoOrigin = kwargs["geoOrigin"] || null;
this.__geoOrigin = geoOrigin;
var geoSystem = kwargs["geoSystem"] || ["GD", "WE"];
this.__geoSystem = geoSystem;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var orientation_changed = kwargs["orientation_changed"] || null;
this.__orientation_changed = orientation_changed;
var position_changed = kwargs["position_changed"] || null;
this.__position_changed = position_changed;
var size = kwargs["size"] || [0, 0, 0];
if (size == null || size.length <= 0 || Math.min(size) < 0) {
return null;
}
this.__size = size;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set center(center = [0, 0, 0]) {
this.__center = [center];
return this;
}
addCenter(center = [0, 0, 0]) {
if (this.__center == null) {
this.__center = [];
}
this.__center.append(center);
return this;
}
removeCenter(center) {
for( let i = 0; i < this.__center.length; i++) {
if ( this.__center[i] === center) {
this.__center.splice(i, 1);
}
}
return this.__center;
}
get center() {
return this.__center;
}
removecenterOfRotation_changed(centerOfRotation_changed) {
for( let i = 0; i < this.__centerOfRotation_changed.length; i++) {
if ( this.__centerOfRotation_changed[i] === centerOfRotation_changed) {
this.__centerOfRotation_changed.splice(i, 1);
}
}
return this.__centerOfRotation_changed;
}
get centerOfRotation_changed() {
return this.__centerOfRotation_changed;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
removeEnterTime(enterTime) {
for( let i = 0; i < this.__enterTime.length; i++) {
if ( this.__enterTime[i] === enterTime) {
this.__enterTime.splice(i, 1);
}
}
return this.__enterTime;
}
get enterTime() {
return this.__enterTime;
}
removeExitTime(exitTime) {
for( let i = 0; i < this.__exitTime.length; i++) {
if ( this.__exitTime[i] === exitTime) {
this.__exitTime.splice(i, 1);
}
}
return this.__exitTime;
}
get exitTime() {
return this.__exitTime;
}
set geoCenter(geoCenter = [0, 0, 0]) {
this.__geoCenter = [geoCenter];
return this;
}
addGeoCenter(geoCenter = [0, 0, 0]) {
if (this.__geoCenter == null) {
this.__geoCenter = [];
}
this.__geoCenter.append(geoCenter);
return this;
}
removeGeoCenter(geoCenter) {
for( let i = 0; i < this.__geoCenter.length; i++) {
if ( this.__geoCenter[i] === geoCenter) {
this.__geoCenter.splice(i, 1);
}
}
return this.__geoCenter;
}
get geoCenter() {
return this.__geoCenter;
}
removegeoCoord_changed(geoCoord_changed) {
for( let i = 0; i < this.__geoCoord_changed.length; i++) {
if ( this.__geoCoord_changed[i] === geoCoord_changed) {
this.__geoCoord_changed.splice(i, 1);
}
}
return this.__geoCoord_changed;
}
get geoCoord_changed() {
return this.__geoCoord_changed;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
removeorientation_changed(orientation_changed) {
for( let i = 0; i < this.__orientation_changed.length; i++) {
if ( this.__orientation_changed[i] === orientation_changed) {
this.__orientation_changed.splice(i, 1);
}
}
return this.__orientation_changed;
}
get orientation_changed() {
return this.__orientation_changed;
}
removeposition_changed(position_changed) {
for( let i = 0; i < this.__position_changed.length; i++) {
if ( this.__position_changed[i] === position_changed) {
this.__position_changed.splice(i, 1);
}
}
return this.__position_changed;
}
get position_changed() {
return this.__position_changed;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__geoOrigin === null) {
} else if (typeof this.__geoOrigin.toXMLNode === 'function') {
str += this.__geoOrigin.toXMLNode('geoOrigin');
} else if (typeof this.__geoOrigin === 'string') {
str += ' geoOrigin="'+this.__geoOrigin+'"';
} else if (Array.isArray( this.__geoOrigin)) {
if (typeof this.__geoOrigin[0].toXMLNode !== 'function') {
str += ' geoOrigin="'+this.__geoOrigin.join(' ')+'"';
} else {
for (let i in this.__geoOrigin) {
if (typeof this.__geoOrigin[i].toXMLNode === 'function') {
str += this.__geoOrigin[i].toXMLNode('geoOrigin');
}
}
}
} else {
str += ' geoOrigin="'+this.__geoOrigin+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class GeoTouchSensor extends X3DTouchSensorNode {
constructor(kwargs = {}) {
super(kwargs);
var description = kwargs["description"] || null;
this.__description = description;
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var geoOrigin = kwargs["geoOrigin"] || null;
this.__geoOrigin = geoOrigin;
var geoSystem = kwargs["geoSystem"] || ["GD", "WE"];
this.__geoSystem = geoSystem;
var hitGeoCoord_changed = kwargs["hitGeoCoord_changed"] || null;
this.__hitGeoCoord_changed = hitGeoCoord_changed;
var hitNormal_changed = kwargs["hitNormal_changed"] || null;
this.__hitNormal_changed = hitNormal_changed;
var hitPoint_changed = kwargs["hitPoint_changed"] || null;
this.__hitPoint_changed = hitPoint_changed;
var hitTexCoord_changed = kwargs["hitTexCoord_changed"] || null;
this.__hitTexCoord_changed = hitTexCoord_changed;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var Over = kwargs["Over"] || null;
this.__Over = Over;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var touchTime = kwargs["touchTime"] || null;
this.__touchTime = touchTime;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set description(description = null) {
this.__description = [description];
return this;
}
addDescription(description = null) {
if (this.__description == null) {
this.__description = [];
}
this.__description.append(description);
return this;
}
removeDescription(description) {
for( let i = 0; i < this.__description.length; i++) {
if ( this.__description[i] === description) {
this.__description.splice(i, 1);
}
}
return this.__description;
}
get description() {
return this.__description;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
removehitGeoCoord_changed(hitGeoCoord_changed) {
for( let i = 0; i < this.__hitGeoCoord_changed.length; i++) {
if ( this.__hitGeoCoord_changed[i] === hitGeoCoord_changed) {
this.__hitGeoCoord_changed.splice(i, 1);
}
}
return this.__hitGeoCoord_changed;
}
get hitGeoCoord_changed() {
return this.__hitGeoCoord_changed;
}
removehitNormal_changed(hitNormal_changed) {
for( let i = 0; i < this.__hitNormal_changed.length; i++) {
if ( this.__hitNormal_changed[i] === hitNormal_changed) {
this.__hitNormal_changed.splice(i, 1);
}
}
return this.__hitNormal_changed;
}
get hitNormal_changed() {
return this.__hitNormal_changed;
}
removehitPoint_changed(hitPoint_changed) {
for( let i = 0; i < this.__hitPoint_changed.length; i++) {
if ( this.__hitPoint_changed[i] === hitPoint_changed) {
this.__hitPoint_changed.splice(i, 1);
}
}
return this.__hitPoint_changed;
}
get hitPoint_changed() {
return this.__hitPoint_changed;
}
removehitTexCoord_changed(hitTexCoord_changed) {
for( let i = 0; i < this.__hitTexCoord_changed.length; i++) {
if ( this.__hitTexCoord_changed[i] === hitTexCoord_changed) {
this.__hitTexCoord_changed.splice(i, 1);
}
}
return this.__hitTexCoord_changed;
}
get hitTexCoord_changed() {
return this.__hitTexCoord_changed;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
get isOver() {
return this.__Over;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
removeTouchTime(touchTime) {
for( let i = 0; i < this.__touchTime.length; i++) {
if ( this.__touchTime[i] === touchTime) {
this.__touchTime.splice(i, 1);
}
}
return this.__touchTime;
}
get touchTime() {
return this.__touchTime;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__geoOrigin === null) {
} else if (typeof this.__geoOrigin.toXMLNode === 'function') {
str += this.__geoOrigin.toXMLNode('geoOrigin');
} else if (typeof this.__geoOrigin === 'string') {
str += ' geoOrigin="'+this.__geoOrigin+'"';
} else if (Array.isArray( this.__geoOrigin)) {
if (typeof this.__geoOrigin[0].toXMLNode !== 'function') {
str += ' geoOrigin="'+this.__geoOrigin.join(' ')+'"';
} else {
for (let i in this.__geoOrigin) {
if (typeof this.__geoOrigin[i].toXMLNode === 'function') {
str += this.__geoOrigin[i].toXMLNode('geoOrigin');
}
}
}
} else {
str += ' geoOrigin="'+this.__geoOrigin+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class GeoTransform extends X3DGroupingNode {
constructor(kwargs = {}) {
super(kwargs);
var children_ = kwargs["children_"] || null;
this.__children_ = children_;
var bboxCenter = kwargs["bboxCenter"] || [0, 0, 0];
this.__bboxCenter = bboxCenter;
var bboxSize = kwargs["bboxSize"] || [-1, -1, -1];
this.__bboxSize = bboxSize;
var children = kwargs["children"] || null;
this.__children = children;
var displayBBox = kwargs["displayBBox"] || false;
this.__displayBBox = displayBBox;
var geoCenter = kwargs["geoCenter"] || [0, 0, 0];
this.__geoCenter = geoCenter;
var geoOrigin = kwargs["geoOrigin"] || null;
this.__geoOrigin = geoOrigin;
var geoSystem = kwargs["geoSystem"] || ["GD", "WE"];
this.__geoSystem = geoSystem;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var children_ = kwargs["children_"] || null;
this.__children_ = children_;
var rotation = kwargs["rotation"] || [0, 0, 1, 0];
this.__rotation = rotation;
var scale = kwargs["scale"] || [1, 1, 1];
if (scale == null || scale.length <= 0 || Math.min(scale) <= 0) {
return null;
}
this.__scale = scale;
var scaleOrientation = kwargs["scaleOrientation"] || [0, 0, 1, 0];
this.__scaleOrientation = scaleOrientation;
var translation = kwargs["translation"] || [0, 0, 0];
this.__translation = translation;
var visible = kwargs["visible"] || true;
this.__visible = visible;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
addChildren(children_ = null) {
if (this.__children_ == null) {
this.__children_ = [];
}
this.__children_.append(children_);
return this;
}
set children(children = null) {
this.__children = [children];
return this;
}
addChildren(children = null) {
if (this.__children == null) {
this.__children = [];
}
this.__children.append(children);
return this;
}
removeChildren(children) {
for( let i = 0; i < this.__children.length; i++) {
if ( this.__children[i] === children) {
this.__children.splice(i, 1);
}
}
return this.__children;
}
get children() {
return this.__children;
}
set displayBBox(displayBBox = false) {
this.__displayBBox = [displayBBox];
return this;
}
addDisplayBBox(displayBBox = false) {
if (this.__displayBBox == null) {
this.__displayBBox = [];
}
this.__displayBBox.append(displayBBox);
return this;
}
removeDisplayBBox(displayBBox) {
for( let i = 0; i < this.__displayBBox.length; i++) {
if ( this.__displayBBox[i] === displayBBox) {
this.__displayBBox.splice(i, 1);
}
}
return this.__displayBBox;
}
get isDisplayBBox() {
return this.__displayBBox;
}
set geoCenter(geoCenter = [0, 0, 0]) {
this.__geoCenter = [geoCenter];
return this;
}
addGeoCenter(geoCenter = [0, 0, 0]) {
if (this.__geoCenter == null) {
this.__geoCenter = [];
}
this.__geoCenter.append(geoCenter);
return this;
}
removeGeoCenter(geoCenter) {
for( let i = 0; i < this.__geoCenter.length; i++) {
if ( this.__geoCenter[i] === geoCenter) {
this.__geoCenter.splice(i, 1);
}
}
return this.__geoCenter;
}
get geoCenter() {
return this.__geoCenter;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set rotation(rotation = [0, 0, 1, 0]) {
this.__rotation = [rotation];
return this;
}
addRotation(rotation = [0, 0, 1, 0]) {
if (this.__rotation == null) {
this.__rotation = [];
}
this.__rotation.append(rotation);
return this;
}
removeRotation(rotation) {
for( let i = 0; i < this.__rotation.length; i++) {
if ( this.__rotation[i] === rotation) {
this.__rotation.splice(i, 1);
}
}
return this.__rotation;
}
get rotation() {
return this.__rotation;
}
set scale(scale = [1, 1, 1]) {
if (scale == null || scale.length <= 0 || Math.min(scale) <= 0) {
return null;
}
this.__scale = [scale];
return this;
}
addScale(scale = [1, 1, 1]) {
if (scale == null || scale.length <= 0 || Math.min(scale) <= 0) {
return null;
}
if (this.__scale == null) {
this.__scale = [];
}
this.__scale.append(scale);
return this;
}
removeScale(scale) {
for( let i = 0; i < this.__scale.length; i++) {
if ( this.__scale[i] === scale) {
this.__scale.splice(i, 1);
}
}
return this.__scale;
}
get scale() {
return this.__scale;
}
set scaleOrientation(scaleOrientation = [0, 0, 1, 0]) {
this.__scaleOrientation = [scaleOrientation];
return this;
}
addScaleOrientation(scaleOrientation = [0, 0, 1, 0]) {
if (this.__scaleOrientation == null) {
this.__scaleOrientation = [];
}
this.__scaleOrientation.append(scaleOrientation);
return this;
}
removeScaleOrientation(scaleOrientation) {
for( let i = 0; i < this.__scaleOrientation.length; i++) {
if ( this.__scaleOrientation[i] === scaleOrientation) {
this.__scaleOrientation.splice(i, 1);
}
}
return this.__scaleOrientation;
}
get scaleOrientation() {
return this.__scaleOrientation;
}
set translation(translation = [0, 0, 0]) {
this.__translation = [translation];
return this;
}
addTranslation(translation = [0, 0, 0]) {
if (this.__translation == null) {
this.__translation = [];
}
this.__translation.append(translation);
return this;
}
removeTranslation(translation) {
for( let i = 0; i < this.__translation.length; i++) {
if ( this.__translation[i] === translation) {
this.__translation.splice(i, 1);
}
}
return this.__translation;
}
get translation() {
return this.__translation;
}
set visible(visible = true) {
this.__visible = [visible];
return this;
}
addVisible(visible = true) {
if (this.__visible == null) {
this.__visible = [];
}
this.__visible.append(visible);
return this;
}
removeVisible(visible) {
for( let i = 0; i < this.__visible.length; i++) {
if ( this.__visible[i] === visible) {
this.__visible.splice(i, 1);
}
}
return this.__visible;
}
get isVisible() {
return this.__visible;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__children_ === null) {
} else if (typeof this.__children_.toXMLNode === 'function') {
str += this.__children_.toXMLNode('children_');
} else if (typeof this.__children_ === 'string') {
str += ' children_="'+this.__children_+'"';
} else if (Array.isArray( this.__children_)) {
if (typeof this.__children_[0].toXMLNode !== 'function') {
str += ' children_="'+this.__children_.join(' ')+'"';
} else {
for (let i in this.__children_) {
if (typeof this.__children_[i].toXMLNode === 'function') {
str += this.__children_[i].toXMLNode('children_');
}
}
}
} else {
str += ' children_="'+this.__children_+'"';
}
if (this.__children === null) {
} else if (typeof this.__children.toXMLNode === 'function') {
str += this.__children.toXMLNode('children');
} else if (typeof this.__children === 'string') {
str += ' children="'+this.__children+'"';
} else if (Array.isArray( this.__children)) {
if (typeof this.__children[0].toXMLNode !== 'function') {
str += ' children="'+this.__children.join(' ')+'"';
} else {
for (let i in this.__children) {
if (typeof this.__children[i].toXMLNode === 'function') {
str += this.__children[i].toXMLNode('children');
}
}
}
} else {
str += ' children="'+this.__children+'"';
}
if (this.__geoOrigin === null) {
} else if (typeof this.__geoOrigin.toXMLNode === 'function') {
str += this.__geoOrigin.toXMLNode('geoOrigin');
} else if (typeof this.__geoOrigin === 'string') {
str += ' geoOrigin="'+this.__geoOrigin+'"';
} else if (Array.isArray( this.__geoOrigin)) {
if (typeof this.__geoOrigin[0].toXMLNode !== 'function') {
str += ' geoOrigin="'+this.__geoOrigin.join(' ')+'"';
} else {
for (let i in this.__geoOrigin) {
if (typeof this.__geoOrigin[i].toXMLNode === 'function') {
str += this.__geoOrigin[i].toXMLNode('geoOrigin');
}
}
}
} else {
str += ' geoOrigin="'+this.__geoOrigin+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__children_ === null) {
} else if (typeof this.__children_.toXMLNode === 'function') {
str += this.__children_.toXMLNode('children_');
} else if (typeof this.__children_ === 'string') {
str += ' children_="'+this.__children_+'"';
} else if (Array.isArray( this.__children_)) {
if (typeof this.__children_[0].toXMLNode !== 'function') {
str += ' children_="'+this.__children_.join(' ')+'"';
} else {
for (let i in this.__children_) {
if (typeof this.__children_[i].toXMLNode === 'function') {
str += this.__children_[i].toXMLNode('children_');
}
}
}
} else {
str += ' children_="'+this.__children_+'"';
}
str += ''
return str;
}
}
export class GeoViewpoint extends X3DViewpointNode {
constructor(kwargs = {}) {
super(kwargs);
var bindTime = kwargs["bindTime"] || null;
this.__bindTime = bindTime;
var centerOfRotation = kwargs["centerOfRotation"] || [0, 0, 0];
this.__centerOfRotation = centerOfRotation;
var description = kwargs["description"] || null;
this.__description = description;
var fieldOfView = kwargs["fieldOfView"] || 0.7854;
if (fieldOfView == null || fieldOfView <= 0) {
return null;
}
if (fieldOfView == null || fieldOfView >= 3.1416) {
return null;
}
this.__fieldOfView = fieldOfView;
var geoOrigin = kwargs["geoOrigin"] || null;
this.__geoOrigin = geoOrigin;
var geoSystem = kwargs["geoSystem"] || ["GD", "WE"];
this.__geoSystem = geoSystem;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Bound = kwargs["Bound"] || null;
this.__Bound = Bound;
var jump = kwargs["jump"] || true;
this.__jump = jump;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var orientation = kwargs["orientation"] || [0, 0, 1, 0];
this.__orientation = orientation;
var position = kwargs["position"] || [0, 0, 100000];
this.__position = position;
var retainUserOffsets = kwargs["retainUserOffsets"] || false;
this.__retainUserOffsets = retainUserOffsets;
var bind = kwargs["bind"] || null;
this.__bind = bind;
var speedFactor = kwargs["speedFactor"] || 1.0;
if (speedFactor == null || speedFactor < 0) {
return null;
}
this.__speedFactor = speedFactor;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
removeBindTime(bindTime) {
for( let i = 0; i < this.__bindTime.length; i++) {
if ( this.__bindTime[i] === bindTime) {
this.__bindTime.splice(i, 1);
}
}
return this.__bindTime;
}
get bindTime() {
return this.__bindTime;
}
set centerOfRotation(centerOfRotation = [0, 0, 0]) {
this.__centerOfRotation = [centerOfRotation];
return this;
}
addCenterOfRotation(centerOfRotation = [0, 0, 0]) {
if (this.__centerOfRotation == null) {
this.__centerOfRotation = [];
}
this.__centerOfRotation.append(centerOfRotation);
return this;
}
removeCenterOfRotation(centerOfRotation) {
for( let i = 0; i < this.__centerOfRotation.length; i++) {
if ( this.__centerOfRotation[i] === centerOfRotation) {
this.__centerOfRotation.splice(i, 1);
}
}
return this.__centerOfRotation;
}
get centerOfRotation() {
return this.__centerOfRotation;
}
set description(description = null) {
this.__description = [description];
return this;
}
addDescription(description = null) {
if (this.__description == null) {
this.__description = [];
}
this.__description.append(description);
return this;
}
removeDescription(description) {
for( let i = 0; i < this.__description.length; i++) {
if ( this.__description[i] === description) {
this.__description.splice(i, 1);
}
}
return this.__description;
}
get description() {
return this.__description;
}
set fieldOfView(fieldOfView = 0.7854) {
if (fieldOfView == null || fieldOfView <= 0) {
return null;
}
if (fieldOfView == null || fieldOfView >= 3.1416) {
return null;
}
this.__fieldOfView = [fieldOfView];
return this;
}
addFieldOfView(fieldOfView = 0.7854) {
if (fieldOfView == null || fieldOfView <= 0) {
return null;
}
if (fieldOfView == null || fieldOfView >= 3.1416) {
return null;
}
if (this.__fieldOfView == null) {
this.__fieldOfView = [];
}
this.__fieldOfView.append(fieldOfView);
return this;
}
removeFieldOfView(fieldOfView) {
for( let i = 0; i < this.__fieldOfView.length; i++) {
if ( this.__fieldOfView[i] === fieldOfView) {
this.__fieldOfView.splice(i, 1);
}
}
return this.__fieldOfView;
}
get fieldOfView() {
return this.__fieldOfView;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isBound() {
return this.__Bound;
}
set jump(jump = true) {
this.__jump = [jump];
return this;
}
addJump(jump = true) {
if (this.__jump == null) {
this.__jump = [];
}
this.__jump.append(jump);
return this;
}
removeJump(jump) {
for( let i = 0; i < this.__jump.length; i++) {
if ( this.__jump[i] === jump) {
this.__jump.splice(i, 1);
}
}
return this.__jump;
}
get isJump() {
return this.__jump;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set orientation(orientation = [0, 0, 1, 0]) {
this.__orientation = [orientation];
return this;
}
addOrientation(orientation = [0, 0, 1, 0]) {
if (this.__orientation == null) {
this.__orientation = [];
}
this.__orientation.append(orientation);
return this;
}
removeOrientation(orientation) {
for( let i = 0; i < this.__orientation.length; i++) {
if ( this.__orientation[i] === orientation) {
this.__orientation.splice(i, 1);
}
}
return this.__orientation;
}
get orientation() {
return this.__orientation;
}
set position(position = [0, 0, 100000]) {
this.__position = [position];
return this;
}
addPosition(position = [0, 0, 100000]) {
if (this.__position == null) {
this.__position = [];
}
this.__position.append(position);
return this;
}
removePosition(position) {
for( let i = 0; i < this.__position.length; i++) {
if ( this.__position[i] === position) {
this.__position.splice(i, 1);
}
}
return this.__position;
}
get position() {
return this.__position;
}
set retainUserOffsets(retainUserOffsets = false) {
this.__retainUserOffsets = [retainUserOffsets];
return this;
}
addRetainUserOffsets(retainUserOffsets = false) {
if (this.__retainUserOffsets == null) {
this.__retainUserOffsets = [];
}
this.__retainUserOffsets.append(retainUserOffsets);
return this;
}
removeRetainUserOffsets(retainUserOffsets) {
for( let i = 0; i < this.__retainUserOffsets.length; i++) {
if ( this.__retainUserOffsets[i] === retainUserOffsets) {
this.__retainUserOffsets.splice(i, 1);
}
}
return this.__retainUserOffsets;
}
get isRetainUserOffsets() {
return this.__retainUserOffsets;
}
set set_bind(bind = null) {
this.__bind = [bind];
return this;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__geoOrigin === null) {
} else if (typeof this.__geoOrigin.toXMLNode === 'function') {
str += this.__geoOrigin.toXMLNode('geoOrigin');
} else if (typeof this.__geoOrigin === 'string') {
str += ' geoOrigin="'+this.__geoOrigin+'"';
} else if (Array.isArray( this.__geoOrigin)) {
if (typeof this.__geoOrigin[0].toXMLNode !== 'function') {
str += ' geoOrigin="'+this.__geoOrigin.join(' ')+'"';
} else {
for (let i in this.__geoOrigin) {
if (typeof this.__geoOrigin[i].toXMLNode === 'function') {
str += this.__geoOrigin[i].toXMLNode('geoOrigin');
}
}
}
} else {
str += ' geoOrigin="'+this.__geoOrigin+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class Group extends X3DGroupingNode {
constructor(kwargs = {}) {
super(kwargs);
var children_ = kwargs["children_"] || null;
this.__children_ = children_;
var bboxCenter = kwargs["bboxCenter"] || [0, 0, 0];
this.__bboxCenter = bboxCenter;
var bboxSize = kwargs["bboxSize"] || [-1, -1, -1];
this.__bboxSize = bboxSize;
var children = kwargs["children"] || null;
this.__children = children;
var displayBBox = kwargs["displayBBox"] || false;
this.__displayBBox = displayBBox;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var children_ = kwargs["children_"] || null;
this.__children_ = children_;
var visible = kwargs["visible"] || true;
this.__visible = visible;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
addChildren(children_ = null) {
if (this.__children_ == null) {
this.__children_ = [];
}
this.__children_.append(children_);
return this;
}
set children(children = null) {
this.__children = [children];
return this;
}
addChildren(children = null) {
if (this.__children == null) {
this.__children = [];
}
this.__children.append(children);
return this;
}
removeChildren(children) {
for( let i = 0; i < this.__children.length; i++) {
if ( this.__children[i] === children) {
this.__children.splice(i, 1);
}
}
return this.__children;
}
get children() {
return this.__children;
}
set displayBBox(displayBBox = false) {
this.__displayBBox = [displayBBox];
return this;
}
addDisplayBBox(displayBBox = false) {
if (this.__displayBBox == null) {
this.__displayBBox = [];
}
this.__displayBBox.append(displayBBox);
return this;
}
removeDisplayBBox(displayBBox) {
for( let i = 0; i < this.__displayBBox.length; i++) {
if ( this.__displayBBox[i] === displayBBox) {
this.__displayBBox.splice(i, 1);
}
}
return this.__displayBBox;
}
get isDisplayBBox() {
return this.__displayBBox;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set visible(visible = true) {
this.__visible = [visible];
return this;
}
addVisible(visible = true) {
if (this.__visible == null) {
this.__visible = [];
}
this.__visible.append(visible);
return this;
}
removeVisible(visible) {
for( let i = 0; i < this.__visible.length; i++) {
if ( this.__visible[i] === visible) {
this.__visible.splice(i, 1);
}
}
return this.__visible;
}
get isVisible() {
return this.__visible;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__children_ === null) {
} else if (typeof this.__children_.toXMLNode === 'function') {
str += this.__children_.toXMLNode('children_');
} else if (typeof this.__children_ === 'string') {
str += ' children_="'+this.__children_+'"';
} else if (Array.isArray( this.__children_)) {
if (typeof this.__children_[0].toXMLNode !== 'function') {
str += ' children_="'+this.__children_.join(' ')+'"';
} else {
for (let i in this.__children_) {
if (typeof this.__children_[i].toXMLNode === 'function') {
str += this.__children_[i].toXMLNode('children_');
}
}
}
} else {
str += ' children_="'+this.__children_+'"';
}
if (this.__children === null) {
} else if (typeof this.__children.toXMLNode === 'function') {
str += this.__children.toXMLNode('children');
} else if (typeof this.__children === 'string') {
str += ' children="'+this.__children+'"';
} else if (Array.isArray( this.__children)) {
if (typeof this.__children[0].toXMLNode !== 'function') {
str += ' children="'+this.__children.join(' ')+'"';
} else {
for (let i in this.__children) {
if (typeof this.__children[i].toXMLNode === 'function') {
str += this.__children[i].toXMLNode('children');
}
}
}
} else {
str += ' children="'+this.__children+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__children_ === null) {
} else if (typeof this.__children_.toXMLNode === 'function') {
str += this.__children_.toXMLNode('children_');
} else if (typeof this.__children_ === 'string') {
str += ' children_="'+this.__children_+'"';
} else if (Array.isArray( this.__children_)) {
if (typeof this.__children_[0].toXMLNode !== 'function') {
str += ' children_="'+this.__children_.join(' ')+'"';
} else {
for (let i in this.__children_) {
if (typeof this.__children_[i].toXMLNode === 'function') {
str += this.__children_[i].toXMLNode('children_');
}
}
}
} else {
str += ' children_="'+this.__children_+'"';
}
str += ''
return str;
}
}
export class HAnimDisplacer extends X3DGeometricPropertyNode {
constructor(kwargs = {}) {
super(kwargs);
var coordIndex = kwargs["coordIndex"] || null;
if (coordIndex == null || coordIndex.length <= 0 || Math.min(coordIndex) < 0) {
return null;
}
this.__coordIndex = coordIndex;
var description = kwargs["description"] || null;
this.__description = description;
var displacements = kwargs["displacements"] || null;
this.__displacements = displacements;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var name = kwargs["name"] || null;
this.__name = name;
var weight = kwargs["weight"] || 0.0;
this.__weight = weight;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set description(description = null) {
this.__description = [description];
return this;
}
addDescription(description = null) {
if (this.__description == null) {
this.__description = [];
}
this.__description.append(description);
return this;
}
removeDescription(description) {
for( let i = 0; i < this.__description.length; i++) {
if ( this.__description[i] === description) {
this.__description.splice(i, 1);
}
}
return this.__description;
}
get description() {
return this.__description;
}
set displacements(displacements = null) {
this.__displacements = [displacements];
return this;
}
addDisplacements(displacements = null) {
if (this.__displacements == null) {
this.__displacements = [];
}
this.__displacements.append(displacements);
return this;
}
removeDisplacements(displacements) {
for( let i = 0; i < this.__displacements.length; i++) {
if ( this.__displacements[i] === displacements) {
this.__displacements.splice(i, 1);
}
}
return this.__displacements;
}
get displacements() {
return this.__displacements;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set name(name = null) {
this.__name = [name];
return this;
}
addName(name = null) {
if (this.__name == null) {
this.__name = [];
}
this.__name.append(name);
return this;
}
removeName(name) {
for( let i = 0; i < this.__name.length; i++) {
if ( this.__name[i] === name) {
this.__name.splice(i, 1);
}
}
return this.__name;
}
get name() {
return this.__name;
}
set weight(weight = 0.0) {
this.__weight = [weight];
return this;
}
addWeight(weight = 0.0) {
if (this.__weight == null) {
this.__weight = [];
}
this.__weight.append(weight);
return this;
}
removeWeight(weight) {
for( let i = 0; i < this.__weight.length; i++) {
if ( this.__weight[i] === weight) {
this.__weight.splice(i, 1);
}
}
return this.__weight;
}
get weight() {
return this.__weight;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class HAnimHumanoid extends X3DChildNode {
constructor(kwargs = {}) {
super(kwargs);
var bboxCenter = kwargs["bboxCenter"] || [0, 0, 0];
this.__bboxCenter = bboxCenter;
var bboxSize = kwargs["bboxSize"] || [-1, -1, -1];
this.__bboxSize = bboxSize;
var center = kwargs["center"] || [0, 0, 0];
this.__center = center;
var description = kwargs["description"] || null;
this.__description = description;
var displayBBox = kwargs["displayBBox"] || false;
this.__displayBBox = displayBBox;
var info = kwargs["info"] || null;
this.__info = info;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var jointBindingPositions = kwargs["jointBindingPositions"] || [0, 0, 0];
this.__jointBindingPositions = jointBindingPositions;
var jointBindingRotations = kwargs["jointBindingRotations"] || [0, 0, 1, 0];
this.__jointBindingRotations = jointBindingRotations;
var jointBindingScales = kwargs["jointBindingScales"] || [0, 0, 0];
this.__jointBindingScales = jointBindingScales;
var joints = kwargs["joints"] || null;
this.__joints = joints;
var loa = kwargs["loa"] || -1;
if (loa == null || loa < -1) {
return null;
}
if (loa == null || loa > 4) {
return null;
}
this.__loa = loa;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var motions = kwargs["motions"] || null;
this.__motions = motions;
var name = kwargs["name"] || null;
this.__name = name;
var rotation = kwargs["rotation"] || [0, 0, 1, 0];
this.__rotation = rotation;
var scale = kwargs["scale"] || [1, 1, 1];
if (scale == null || scale.length <= 0 || Math.min(scale) <= 0) {
return null;
}
this.__scale = scale;
var scaleOrientation = kwargs["scaleOrientation"] || [0, 0, 1, 0];
this.__scaleOrientation = scaleOrientation;
var segments = kwargs["segments"] || null;
this.__segments = segments;
var sites = kwargs["sites"] || null;
this.__sites = sites;
var skeletalConfiguration = kwargs["skeletalConfiguration"] || "BASIC";
this.__skeletalConfiguration = skeletalConfiguration;
var skeleton = kwargs["skeleton"] || null;
this.__skeleton = skeleton;
var skin = kwargs["skin"] || null;
this.__skin = skin;
var skinBindingCoords = kwargs["skinBindingCoords"] || null;
this.__skinBindingCoords = skinBindingCoords;
var skinBindingNormals = kwargs["skinBindingNormals"] || null;
this.__skinBindingNormals = skinBindingNormals;
var skinCoord = kwargs["skinCoord"] || null;
this.__skinCoord = skinCoord;
var skinNormal = kwargs["skinNormal"] || null;
this.__skinNormal = skinNormal;
var translation = kwargs["translation"] || [0, 0, 0];
this.__translation = translation;
var version = kwargs["version"] || "2.0";
if ('1.0' === version) {
} else if ('1.1' === version) {
} else if ('2.0' === version) {
} else {
return null;
}
this.__version = version;
var viewpoints = kwargs["viewpoints"] || null;
this.__viewpoints = viewpoints;
var visible = kwargs["visible"] || true;
this.__visible = visible;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set center(center = [0, 0, 0]) {
this.__center = [center];
return this;
}
addCenter(center = [0, 0, 0]) {
if (this.__center == null) {
this.__center = [];
}
this.__center.append(center);
return this;
}
removeCenter(center) {
for( let i = 0; i < this.__center.length; i++) {
if ( this.__center[i] === center) {
this.__center.splice(i, 1);
}
}
return this.__center;
}
get center() {
return this.__center;
}
set description(description = null) {
this.__description = [description];
return this;
}
addDescription(description = null) {
if (this.__description == null) {
this.__description = [];
}
this.__description.append(description);
return this;
}
removeDescription(description) {
for( let i = 0; i < this.__description.length; i++) {
if ( this.__description[i] === description) {
this.__description.splice(i, 1);
}
}
return this.__description;
}
get description() {
return this.__description;
}
set displayBBox(displayBBox = false) {
this.__displayBBox = [displayBBox];
return this;
}
addDisplayBBox(displayBBox = false) {
if (this.__displayBBox == null) {
this.__displayBBox = [];
}
this.__displayBBox.append(displayBBox);
return this;
}
removeDisplayBBox(displayBBox) {
for( let i = 0; i < this.__displayBBox.length; i++) {
if ( this.__displayBBox[i] === displayBBox) {
this.__displayBBox.splice(i, 1);
}
}
return this.__displayBBox;
}
get isDisplayBBox() {
return this.__displayBBox;
}
set info(info = null) {
this.__info = [info];
return this;
}
addInfo(info = null) {
if (this.__info == null) {
this.__info = [];
}
this.__info.append(info);
return this;
}
removeInfo(info) {
for( let i = 0; i < this.__info.length; i++) {
if ( this.__info[i] === info) {
this.__info.splice(i, 1);
}
}
return this.__info;
}
get info() {
return this.__info;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set jointBindingPositions(jointBindingPositions = [0, 0, 0]) {
this.__jointBindingPositions = [jointBindingPositions];
return this;
}
addJointBindingPositions(jointBindingPositions = [0, 0, 0]) {
if (this.__jointBindingPositions == null) {
this.__jointBindingPositions = [];
}
this.__jointBindingPositions.append(jointBindingPositions);
return this;
}
removeJointBindingPositions(jointBindingPositions) {
for( let i = 0; i < this.__jointBindingPositions.length; i++) {
if ( this.__jointBindingPositions[i] === jointBindingPositions) {
this.__jointBindingPositions.splice(i, 1);
}
}
return this.__jointBindingPositions;
}
get jointBindingPositions() {
return this.__jointBindingPositions;
}
set jointBindingRotations(jointBindingRotations = [0, 0, 1, 0]) {
this.__jointBindingRotations = [jointBindingRotations];
return this;
}
addJointBindingRotations(jointBindingRotations = [0, 0, 1, 0]) {
if (this.__jointBindingRotations == null) {
this.__jointBindingRotations = [];
}
this.__jointBindingRotations.append(jointBindingRotations);
return this;
}
removeJointBindingRotations(jointBindingRotations) {
for( let i = 0; i < this.__jointBindingRotations.length; i++) {
if ( this.__jointBindingRotations[i] === jointBindingRotations) {
this.__jointBindingRotations.splice(i, 1);
}
}
return this.__jointBindingRotations;
}
get jointBindingRotations() {
return this.__jointBindingRotations;
}
set jointBindingScales(jointBindingScales = [0, 0, 0]) {
this.__jointBindingScales = [jointBindingScales];
return this;
}
addJointBindingScales(jointBindingScales = [0, 0, 0]) {
if (this.__jointBindingScales == null) {
this.__jointBindingScales = [];
}
this.__jointBindingScales.append(jointBindingScales);
return this;
}
removeJointBindingScales(jointBindingScales) {
for( let i = 0; i < this.__jointBindingScales.length; i++) {
if ( this.__jointBindingScales[i] === jointBindingScales) {
this.__jointBindingScales.splice(i, 1);
}
}
return this.__jointBindingScales;
}
get jointBindingScales() {
return this.__jointBindingScales;
}
set joints(joints = null) {
this.__joints = [joints];
return this;
}
addJoints(joints = null) {
if (this.__joints == null) {
this.__joints = [];
}
this.__joints.append(joints);
return this;
}
removeJoints(joints) {
for( let i = 0; i < this.__joints.length; i++) {
if ( this.__joints[i] === joints) {
this.__joints.splice(i, 1);
}
}
return this.__joints;
}
get joints() {
return this.__joints;
}
set loa(loa = -1) {
if (loa == null || loa < -1) {
return null;
}
if (loa == null || loa > 4) {
return null;
}
this.__loa = [loa];
return this;
}
addLoa(loa = -1) {
if (loa == null || loa < -1) {
return null;
}
if (loa == null || loa > 4) {
return null;
}
if (this.__loa == null) {
this.__loa = [];
}
this.__loa.append(loa);
return this;
}
removeLoa(loa) {
for( let i = 0; i < this.__loa.length; i++) {
if ( this.__loa[i] === loa) {
this.__loa.splice(i, 1);
}
}
return this.__loa;
}
get loa() {
return this.__loa;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set motions(motions = null) {
this.__motions = [motions];
return this;
}
addMotions(motions = null) {
if (this.__motions == null) {
this.__motions = [];
}
this.__motions.append(motions);
return this;
}
removeMotions(motions) {
for( let i = 0; i < this.__motions.length; i++) {
if ( this.__motions[i] === motions) {
this.__motions.splice(i, 1);
}
}
return this.__motions;
}
get motions() {
return this.__motions;
}
set name(name = null) {
this.__name = [name];
return this;
}
addName(name = null) {
if (this.__name == null) {
this.__name = [];
}
this.__name.append(name);
return this;
}
removeName(name) {
for( let i = 0; i < this.__name.length; i++) {
if ( this.__name[i] === name) {
this.__name.splice(i, 1);
}
}
return this.__name;
}
get name() {
return this.__name;
}
set rotation(rotation = [0, 0, 1, 0]) {
this.__rotation = [rotation];
return this;
}
addRotation(rotation = [0, 0, 1, 0]) {
if (this.__rotation == null) {
this.__rotation = [];
}
this.__rotation.append(rotation);
return this;
}
removeRotation(rotation) {
for( let i = 0; i < this.__rotation.length; i++) {
if ( this.__rotation[i] === rotation) {
this.__rotation.splice(i, 1);
}
}
return this.__rotation;
}
get rotation() {
return this.__rotation;
}
set scale(scale = [1, 1, 1]) {
if (scale == null || scale.length <= 0 || Math.min(scale) <= 0) {
return null;
}
this.__scale = [scale];
return this;
}
addScale(scale = [1, 1, 1]) {
if (scale == null || scale.length <= 0 || Math.min(scale) <= 0) {
return null;
}
if (this.__scale == null) {
this.__scale = [];
}
this.__scale.append(scale);
return this;
}
removeScale(scale) {
for( let i = 0; i < this.__scale.length; i++) {
if ( this.__scale[i] === scale) {
this.__scale.splice(i, 1);
}
}
return this.__scale;
}
get scale() {
return this.__scale;
}
set scaleOrientation(scaleOrientation = [0, 0, 1, 0]) {
this.__scaleOrientation = [scaleOrientation];
return this;
}
addScaleOrientation(scaleOrientation = [0, 0, 1, 0]) {
if (this.__scaleOrientation == null) {
this.__scaleOrientation = [];
}
this.__scaleOrientation.append(scaleOrientation);
return this;
}
removeScaleOrientation(scaleOrientation) {
for( let i = 0; i < this.__scaleOrientation.length; i++) {
if ( this.__scaleOrientation[i] === scaleOrientation) {
this.__scaleOrientation.splice(i, 1);
}
}
return this.__scaleOrientation;
}
get scaleOrientation() {
return this.__scaleOrientation;
}
set segments(segments = null) {
this.__segments = [segments];
return this;
}
addSegments(segments = null) {
if (this.__segments == null) {
this.__segments = [];
}
this.__segments.append(segments);
return this;
}
removeSegments(segments) {
for( let i = 0; i < this.__segments.length; i++) {
if ( this.__segments[i] === segments) {
this.__segments.splice(i, 1);
}
}
return this.__segments;
}
get segments() {
return this.__segments;
}
set sites(sites = null) {
this.__sites = [sites];
return this;
}
addSites(sites = null) {
if (this.__sites == null) {
this.__sites = [];
}
this.__sites.append(sites);
return this;
}
removeSites(sites) {
for( let i = 0; i < this.__sites.length; i++) {
if ( this.__sites[i] === sites) {
this.__sites.splice(i, 1);
}
}
return this.__sites;
}
get sites() {
return this.__sites;
}
set skeletalConfiguration(skeletalConfiguration = "BASIC") {
this.__skeletalConfiguration = [skeletalConfiguration];
return this;
}
addSkeletalConfiguration(skeletalConfiguration = "BASIC") {
if (this.__skeletalConfiguration == null) {
this.__skeletalConfiguration = [];
}
this.__skeletalConfiguration.append(skeletalConfiguration);
return this;
}
removeSkeletalConfiguration(skeletalConfiguration) {
for( let i = 0; i < this.__skeletalConfiguration.length; i++) {
if ( this.__skeletalConfiguration[i] === skeletalConfiguration) {
this.__skeletalConfiguration.splice(i, 1);
}
}
return this.__skeletalConfiguration;
}
get skeletalConfiguration() {
return this.__skeletalConfiguration;
}
set skeleton(skeleton = null) {
this.__skeleton = [skeleton];
return this;
}
addSkeleton(skeleton = null) {
if (this.__skeleton == null) {
this.__skeleton = [];
}
this.__skeleton.append(skeleton);
return this;
}
removeSkeleton(skeleton) {
for( let i = 0; i < this.__skeleton.length; i++) {
if ( this.__skeleton[i] === skeleton) {
this.__skeleton.splice(i, 1);
}
}
return this.__skeleton;
}
get skeleton() {
return this.__skeleton;
}
set skin(skin = null) {
this.__skin = [skin];
return this;
}
addSkin(skin = null) {
if (this.__skin == null) {
this.__skin = [];
}
this.__skin.append(skin);
return this;
}
removeSkin(skin) {
for( let i = 0; i < this.__skin.length; i++) {
if ( this.__skin[i] === skin) {
this.__skin.splice(i, 1);
}
}
return this.__skin;
}
get skin() {
return this.__skin;
}
set skinBindingCoords(skinBindingCoords = null) {
this.__skinBindingCoords = [skinBindingCoords];
return this;
}
addSkinBindingCoords(skinBindingCoords = null) {
if (this.__skinBindingCoords == null) {
this.__skinBindingCoords = [];
}
this.__skinBindingCoords.append(skinBindingCoords);
return this;
}
removeSkinBindingCoords(skinBindingCoords) {
for( let i = 0; i < this.__skinBindingCoords.length; i++) {
if ( this.__skinBindingCoords[i] === skinBindingCoords) {
this.__skinBindingCoords.splice(i, 1);
}
}
return this.__skinBindingCoords;
}
get skinBindingCoords() {
return this.__skinBindingCoords;
}
set skinBindingNormals(skinBindingNormals = null) {
this.__skinBindingNormals = [skinBindingNormals];
return this;
}
addSkinBindingNormals(skinBindingNormals = null) {
if (this.__skinBindingNormals == null) {
this.__skinBindingNormals = [];
}
this.__skinBindingNormals.append(skinBindingNormals);
return this;
}
removeSkinBindingNormals(skinBindingNormals) {
for( let i = 0; i < this.__skinBindingNormals.length; i++) {
if ( this.__skinBindingNormals[i] === skinBindingNormals) {
this.__skinBindingNormals.splice(i, 1);
}
}
return this.__skinBindingNormals;
}
get skinBindingNormals() {
return this.__skinBindingNormals;
}
set skinCoord(skinCoord = null) {
this.__skinCoord = [skinCoord];
return this;
}
addSkinCoord(skinCoord = null) {
if (this.__skinCoord == null) {
this.__skinCoord = [];
}
this.__skinCoord.append(skinCoord);
return this;
}
removeSkinCoord(skinCoord) {
for( let i = 0; i < this.__skinCoord.length; i++) {
if ( this.__skinCoord[i] === skinCoord) {
this.__skinCoord.splice(i, 1);
}
}
return this.__skinCoord;
}
get skinCoord() {
return this.__skinCoord;
}
set skinNormal(skinNormal = null) {
this.__skinNormal = [skinNormal];
return this;
}
addSkinNormal(skinNormal = null) {
if (this.__skinNormal == null) {
this.__skinNormal = [];
}
this.__skinNormal.append(skinNormal);
return this;
}
removeSkinNormal(skinNormal) {
for( let i = 0; i < this.__skinNormal.length; i++) {
if ( this.__skinNormal[i] === skinNormal) {
this.__skinNormal.splice(i, 1);
}
}
return this.__skinNormal;
}
get skinNormal() {
return this.__skinNormal;
}
set translation(translation = [0, 0, 0]) {
this.__translation = [translation];
return this;
}
addTranslation(translation = [0, 0, 0]) {
if (this.__translation == null) {
this.__translation = [];
}
this.__translation.append(translation);
return this;
}
removeTranslation(translation) {
for( let i = 0; i < this.__translation.length; i++) {
if ( this.__translation[i] === translation) {
this.__translation.splice(i, 1);
}
}
return this.__translation;
}
get translation() {
return this.__translation;
}
set version(version = "2.0") {
if ('1.0' === version) {
} else if ('1.1' === version) {
} else if ('2.0' === version) {
} else {
return null;
}
this.__version = [version];
return this;
}
addVersion(version = "2.0") {
if ('1.0' === version) {
} else if ('1.1' === version) {
} else if ('2.0' === version) {
} else {
return null;
}
if (this.__version == null) {
this.__version = [];
}
this.__version.append(version);
return this;
}
removeVersion(version) {
for( let i = 0; i < this.__version.length; i++) {
if ( this.__version[i] === version) {
this.__version.splice(i, 1);
}
}
return this.__version;
}
get version() {
return this.__version;
}
set viewpoints(viewpoints = null) {
this.__viewpoints = [viewpoints];
return this;
}
addViewpoints(viewpoints = null) {
if (this.__viewpoints == null) {
this.__viewpoints = [];
}
this.__viewpoints.append(viewpoints);
return this;
}
removeViewpoints(viewpoints) {
for( let i = 0; i < this.__viewpoints.length; i++) {
if ( this.__viewpoints[i] === viewpoints) {
this.__viewpoints.splice(i, 1);
}
}
return this.__viewpoints;
}
get viewpoints() {
return this.__viewpoints;
}
set visible(visible = true) {
this.__visible = [visible];
return this;
}
addVisible(visible = true) {
if (this.__visible == null) {
this.__visible = [];
}
this.__visible.append(visible);
return this;
}
removeVisible(visible) {
for( let i = 0; i < this.__visible.length; i++) {
if ( this.__visible[i] === visible) {
this.__visible.splice(i, 1);
}
}
return this.__visible;
}
get isVisible() {
return this.__visible;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__joints === null) {
} else if (typeof this.__joints.toXMLNode === 'function') {
str += this.__joints.toXMLNode('joints');
} else if (typeof this.__joints === 'string') {
str += ' joints="'+this.__joints+'"';
} else if (Array.isArray( this.__joints)) {
if (typeof this.__joints[0].toXMLNode !== 'function') {
str += ' joints="'+this.__joints.join(' ')+'"';
} else {
for (let i in this.__joints) {
if (typeof this.__joints[i].toXMLNode === 'function') {
str += this.__joints[i].toXMLNode('joints');
}
}
}
} else {
str += ' joints="'+this.__joints+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__motions === null) {
} else if (typeof this.__motions.toXMLNode === 'function') {
str += this.__motions.toXMLNode('motions');
} else if (typeof this.__motions === 'string') {
str += ' motions="'+this.__motions+'"';
} else if (Array.isArray( this.__motions)) {
if (typeof this.__motions[0].toXMLNode !== 'function') {
str += ' motions="'+this.__motions.join(' ')+'"';
} else {
for (let i in this.__motions) {
if (typeof this.__motions[i].toXMLNode === 'function') {
str += this.__motions[i].toXMLNode('motions');
}
}
}
} else {
str += ' motions="'+this.__motions+'"';
}
if (this.__segments === null) {
} else if (typeof this.__segments.toXMLNode === 'function') {
str += this.__segments.toXMLNode('segments');
} else if (typeof this.__segments === 'string') {
str += ' segments="'+this.__segments+'"';
} else if (Array.isArray( this.__segments)) {
if (typeof this.__segments[0].toXMLNode !== 'function') {
str += ' segments="'+this.__segments.join(' ')+'"';
} else {
for (let i in this.__segments) {
if (typeof this.__segments[i].toXMLNode === 'function') {
str += this.__segments[i].toXMLNode('segments');
}
}
}
} else {
str += ' segments="'+this.__segments+'"';
}
if (this.__sites === null) {
} else if (typeof this.__sites.toXMLNode === 'function') {
str += this.__sites.toXMLNode('sites');
} else if (typeof this.__sites === 'string') {
str += ' sites="'+this.__sites+'"';
} else if (Array.isArray( this.__sites)) {
if (typeof this.__sites[0].toXMLNode !== 'function') {
str += ' sites="'+this.__sites.join(' ')+'"';
} else {
for (let i in this.__sites) {
if (typeof this.__sites[i].toXMLNode === 'function') {
str += this.__sites[i].toXMLNode('sites');
}
}
}
} else {
str += ' sites="'+this.__sites+'"';
}
if (this.__skeleton === null) {
} else if (typeof this.__skeleton.toXMLNode === 'function') {
str += this.__skeleton.toXMLNode('skeleton');
} else if (typeof this.__skeleton === 'string') {
str += ' skeleton="'+this.__skeleton+'"';
} else if (Array.isArray( this.__skeleton)) {
if (typeof this.__skeleton[0].toXMLNode !== 'function') {
str += ' skeleton="'+this.__skeleton.join(' ')+'"';
} else {
for (let i in this.__skeleton) {
if (typeof this.__skeleton[i].toXMLNode === 'function') {
str += this.__skeleton[i].toXMLNode('skeleton');
}
}
}
} else {
str += ' skeleton="'+this.__skeleton+'"';
}
if (this.__skin === null) {
} else if (typeof this.__skin.toXMLNode === 'function') {
str += this.__skin.toXMLNode('skin');
} else if (typeof this.__skin === 'string') {
str += ' skin="'+this.__skin+'"';
} else if (Array.isArray( this.__skin)) {
if (typeof this.__skin[0].toXMLNode !== 'function') {
str += ' skin="'+this.__skin.join(' ')+'"';
} else {
for (let i in this.__skin) {
if (typeof this.__skin[i].toXMLNode === 'function') {
str += this.__skin[i].toXMLNode('skin');
}
}
}
} else {
str += ' skin="'+this.__skin+'"';
}
if (this.__skinBindingCoords === null) {
} else if (typeof this.__skinBindingCoords.toXMLNode === 'function') {
str += this.__skinBindingCoords.toXMLNode('skinBindingCoords');
} else if (typeof this.__skinBindingCoords === 'string') {
str += ' skinBindingCoords="'+this.__skinBindingCoords+'"';
} else if (Array.isArray( this.__skinBindingCoords)) {
if (typeof this.__skinBindingCoords[0].toXMLNode !== 'function') {
str += ' skinBindingCoords="'+this.__skinBindingCoords.join(' ')+'"';
} else {
for (let i in this.__skinBindingCoords) {
if (typeof this.__skinBindingCoords[i].toXMLNode === 'function') {
str += this.__skinBindingCoords[i].toXMLNode('skinBindingCoords');
}
}
}
} else {
str += ' skinBindingCoords="'+this.__skinBindingCoords+'"';
}
if (this.__skinBindingNormals === null) {
} else if (typeof this.__skinBindingNormals.toXMLNode === 'function') {
str += this.__skinBindingNormals.toXMLNode('skinBindingNormals');
} else if (typeof this.__skinBindingNormals === 'string') {
str += ' skinBindingNormals="'+this.__skinBindingNormals+'"';
} else if (Array.isArray( this.__skinBindingNormals)) {
if (typeof this.__skinBindingNormals[0].toXMLNode !== 'function') {
str += ' skinBindingNormals="'+this.__skinBindingNormals.join(' ')+'"';
} else {
for (let i in this.__skinBindingNormals) {
if (typeof this.__skinBindingNormals[i].toXMLNode === 'function') {
str += this.__skinBindingNormals[i].toXMLNode('skinBindingNormals');
}
}
}
} else {
str += ' skinBindingNormals="'+this.__skinBindingNormals+'"';
}
if (this.__skinCoord === null) {
} else if (typeof this.__skinCoord.toXMLNode === 'function') {
str += this.__skinCoord.toXMLNode('skinCoord');
} else if (typeof this.__skinCoord === 'string') {
str += ' skinCoord="'+this.__skinCoord+'"';
} else if (Array.isArray( this.__skinCoord)) {
if (typeof this.__skinCoord[0].toXMLNode !== 'function') {
str += ' skinCoord="'+this.__skinCoord.join(' ')+'"';
} else {
for (let i in this.__skinCoord) {
if (typeof this.__skinCoord[i].toXMLNode === 'function') {
str += this.__skinCoord[i].toXMLNode('skinCoord');
}
}
}
} else {
str += ' skinCoord="'+this.__skinCoord+'"';
}
if (this.__skinNormal === null) {
} else if (typeof this.__skinNormal.toXMLNode === 'function') {
str += this.__skinNormal.toXMLNode('skinNormal');
} else if (typeof this.__skinNormal === 'string') {
str += ' skinNormal="'+this.__skinNormal+'"';
} else if (Array.isArray( this.__skinNormal)) {
if (typeof this.__skinNormal[0].toXMLNode !== 'function') {
str += ' skinNormal="'+this.__skinNormal.join(' ')+'"';
} else {
for (let i in this.__skinNormal) {
if (typeof this.__skinNormal[i].toXMLNode === 'function') {
str += this.__skinNormal[i].toXMLNode('skinNormal');
}
}
}
} else {
str += ' skinNormal="'+this.__skinNormal+'"';
}
if (this.__viewpoints === null) {
} else if (typeof this.__viewpoints.toXMLNode === 'function') {
str += this.__viewpoints.toXMLNode('viewpoints');
} else if (typeof this.__viewpoints === 'string') {
str += ' viewpoints="'+this.__viewpoints+'"';
} else if (Array.isArray( this.__viewpoints)) {
if (typeof this.__viewpoints[0].toXMLNode !== 'function') {
str += ' viewpoints="'+this.__viewpoints.join(' ')+'"';
} else {
for (let i in this.__viewpoints) {
if (typeof this.__viewpoints[i].toXMLNode === 'function') {
str += this.__viewpoints[i].toXMLNode('viewpoints');
}
}
}
} else {
str += ' viewpoints="'+this.__viewpoints+'"';
}
str += ''
return str;
}
}
export class HAnimJoint extends X3DChildNode {
constructor(kwargs = {}) {
super(kwargs);
var children_ = kwargs["children_"] || null;
this.__children_ = children_;
var bboxCenter = kwargs["bboxCenter"] || [0, 0, 0];
this.__bboxCenter = bboxCenter;
var bboxSize = kwargs["bboxSize"] || [-1, -1, -1];
this.__bboxSize = bboxSize;
var center = kwargs["center"] || [0, 0, 0];
this.__center = center;
var children = kwargs["children"] || null;
this.__children = children;
var description = kwargs["description"] || null;
this.__description = description;
var displacers = kwargs["displacers"] || null;
this.__displacers = displacers;
var displayBBox = kwargs["displayBBox"] || false;
this.__displayBBox = displayBBox;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var limitOrientation = kwargs["limitOrientation"] || [0, 0, 1, 0];
this.__limitOrientation = limitOrientation;
var llimit = kwargs["llimit"] || [0, 0, 0];
this.__llimit = llimit;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var name = kwargs["name"] || null;
this.__name = name;
var children_ = kwargs["children_"] || null;
this.__children_ = children_;
var rotation = kwargs["rotation"] || [0, 0, 1, 0];
this.__rotation = rotation;
var scale = kwargs["scale"] || [1, 1, 1];
if (scale == null || scale.length <= 0 || Math.min(scale) <= 0) {
return null;
}
this.__scale = scale;
var scaleOrientation = kwargs["scaleOrientation"] || [0, 0, 1, 0];
this.__scaleOrientation = scaleOrientation;
var skinCoordIndex = kwargs["skinCoordIndex"] || null;
if (skinCoordIndex == null || skinCoordIndex.length <= 0 || Math.min(skinCoordIndex) < 0) {
return null;
}
this.__skinCoordIndex = skinCoordIndex;
var skinCoordWeight = kwargs["skinCoordWeight"] || null;
this.__skinCoordWeight = skinCoordWeight;
var stiffness = kwargs["stiffness"] || [1, 1, 1];
if (stiffness == null || stiffness.length <= 0 || Math.min(stiffness) < 0) {
return null;
}
if (stiffness == null || stiffness.length <= 0 || Math.max(stiffness) > 1) {
return null;
}
this.__stiffness = stiffness;
var translation = kwargs["translation"] || [0, 0, 0];
this.__translation = translation;
var ulimit = kwargs["ulimit"] || [0, 0, 0];
this.__ulimit = ulimit;
var visible = kwargs["visible"] || true;
this.__visible = visible;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
addChildren(children_ = null) {
if (this.__children_ == null) {
this.__children_ = [];
}
this.__children_.append(children_);
return this;
}
set center(center = [0, 0, 0]) {
this.__center = [center];
return this;
}
addCenter(center = [0, 0, 0]) {
if (this.__center == null) {
this.__center = [];
}
this.__center.append(center);
return this;
}
removeCenter(center) {
for( let i = 0; i < this.__center.length; i++) {
if ( this.__center[i] === center) {
this.__center.splice(i, 1);
}
}
return this.__center;
}
get center() {
return this.__center;
}
set children(children = null) {
this.__children = [children];
return this;
}
addChildren(children = null) {
if (this.__children == null) {
this.__children = [];
}
this.__children.append(children);
return this;
}
removeChildren(children) {
for( let i = 0; i < this.__children.length; i++) {
if ( this.__children[i] === children) {
this.__children.splice(i, 1);
}
}
return this.__children;
}
get children() {
return this.__children;
}
set description(description = null) {
this.__description = [description];
return this;
}
addDescription(description = null) {
if (this.__description == null) {
this.__description = [];
}
this.__description.append(description);
return this;
}
removeDescription(description) {
for( let i = 0; i < this.__description.length; i++) {
if ( this.__description[i] === description) {
this.__description.splice(i, 1);
}
}
return this.__description;
}
get description() {
return this.__description;
}
set displacers(displacers = null) {
this.__displacers = [displacers];
return this;
}
addDisplacers(displacers = null) {
if (this.__displacers == null) {
this.__displacers = [];
}
this.__displacers.append(displacers);
return this;
}
removeDisplacers(displacers) {
for( let i = 0; i < this.__displacers.length; i++) {
if ( this.__displacers[i] === displacers) {
this.__displacers.splice(i, 1);
}
}
return this.__displacers;
}
get displacers() {
return this.__displacers;
}
set displayBBox(displayBBox = false) {
this.__displayBBox = [displayBBox];
return this;
}
addDisplayBBox(displayBBox = false) {
if (this.__displayBBox == null) {
this.__displayBBox = [];
}
this.__displayBBox.append(displayBBox);
return this;
}
removeDisplayBBox(displayBBox) {
for( let i = 0; i < this.__displayBBox.length; i++) {
if ( this.__displayBBox[i] === displayBBox) {
this.__displayBBox.splice(i, 1);
}
}
return this.__displayBBox;
}
get isDisplayBBox() {
return this.__displayBBox;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set limitOrientation(limitOrientation = [0, 0, 1, 0]) {
this.__limitOrientation = [limitOrientation];
return this;
}
addLimitOrientation(limitOrientation = [0, 0, 1, 0]) {
if (this.__limitOrientation == null) {
this.__limitOrientation = [];
}
this.__limitOrientation.append(limitOrientation);
return this;
}
removeLimitOrientation(limitOrientation) {
for( let i = 0; i < this.__limitOrientation.length; i++) {
if ( this.__limitOrientation[i] === limitOrientation) {
this.__limitOrientation.splice(i, 1);
}
}
return this.__limitOrientation;
}
get limitOrientation() {
return this.__limitOrientation;
}
set llimit(llimit = [0, 0, 0]) {
this.__llimit = [llimit];
return this;
}
addLlimit(llimit = [0, 0, 0]) {
if (this.__llimit == null) {
this.__llimit = [];
}
this.__llimit.append(llimit);
return this;
}
removeLlimit(llimit) {
for( let i = 0; i < this.__llimit.length; i++) {
if ( this.__llimit[i] === llimit) {
this.__llimit.splice(i, 1);
}
}
return this.__llimit;
}
get llimit() {
return this.__llimit;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set name(name = null) {
this.__name = [name];
return this;
}
addName(name = null) {
if (this.__name == null) {
this.__name = [];
}
this.__name.append(name);
return this;
}
removeName(name) {
for( let i = 0; i < this.__name.length; i++) {
if ( this.__name[i] === name) {
this.__name.splice(i, 1);
}
}
return this.__name;
}
get name() {
return this.__name;
}
set rotation(rotation = [0, 0, 1, 0]) {
this.__rotation = [rotation];
return this;
}
addRotation(rotation = [0, 0, 1, 0]) {
if (this.__rotation == null) {
this.__rotation = [];
}
this.__rotation.append(rotation);
return this;
}
removeRotation(rotation) {
for( let i = 0; i < this.__rotation.length; i++) {
if ( this.__rotation[i] === rotation) {
this.__rotation.splice(i, 1);
}
}
return this.__rotation;
}
get rotation() {
return this.__rotation;
}
set scale(scale = [1, 1, 1]) {
if (scale == null || scale.length <= 0 || Math.min(scale) <= 0) {
return null;
}
this.__scale = [scale];
return this;
}
addScale(scale = [1, 1, 1]) {
if (scale == null || scale.length <= 0 || Math.min(scale) <= 0) {
return null;
}
if (this.__scale == null) {
this.__scale = [];
}
this.__scale.append(scale);
return this;
}
removeScale(scale) {
for( let i = 0; i < this.__scale.length; i++) {
if ( this.__scale[i] === scale) {
this.__scale.splice(i, 1);
}
}
return this.__scale;
}
get scale() {
return this.__scale;
}
set scaleOrientation(scaleOrientation = [0, 0, 1, 0]) {
this.__scaleOrientation = [scaleOrientation];
return this;
}
addScaleOrientation(scaleOrientation = [0, 0, 1, 0]) {
if (this.__scaleOrientation == null) {
this.__scaleOrientation = [];
}
this.__scaleOrientation.append(scaleOrientation);
return this;
}
removeScaleOrientation(scaleOrientation) {
for( let i = 0; i < this.__scaleOrientation.length; i++) {
if ( this.__scaleOrientation[i] === scaleOrientation) {
this.__scaleOrientation.splice(i, 1);
}
}
return this.__scaleOrientation;
}
get scaleOrientation() {
return this.__scaleOrientation;
}
set skinCoordIndex(skinCoordIndex = null) {
if (skinCoordIndex == null || skinCoordIndex.length <= 0 || Math.min(skinCoordIndex) < 0) {
return null;
}
this.__skinCoordIndex = [skinCoordIndex];
return this;
}
addSkinCoordIndex(skinCoordIndex = null) {
if (skinCoordIndex == null || skinCoordIndex.length <= 0 || Math.min(skinCoordIndex) < 0) {
return null;
}
if (this.__skinCoordIndex == null) {
this.__skinCoordIndex = [];
}
this.__skinCoordIndex.append(skinCoordIndex);
return this;
}
removeSkinCoordIndex(skinCoordIndex) {
for( let i = 0; i < this.__skinCoordIndex.length; i++) {
if ( this.__skinCoordIndex[i] === skinCoordIndex) {
this.__skinCoordIndex.splice(i, 1);
}
}
return this.__skinCoordIndex;
}
get skinCoordIndex() {
return this.__skinCoordIndex;
}
set skinCoordWeight(skinCoordWeight = null) {
this.__skinCoordWeight = [skinCoordWeight];
return this;
}
addSkinCoordWeight(skinCoordWeight = null) {
if (this.__skinCoordWeight == null) {
this.__skinCoordWeight = [];
}
this.__skinCoordWeight.append(skinCoordWeight);
return this;
}
removeSkinCoordWeight(skinCoordWeight) {
for( let i = 0; i < this.__skinCoordWeight.length; i++) {
if ( this.__skinCoordWeight[i] === skinCoordWeight) {
this.__skinCoordWeight.splice(i, 1);
}
}
return this.__skinCoordWeight;
}
get skinCoordWeight() {
return this.__skinCoordWeight;
}
set stiffness(stiffness = [1, 1, 1]) {
if (stiffness == null || stiffness.length <= 0 || Math.min(stiffness) < 0) {
return null;
}
if (stiffness == null || stiffness.length <= 0 || Math.max(stiffness) > 1) {
return null;
}
this.__stiffness = [stiffness];
return this;
}
addStiffness(stiffness = [1, 1, 1]) {
if (stiffness == null || stiffness.length <= 0 || Math.min(stiffness) < 0) {
return null;
}
if (stiffness == null || stiffness.length <= 0 || Math.max(stiffness) > 1) {
return null;
}
if (this.__stiffness == null) {
this.__stiffness = [];
}
this.__stiffness.append(stiffness);
return this;
}
removeStiffness(stiffness) {
for( let i = 0; i < this.__stiffness.length; i++) {
if ( this.__stiffness[i] === stiffness) {
this.__stiffness.splice(i, 1);
}
}
return this.__stiffness;
}
get stiffness() {
return this.__stiffness;
}
set translation(translation = [0, 0, 0]) {
this.__translation = [translation];
return this;
}
addTranslation(translation = [0, 0, 0]) {
if (this.__translation == null) {
this.__translation = [];
}
this.__translation.append(translation);
return this;
}
removeTranslation(translation) {
for( let i = 0; i < this.__translation.length; i++) {
if ( this.__translation[i] === translation) {
this.__translation.splice(i, 1);
}
}
return this.__translation;
}
get translation() {
return this.__translation;
}
set ulimit(ulimit = [0, 0, 0]) {
this.__ulimit = [ulimit];
return this;
}
addUlimit(ulimit = [0, 0, 0]) {
if (this.__ulimit == null) {
this.__ulimit = [];
}
this.__ulimit.append(ulimit);
return this;
}
removeUlimit(ulimit) {
for( let i = 0; i < this.__ulimit.length; i++) {
if ( this.__ulimit[i] === ulimit) {
this.__ulimit.splice(i, 1);
}
}
return this.__ulimit;
}
get ulimit() {
return this.__ulimit;
}
set visible(visible = true) {
this.__visible = [visible];
return this;
}
addVisible(visible = true) {
if (this.__visible == null) {
this.__visible = [];
}
this.__visible.append(visible);
return this;
}
removeVisible(visible) {
for( let i = 0; i < this.__visible.length; i++) {
if ( this.__visible[i] === visible) {
this.__visible.splice(i, 1);
}
}
return this.__visible;
}
get isVisible() {
return this.__visible;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__children_ === null) {
} else if (typeof this.__children_.toXMLNode === 'function') {
str += this.__children_.toXMLNode('children_');
} else if (typeof this.__children_ === 'string') {
str += ' children_="'+this.__children_+'"';
} else if (Array.isArray( this.__children_)) {
if (typeof this.__children_[0].toXMLNode !== 'function') {
str += ' children_="'+this.__children_.join(' ')+'"';
} else {
for (let i in this.__children_) {
if (typeof this.__children_[i].toXMLNode === 'function') {
str += this.__children_[i].toXMLNode('children_');
}
}
}
} else {
str += ' children_="'+this.__children_+'"';
}
if (this.__children === null) {
} else if (typeof this.__children.toXMLNode === 'function') {
str += this.__children.toXMLNode('children');
} else if (typeof this.__children === 'string') {
str += ' children="'+this.__children+'"';
} else if (Array.isArray( this.__children)) {
if (typeof this.__children[0].toXMLNode !== 'function') {
str += ' children="'+this.__children.join(' ')+'"';
} else {
for (let i in this.__children) {
if (typeof this.__children[i].toXMLNode === 'function') {
str += this.__children[i].toXMLNode('children');
}
}
}
} else {
str += ' children="'+this.__children+'"';
}
if (this.__displacers === null) {
} else if (typeof this.__displacers.toXMLNode === 'function') {
str += this.__displacers.toXMLNode('displacers');
} else if (typeof this.__displacers === 'string') {
str += ' displacers="'+this.__displacers+'"';
} else if (Array.isArray( this.__displacers)) {
if (typeof this.__displacers[0].toXMLNode !== 'function') {
str += ' displacers="'+this.__displacers.join(' ')+'"';
} else {
for (let i in this.__displacers) {
if (typeof this.__displacers[i].toXMLNode === 'function') {
str += this.__displacers[i].toXMLNode('displacers');
}
}
}
} else {
str += ' displacers="'+this.__displacers+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__children_ === null) {
} else if (typeof this.__children_.toXMLNode === 'function') {
str += this.__children_.toXMLNode('children_');
} else if (typeof this.__children_ === 'string') {
str += ' children_="'+this.__children_+'"';
} else if (Array.isArray( this.__children_)) {
if (typeof this.__children_[0].toXMLNode !== 'function') {
str += ' children_="'+this.__children_.join(' ')+'"';
} else {
for (let i in this.__children_) {
if (typeof this.__children_[i].toXMLNode === 'function') {
str += this.__children_[i].toXMLNode('children_');
}
}
}
} else {
str += ' children_="'+this.__children_+'"';
}
str += ''
return str;
}
}
export class HAnimMotion extends X3DChildNode {
constructor(kwargs = {}) {
super(kwargs);
var channels = kwargs["channels"] || null;
this.__channels = channels;
var channelsEnabled = kwargs["channelsEnabled"] || null;
this.__channelsEnabled = channelsEnabled;
var cycleTime = kwargs["cycleTime"] || null;
if (cycleTime == null || cycleTime < 0) {
return null;
}
this.__cycleTime = cycleTime;
var description = kwargs["description"] || null;
this.__description = description;
var elapsedTime = kwargs["elapsedTime"] || null;
if (elapsedTime == null || elapsedTime < 0) {
return null;
}
this.__elapsedTime = elapsedTime;
var enabled = kwargs["enabled"] || false;
this.__enabled = enabled;
var endFrame = kwargs["endFrame"] || -1;
if (endFrame == null || endFrame < -1) {
return null;
}
this.__endFrame = endFrame;
var frameCount = kwargs["frameCount"] || null;
if (frameCount == null || frameCount < 0) {
return null;
}
this.__frameCount = frameCount;
var frameDuration = kwargs["frameDuration"] || 0.1;
if (frameDuration == null || frameDuration <= 0) {
return null;
}
this.__frameDuration = frameDuration;
var frameIncrement = kwargs["frameIncrement"] || 1;
this.__frameIncrement = frameIncrement;
var frameIndex = kwargs["frameIndex"] || 0;
if (frameIndex == null || frameIndex < 0) {
return null;
}
this.__frameIndex = frameIndex;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var joints = kwargs["joints"] || null;
this.__joints = joints;
var loa = kwargs["loa"] || -1;
if (loa == null || loa < -1) {
return null;
}
if (loa == null || loa > 4) {
return null;
}
this.__loa = loa;
var loop = kwargs["loop"] || false;
this.__loop = loop;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var startFrame = kwargs["startFrame"] || 0;
if (startFrame == null || startFrame < 0) {
return null;
}
this.__startFrame = startFrame;
var values = kwargs["values"] || null;
this.__values = values;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set channels(channels = null) {
this.__channels = [channels];
return this;
}
addChannels(channels = null) {
if (this.__channels == null) {
this.__channels = [];
}
this.__channels.append(channels);
return this;
}
removeChannels(channels) {
for( let i = 0; i < this.__channels.length; i++) {
if ( this.__channels[i] === channels) {
this.__channels.splice(i, 1);
}
}
return this.__channels;
}
get channels() {
return this.__channels;
}
set channelsEnabled(channelsEnabled = null) {
this.__channelsEnabled = [channelsEnabled];
return this;
}
addChannelsEnabled(channelsEnabled = null) {
if (this.__channelsEnabled == null) {
this.__channelsEnabled = [];
}
this.__channelsEnabled.append(channelsEnabled);
return this;
}
removeChannelsEnabled(channelsEnabled) {
for( let i = 0; i < this.__channelsEnabled.length; i++) {
if ( this.__channelsEnabled[i] === channelsEnabled) {
this.__channelsEnabled.splice(i, 1);
}
}
return this.__channelsEnabled;
}
get channelsEnabled() {
return this.__channelsEnabled;
}
removeCycleTime(cycleTime) {
for( let i = 0; i < this.__cycleTime.length; i++) {
if ( this.__cycleTime[i] === cycleTime) {
this.__cycleTime.splice(i, 1);
}
}
return this.__cycleTime;
}
get cycleTime() {
return this.__cycleTime;
}
set description(description = null) {
this.__description = [description];
return this;
}
addDescription(description = null) {
if (this.__description == null) {
this.__description = [];
}
this.__description.append(description);
return this;
}
removeDescription(description) {
for( let i = 0; i < this.__description.length; i++) {
if ( this.__description[i] === description) {
this.__description.splice(i, 1);
}
}
return this.__description;
}
get description() {
return this.__description;
}
removeElapsedTime(elapsedTime) {
for( let i = 0; i < this.__elapsedTime.length; i++) {
if ( this.__elapsedTime[i] === elapsedTime) {
this.__elapsedTime.splice(i, 1);
}
}
return this.__elapsedTime;
}
get elapsedTime() {
return this.__elapsedTime;
}
set enabled(enabled = false) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = false) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
set endFrame(endFrame = -1) {
if (endFrame == null || endFrame < -1) {
return null;
}
this.__endFrame = [endFrame];
return this;
}
addEndFrame(endFrame = -1) {
if (endFrame == null || endFrame < -1) {
return null;
}
if (this.__endFrame == null) {
this.__endFrame = [];
}
this.__endFrame.append(endFrame);
return this;
}
removeEndFrame(endFrame) {
for( let i = 0; i < this.__endFrame.length; i++) {
if ( this.__endFrame[i] === endFrame) {
this.__endFrame.splice(i, 1);
}
}
return this.__endFrame;
}
get endFrame() {
return this.__endFrame;
}
removeFrameCount(frameCount) {
for( let i = 0; i < this.__frameCount.length; i++) {
if ( this.__frameCount[i] === frameCount) {
this.__frameCount.splice(i, 1);
}
}
return this.__frameCount;
}
get frameCount() {
return this.__frameCount;
}
set frameDuration(frameDuration = 0.1) {
if (frameDuration == null || frameDuration <= 0) {
return null;
}
this.__frameDuration = [frameDuration];
return this;
}
addFrameDuration(frameDuration = 0.1) {
if (frameDuration == null || frameDuration <= 0) {
return null;
}
if (this.__frameDuration == null) {
this.__frameDuration = [];
}
this.__frameDuration.append(frameDuration);
return this;
}
removeFrameDuration(frameDuration) {
for( let i = 0; i < this.__frameDuration.length; i++) {
if ( this.__frameDuration[i] === frameDuration) {
this.__frameDuration.splice(i, 1);
}
}
return this.__frameDuration;
}
get frameDuration() {
return this.__frameDuration;
}
set frameIncrement(frameIncrement = 1) {
this.__frameIncrement = [frameIncrement];
return this;
}
addFrameIncrement(frameIncrement = 1) {
if (this.__frameIncrement == null) {
this.__frameIncrement = [];
}
this.__frameIncrement.append(frameIncrement);
return this;
}
removeFrameIncrement(frameIncrement) {
for( let i = 0; i < this.__frameIncrement.length; i++) {
if ( this.__frameIncrement[i] === frameIncrement) {
this.__frameIncrement.splice(i, 1);
}
}
return this.__frameIncrement;
}
get frameIncrement() {
return this.__frameIncrement;
}
set frameIndex(frameIndex = 0) {
if (frameIndex == null || frameIndex < 0) {
return null;
}
this.__frameIndex = [frameIndex];
return this;
}
addFrameIndex(frameIndex = 0) {
if (frameIndex == null || frameIndex < 0) {
return null;
}
if (this.__frameIndex == null) {
this.__frameIndex = [];
}
this.__frameIndex.append(frameIndex);
return this;
}
removeFrameIndex(frameIndex) {
for( let i = 0; i < this.__frameIndex.length; i++) {
if ( this.__frameIndex[i] === frameIndex) {
this.__frameIndex.splice(i, 1);
}
}
return this.__frameIndex;
}
get frameIndex() {
return this.__frameIndex;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set joints(joints = null) {
this.__joints = [joints];
return this;
}
addJoints(joints = null) {
if (this.__joints == null) {
this.__joints = [];
}
this.__joints.append(joints);
return this;
}
removeJoints(joints) {
for( let i = 0; i < this.__joints.length; i++) {
if ( this.__joints[i] === joints) {
this.__joints.splice(i, 1);
}
}
return this.__joints;
}
get joints() {
return this.__joints;
}
set loa(loa = -1) {
if (loa == null || loa < -1) {
return null;
}
if (loa == null || loa > 4) {
return null;
}
this.__loa = [loa];
return this;
}
addLoa(loa = -1) {
if (loa == null || loa < -1) {
return null;
}
if (loa == null || loa > 4) {
return null;
}
if (this.__loa == null) {
this.__loa = [];
}
this.__loa.append(loa);
return this;
}
removeLoa(loa) {
for( let i = 0; i < this.__loa.length; i++) {
if ( this.__loa[i] === loa) {
this.__loa.splice(i, 1);
}
}
return this.__loa;
}
get loa() {
return this.__loa;
}
set loop(loop = false) {
this.__loop = [loop];
return this;
}
addLoop(loop = false) {
if (this.__loop == null) {
this.__loop = [];
}
this.__loop.append(loop);
return this;
}
removeLoop(loop) {
for( let i = 0; i < this.__loop.length; i++) {
if ( this.__loop[i] === loop) {
this.__loop.splice(i, 1);
}
}
return this.__loop;
}
get isLoop() {
return this.__loop;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set startFrame(startFrame = 0) {
if (startFrame == null || startFrame < 0) {
return null;
}
this.__startFrame = [startFrame];
return this;
}
addStartFrame(startFrame = 0) {
if (startFrame == null || startFrame < 0) {
return null;
}
if (this.__startFrame == null) {
this.__startFrame = [];
}
this.__startFrame.append(startFrame);
return this;
}
removeStartFrame(startFrame) {
for( let i = 0; i < this.__startFrame.length; i++) {
if ( this.__startFrame[i] === startFrame) {
this.__startFrame.splice(i, 1);
}
}
return this.__startFrame;
}
get startFrame() {
return this.__startFrame;
}
set values(values = null) {
this.__values = [values];
return this;
}
addValues(values = null) {
if (this.__values == null) {
this.__values = [];
}
this.__values.append(values);
return this;
}
removeValues(values) {
for( let i = 0; i < this.__values.length; i++) {
if ( this.__values[i] === values) {
this.__values.splice(i, 1);
}
}
return this.__values;
}
get values() {
return this.__values;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class HAnimSegment extends X3DGroupingNode {
constructor(kwargs = {}) {
super(kwargs);
var children_ = kwargs["children_"] || null;
this.__children_ = children_;
var bboxCenter = kwargs["bboxCenter"] || [0, 0, 0];
this.__bboxCenter = bboxCenter;
var bboxSize = kwargs["bboxSize"] || [-1, -1, -1];
this.__bboxSize = bboxSize;
var centerOfMass = kwargs["centerOfMass"] || [0, 0, 0];
this.__centerOfMass = centerOfMass;
var children = kwargs["children"] || null;
this.__children = children;
var coord = kwargs["coord"] || null;
this.__coord = coord;
var description = kwargs["description"] || null;
this.__description = description;
var displacers = kwargs["displacers"] || null;
this.__displacers = displacers;
var displayBBox = kwargs["displayBBox"] || false;
this.__displayBBox = displayBBox;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var mass = kwargs["mass"] || 0;
if (mass == null || mass < 0) {
return null;
}
this.__mass = mass;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var momentsOfInertia = kwargs["momentsOfInertia"] || [0, 0, 0, 0, 0, 0, 0, 0, 0];
if (momentsOfInertia == null || momentsOfInertia.length <= 0 || Math.min(momentsOfInertia) < 0) {
return null;
}
this.__momentsOfInertia = momentsOfInertia;
var name = kwargs["name"] || null;
this.__name = name;
var children_ = kwargs["children_"] || null;
this.__children_ = children_;
var visible = kwargs["visible"] || true;
this.__visible = visible;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
addChildren(children_ = null) {
if (this.__children_ == null) {
this.__children_ = [];
}
this.__children_.append(children_);
return this;
}
set centerOfMass(centerOfMass = [0, 0, 0]) {
this.__centerOfMass = [centerOfMass];
return this;
}
addCenterOfMass(centerOfMass = [0, 0, 0]) {
if (this.__centerOfMass == null) {
this.__centerOfMass = [];
}
this.__centerOfMass.append(centerOfMass);
return this;
}
removeCenterOfMass(centerOfMass) {
for( let i = 0; i < this.__centerOfMass.length; i++) {
if ( this.__centerOfMass[i] === centerOfMass) {
this.__centerOfMass.splice(i, 1);
}
}
return this.__centerOfMass;
}
get centerOfMass() {
return this.__centerOfMass;
}
set children(children = null) {
this.__children = [children];
return this;
}
addChildren(children = null) {
if (this.__children == null) {
this.__children = [];
}
this.__children.append(children);
return this;
}
removeChildren(children) {
for( let i = 0; i < this.__children.length; i++) {
if ( this.__children[i] === children) {
this.__children.splice(i, 1);
}
}
return this.__children;
}
get children() {
return this.__children;
}
set coord(coord = null) {
this.__coord = [coord];
return this;
}
addCoord(coord = null) {
if (this.__coord == null) {
this.__coord = [];
}
this.__coord.append(coord);
return this;
}
removeCoord(coord) {
for( let i = 0; i < this.__coord.length; i++) {
if ( this.__coord[i] === coord) {
this.__coord.splice(i, 1);
}
}
return this.__coord;
}
get coord() {
return this.__coord;
}
set description(description = null) {
this.__description = [description];
return this;
}
addDescription(description = null) {
if (this.__description == null) {
this.__description = [];
}
this.__description.append(description);
return this;
}
removeDescription(description) {
for( let i = 0; i < this.__description.length; i++) {
if ( this.__description[i] === description) {
this.__description.splice(i, 1);
}
}
return this.__description;
}
get description() {
return this.__description;
}
set displacers(displacers = null) {
this.__displacers = [displacers];
return this;
}
addDisplacers(displacers = null) {
if (this.__displacers == null) {
this.__displacers = [];
}
this.__displacers.append(displacers);
return this;
}
removeDisplacers(displacers) {
for( let i = 0; i < this.__displacers.length; i++) {
if ( this.__displacers[i] === displacers) {
this.__displacers.splice(i, 1);
}
}
return this.__displacers;
}
get displacers() {
return this.__displacers;
}
set displayBBox(displayBBox = false) {
this.__displayBBox = [displayBBox];
return this;
}
addDisplayBBox(displayBBox = false) {
if (this.__displayBBox == null) {
this.__displayBBox = [];
}
this.__displayBBox.append(displayBBox);
return this;
}
removeDisplayBBox(displayBBox) {
for( let i = 0; i < this.__displayBBox.length; i++) {
if ( this.__displayBBox[i] === displayBBox) {
this.__displayBBox.splice(i, 1);
}
}
return this.__displayBBox;
}
get isDisplayBBox() {
return this.__displayBBox;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set mass(mass = 0) {
if (mass == null || mass < 0) {
return null;
}
this.__mass = [mass];
return this;
}
addMass(mass = 0) {
if (mass == null || mass < 0) {
return null;
}
if (this.__mass == null) {
this.__mass = [];
}
this.__mass.append(mass);
return this;
}
removeMass(mass) {
for( let i = 0; i < this.__mass.length; i++) {
if ( this.__mass[i] === mass) {
this.__mass.splice(i, 1);
}
}
return this.__mass;
}
get mass() {
return this.__mass;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set momentsOfInertia(momentsOfInertia = [0, 0, 0, 0, 0, 0, 0, 0, 0]) {
if (momentsOfInertia == null || momentsOfInertia.length <= 0 || Math.min(momentsOfInertia) < 0) {
return null;
}
this.__momentsOfInertia = [momentsOfInertia];
return this;
}
addMomentsOfInertia(momentsOfInertia = [0, 0, 0, 0, 0, 0, 0, 0, 0]) {
if (momentsOfInertia == null || momentsOfInertia.length <= 0 || Math.min(momentsOfInertia) < 0) {
return null;
}
if (this.__momentsOfInertia == null) {
this.__momentsOfInertia = [];
}
this.__momentsOfInertia.append(momentsOfInertia);
return this;
}
removeMomentsOfInertia(momentsOfInertia) {
for( let i = 0; i < this.__momentsOfInertia.length; i++) {
if ( this.__momentsOfInertia[i] === momentsOfInertia) {
this.__momentsOfInertia.splice(i, 1);
}
}
return this.__momentsOfInertia;
}
get momentsOfInertia() {
return this.__momentsOfInertia;
}
set name(name = null) {
this.__name = [name];
return this;
}
addName(name = null) {
if (this.__name == null) {
this.__name = [];
}
this.__name.append(name);
return this;
}
removeName(name) {
for( let i = 0; i < this.__name.length; i++) {
if ( this.__name[i] === name) {
this.__name.splice(i, 1);
}
}
return this.__name;
}
get name() {
return this.__name;
}
set visible(visible = true) {
this.__visible = [visible];
return this;
}
addVisible(visible = true) {
if (this.__visible == null) {
this.__visible = [];
}
this.__visible.append(visible);
return this;
}
removeVisible(visible) {
for( let i = 0; i < this.__visible.length; i++) {
if ( this.__visible[i] === visible) {
this.__visible.splice(i, 1);
}
}
return this.__visible;
}
get isVisible() {
return this.__visible;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__children_ === null) {
} else if (typeof this.__children_.toXMLNode === 'function') {
str += this.__children_.toXMLNode('children_');
} else if (typeof this.__children_ === 'string') {
str += ' children_="'+this.__children_+'"';
} else if (Array.isArray( this.__children_)) {
if (typeof this.__children_[0].toXMLNode !== 'function') {
str += ' children_="'+this.__children_.join(' ')+'"';
} else {
for (let i in this.__children_) {
if (typeof this.__children_[i].toXMLNode === 'function') {
str += this.__children_[i].toXMLNode('children_');
}
}
}
} else {
str += ' children_="'+this.__children_+'"';
}
if (this.__children === null) {
} else if (typeof this.__children.toXMLNode === 'function') {
str += this.__children.toXMLNode('children');
} else if (typeof this.__children === 'string') {
str += ' children="'+this.__children+'"';
} else if (Array.isArray( this.__children)) {
if (typeof this.__children[0].toXMLNode !== 'function') {
str += ' children="'+this.__children.join(' ')+'"';
} else {
for (let i in this.__children) {
if (typeof this.__children[i].toXMLNode === 'function') {
str += this.__children[i].toXMLNode('children');
}
}
}
} else {
str += ' children="'+this.__children+'"';
}
if (this.__coord === null) {
} else if (typeof this.__coord.toXMLNode === 'function') {
str += this.__coord.toXMLNode('coord');
} else if (typeof this.__coord === 'string') {
str += ' coord="'+this.__coord+'"';
} else if (Array.isArray( this.__coord)) {
if (typeof this.__coord[0].toXMLNode !== 'function') {
str += ' coord="'+this.__coord.join(' ')+'"';
} else {
for (let i in this.__coord) {
if (typeof this.__coord[i].toXMLNode === 'function') {
str += this.__coord[i].toXMLNode('coord');
}
}
}
} else {
str += ' coord="'+this.__coord+'"';
}
if (this.__displacers === null) {
} else if (typeof this.__displacers.toXMLNode === 'function') {
str += this.__displacers.toXMLNode('displacers');
} else if (typeof this.__displacers === 'string') {
str += ' displacers="'+this.__displacers+'"';
} else if (Array.isArray( this.__displacers)) {
if (typeof this.__displacers[0].toXMLNode !== 'function') {
str += ' displacers="'+this.__displacers.join(' ')+'"';
} else {
for (let i in this.__displacers) {
if (typeof this.__displacers[i].toXMLNode === 'function') {
str += this.__displacers[i].toXMLNode('displacers');
}
}
}
} else {
str += ' displacers="'+this.__displacers+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__children_ === null) {
} else if (typeof this.__children_.toXMLNode === 'function') {
str += this.__children_.toXMLNode('children_');
} else if (typeof this.__children_ === 'string') {
str += ' children_="'+this.__children_+'"';
} else if (Array.isArray( this.__children_)) {
if (typeof this.__children_[0].toXMLNode !== 'function') {
str += ' children_="'+this.__children_.join(' ')+'"';
} else {
for (let i in this.__children_) {
if (typeof this.__children_[i].toXMLNode === 'function') {
str += this.__children_[i].toXMLNode('children_');
}
}
}
} else {
str += ' children_="'+this.__children_+'"';
}
str += ''
return str;
}
}
export class HAnimSite extends X3DGroupingNode {
constructor(kwargs = {}) {
super(kwargs);
var children_ = kwargs["children_"] || null;
this.__children_ = children_;
var bboxCenter = kwargs["bboxCenter"] || [0, 0, 0];
this.__bboxCenter = bboxCenter;
var bboxSize = kwargs["bboxSize"] || [-1, -1, -1];
this.__bboxSize = bboxSize;
var center = kwargs["center"] || [0, 0, 0];
this.__center = center;
var children = kwargs["children"] || null;
this.__children = children;
var description = kwargs["description"] || null;
this.__description = description;
var displayBBox = kwargs["displayBBox"] || false;
this.__displayBBox = displayBBox;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var name = kwargs["name"] || null;
this.__name = name;
var children_ = kwargs["children_"] || null;
this.__children_ = children_;
var rotation = kwargs["rotation"] || [0, 0, 1, 0];
this.__rotation = rotation;
var scale = kwargs["scale"] || [1, 1, 1];
if (scale == null || scale.length <= 0 || Math.min(scale) <= 0) {
return null;
}
this.__scale = scale;
var scaleOrientation = kwargs["scaleOrientation"] || [0, 0, 1, 0];
this.__scaleOrientation = scaleOrientation;
var translation = kwargs["translation"] || [0, 0, 0];
this.__translation = translation;
var visible = kwargs["visible"] || true;
this.__visible = visible;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
addChildren(children_ = null) {
if (this.__children_ == null) {
this.__children_ = [];
}
this.__children_.append(children_);
return this;
}
set center(center = [0, 0, 0]) {
this.__center = [center];
return this;
}
addCenter(center = [0, 0, 0]) {
if (this.__center == null) {
this.__center = [];
}
this.__center.append(center);
return this;
}
removeCenter(center) {
for( let i = 0; i < this.__center.length; i++) {
if ( this.__center[i] === center) {
this.__center.splice(i, 1);
}
}
return this.__center;
}
get center() {
return this.__center;
}
set children(children = null) {
this.__children = [children];
return this;
}
addChildren(children = null) {
if (this.__children == null) {
this.__children = [];
}
this.__children.append(children);
return this;
}
removeChildren(children) {
for( let i = 0; i < this.__children.length; i++) {
if ( this.__children[i] === children) {
this.__children.splice(i, 1);
}
}
return this.__children;
}
get children() {
return this.__children;
}
set description(description = null) {
this.__description = [description];
return this;
}
addDescription(description = null) {
if (this.__description == null) {
this.__description = [];
}
this.__description.append(description);
return this;
}
removeDescription(description) {
for( let i = 0; i < this.__description.length; i++) {
if ( this.__description[i] === description) {
this.__description.splice(i, 1);
}
}
return this.__description;
}
get description() {
return this.__description;
}
set displayBBox(displayBBox = false) {
this.__displayBBox = [displayBBox];
return this;
}
addDisplayBBox(displayBBox = false) {
if (this.__displayBBox == null) {
this.__displayBBox = [];
}
this.__displayBBox.append(displayBBox);
return this;
}
removeDisplayBBox(displayBBox) {
for( let i = 0; i < this.__displayBBox.length; i++) {
if ( this.__displayBBox[i] === displayBBox) {
this.__displayBBox.splice(i, 1);
}
}
return this.__displayBBox;
}
get isDisplayBBox() {
return this.__displayBBox;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set name(name = null) {
this.__name = [name];
return this;
}
addName(name = null) {
if (this.__name == null) {
this.__name = [];
}
this.__name.append(name);
return this;
}
removeName(name) {
for( let i = 0; i < this.__name.length; i++) {
if ( this.__name[i] === name) {
this.__name.splice(i, 1);
}
}
return this.__name;
}
get name() {
return this.__name;
}
set rotation(rotation = [0, 0, 1, 0]) {
this.__rotation = [rotation];
return this;
}
addRotation(rotation = [0, 0, 1, 0]) {
if (this.__rotation == null) {
this.__rotation = [];
}
this.__rotation.append(rotation);
return this;
}
removeRotation(rotation) {
for( let i = 0; i < this.__rotation.length; i++) {
if ( this.__rotation[i] === rotation) {
this.__rotation.splice(i, 1);
}
}
return this.__rotation;
}
get rotation() {
return this.__rotation;
}
set scale(scale = [1, 1, 1]) {
if (scale == null || scale.length <= 0 || Math.min(scale) <= 0) {
return null;
}
this.__scale = [scale];
return this;
}
addScale(scale = [1, 1, 1]) {
if (scale == null || scale.length <= 0 || Math.min(scale) <= 0) {
return null;
}
if (this.__scale == null) {
this.__scale = [];
}
this.__scale.append(scale);
return this;
}
removeScale(scale) {
for( let i = 0; i < this.__scale.length; i++) {
if ( this.__scale[i] === scale) {
this.__scale.splice(i, 1);
}
}
return this.__scale;
}
get scale() {
return this.__scale;
}
set scaleOrientation(scaleOrientation = [0, 0, 1, 0]) {
this.__scaleOrientation = [scaleOrientation];
return this;
}
addScaleOrientation(scaleOrientation = [0, 0, 1, 0]) {
if (this.__scaleOrientation == null) {
this.__scaleOrientation = [];
}
this.__scaleOrientation.append(scaleOrientation);
return this;
}
removeScaleOrientation(scaleOrientation) {
for( let i = 0; i < this.__scaleOrientation.length; i++) {
if ( this.__scaleOrientation[i] === scaleOrientation) {
this.__scaleOrientation.splice(i, 1);
}
}
return this.__scaleOrientation;
}
get scaleOrientation() {
return this.__scaleOrientation;
}
set translation(translation = [0, 0, 0]) {
this.__translation = [translation];
return this;
}
addTranslation(translation = [0, 0, 0]) {
if (this.__translation == null) {
this.__translation = [];
}
this.__translation.append(translation);
return this;
}
removeTranslation(translation) {
for( let i = 0; i < this.__translation.length; i++) {
if ( this.__translation[i] === translation) {
this.__translation.splice(i, 1);
}
}
return this.__translation;
}
get translation() {
return this.__translation;
}
set visible(visible = true) {
this.__visible = [visible];
return this;
}
addVisible(visible = true) {
if (this.__visible == null) {
this.__visible = [];
}
this.__visible.append(visible);
return this;
}
removeVisible(visible) {
for( let i = 0; i < this.__visible.length; i++) {
if ( this.__visible[i] === visible) {
this.__visible.splice(i, 1);
}
}
return this.__visible;
}
get isVisible() {
return this.__visible;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__children_ === null) {
} else if (typeof this.__children_.toXMLNode === 'function') {
str += this.__children_.toXMLNode('children_');
} else if (typeof this.__children_ === 'string') {
str += ' children_="'+this.__children_+'"';
} else if (Array.isArray( this.__children_)) {
if (typeof this.__children_[0].toXMLNode !== 'function') {
str += ' children_="'+this.__children_.join(' ')+'"';
} else {
for (let i in this.__children_) {
if (typeof this.__children_[i].toXMLNode === 'function') {
str += this.__children_[i].toXMLNode('children_');
}
}
}
} else {
str += ' children_="'+this.__children_+'"';
}
if (this.__children === null) {
} else if (typeof this.__children.toXMLNode === 'function') {
str += this.__children.toXMLNode('children');
} else if (typeof this.__children === 'string') {
str += ' children="'+this.__children+'"';
} else if (Array.isArray( this.__children)) {
if (typeof this.__children[0].toXMLNode !== 'function') {
str += ' children="'+this.__children.join(' ')+'"';
} else {
for (let i in this.__children) {
if (typeof this.__children[i].toXMLNode === 'function') {
str += this.__children[i].toXMLNode('children');
}
}
}
} else {
str += ' children="'+this.__children+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__children_ === null) {
} else if (typeof this.__children_.toXMLNode === 'function') {
str += this.__children_.toXMLNode('children_');
} else if (typeof this.__children_ === 'string') {
str += ' children_="'+this.__children_+'"';
} else if (Array.isArray( this.__children_)) {
if (typeof this.__children_[0].toXMLNode !== 'function') {
str += ' children_="'+this.__children_.join(' ')+'"';
} else {
for (let i in this.__children_) {
if (typeof this.__children_[i].toXMLNode === 'function') {
str += this.__children_[i].toXMLNode('children_');
}
}
}
} else {
str += ' children_="'+this.__children_+'"';
}
str += ''
return str;
}
}
export class ImageCubeMapTexture extends X3DEnvironmentTextureNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var textureProperties = kwargs["textureProperties"] || null;
this.__textureProperties = textureProperties;
var url = kwargs["url"] || null;
this.__url = url;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set url(url = null) {
this.__url = [url];
return this;
}
addUrl(url = null) {
if (this.__url == null) {
this.__url = [];
}
this.__url.append(url);
return this;
}
removeUrl(url) {
for( let i = 0; i < this.__url.length; i++) {
if ( this.__url[i] === url) {
this.__url.splice(i, 1);
}
}
return this.__url;
}
get url() {
return this.__url;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__textureProperties === null) {
} else if (typeof this.__textureProperties.toXMLNode === 'function') {
str += this.__textureProperties.toXMLNode('textureProperties');
} else if (typeof this.__textureProperties === 'string') {
str += ' textureProperties="'+this.__textureProperties+'"';
} else if (Array.isArray( this.__textureProperties)) {
if (typeof this.__textureProperties[0].toXMLNode !== 'function') {
str += ' textureProperties="'+this.__textureProperties.join(' ')+'"';
} else {
for (let i in this.__textureProperties) {
if (typeof this.__textureProperties[i].toXMLNode === 'function') {
str += this.__textureProperties[i].toXMLNode('textureProperties');
}
}
}
} else {
str += ' textureProperties="'+this.__textureProperties+'"';
}
str += ''
return str;
}
}
export class ImageTexture extends X3DTexture2DNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var repeatS = kwargs["repeatS"] || true;
this.__repeatS = repeatS;
var repeatT = kwargs["repeatT"] || true;
this.__repeatT = repeatT;
var textureProperties = kwargs["textureProperties"] || null;
this.__textureProperties = textureProperties;
var url = kwargs["url"] || null;
this.__url = url;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set url(url = null) {
this.__url = [url];
return this;
}
addUrl(url = null) {
if (this.__url == null) {
this.__url = [];
}
this.__url.append(url);
return this;
}
removeUrl(url) {
for( let i = 0; i < this.__url.length; i++) {
if ( this.__url[i] === url) {
this.__url.splice(i, 1);
}
}
return this.__url;
}
get url() {
return this.__url;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__textureProperties === null) {
} else if (typeof this.__textureProperties.toXMLNode === 'function') {
str += this.__textureProperties.toXMLNode('textureProperties');
} else if (typeof this.__textureProperties === 'string') {
str += ' textureProperties="'+this.__textureProperties+'"';
} else if (Array.isArray( this.__textureProperties)) {
if (typeof this.__textureProperties[0].toXMLNode !== 'function') {
str += ' textureProperties="'+this.__textureProperties.join(' ')+'"';
} else {
for (let i in this.__textureProperties) {
if (typeof this.__textureProperties[i].toXMLNode === 'function') {
str += this.__textureProperties[i].toXMLNode('textureProperties');
}
}
}
} else {
str += ' textureProperties="'+this.__textureProperties+'"';
}
str += ''
return str;
}
}
export class ImageTexture3D extends X3DTexture3DNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var repeatR = kwargs["repeatR"] || false;
this.__repeatR = repeatR;
var repeatS = kwargs["repeatS"] || false;
this.__repeatS = repeatS;
var repeatT = kwargs["repeatT"] || false;
this.__repeatT = repeatT;
var textureProperties = kwargs["textureProperties"] || null;
this.__textureProperties = textureProperties;
var url = kwargs["url"] || null;
this.__url = url;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set url(url = null) {
this.__url = [url];
return this;
}
addUrl(url = null) {
if (this.__url == null) {
this.__url = [];
}
this.__url.append(url);
return this;
}
removeUrl(url) {
for( let i = 0; i < this.__url.length; i++) {
if ( this.__url[i] === url) {
this.__url.splice(i, 1);
}
}
return this.__url;
}
get url() {
return this.__url;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__textureProperties === null) {
} else if (typeof this.__textureProperties.toXMLNode === 'function') {
str += this.__textureProperties.toXMLNode('textureProperties');
} else if (typeof this.__textureProperties === 'string') {
str += ' textureProperties="'+this.__textureProperties+'"';
} else if (Array.isArray( this.__textureProperties)) {
if (typeof this.__textureProperties[0].toXMLNode !== 'function') {
str += ' textureProperties="'+this.__textureProperties.join(' ')+'"';
} else {
for (let i in this.__textureProperties) {
if (typeof this.__textureProperties[i].toXMLNode === 'function') {
str += this.__textureProperties[i].toXMLNode('textureProperties');
}
}
}
} else {
str += ' textureProperties="'+this.__textureProperties+'"';
}
str += ''
return str;
}
}
export class IndexedFaceSet extends X3DComposedGeometryNode {
constructor(kwargs = {}) {
super(kwargs);
var attrib = kwargs["attrib"] || null;
this.__attrib = attrib;
var ccw = kwargs["ccw"] || true;
this.__ccw = ccw;
var color = kwargs["color"] || null;
this.__color = color;
var colorIndex = kwargs["colorIndex"] || null;
if (colorIndex == null || colorIndex.length <= 0 || Math.min(colorIndex) < -1) {
return null;
}
this.__colorIndex = colorIndex;
var colorPerVertex = kwargs["colorPerVertex"] || true;
this.__colorPerVertex = colorPerVertex;
var convex = kwargs["convex"] || true;
this.__convex = convex;
var coord = kwargs["coord"] || null;
this.__coord = coord;
var coordIndex = kwargs["coordIndex"] || null;
if (coordIndex == null || coordIndex.length <= 0 || Math.min(coordIndex) < -1) {
return null;
}
this.__coordIndex = coordIndex;
var creaseAngle = kwargs["creaseAngle"] || 0;
if (creaseAngle == null || creaseAngle < 0) {
return null;
}
this.__creaseAngle = creaseAngle;
var fogCoord = kwargs["fogCoord"] || null;
this.__fogCoord = fogCoord;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var normal = kwargs["normal"] || null;
this.__normal = normal;
var normalIndex = kwargs["normalIndex"] || null;
if (normalIndex == null || normalIndex.length <= 0 || Math.min(normalIndex) < -1) {
return null;
}
this.__normalIndex = normalIndex;
var normalPerVertex = kwargs["normalPerVertex"] || true;
this.__normalPerVertex = normalPerVertex;
var colorIndex = kwargs["colorIndex"] || null;
if (colorIndex == null || colorIndex.length <= 0 || Math.min(colorIndex) < -1) {
return null;
}
this.__colorIndex = colorIndex;
var coordIndex = kwargs["coordIndex"] || null;
if (coordIndex == null || coordIndex.length <= 0 || Math.min(coordIndex) < -1) {
return null;
}
this.__coordIndex = coordIndex;
var normalIndex = kwargs["normalIndex"] || null;
if (normalIndex == null || normalIndex.length <= 0 || Math.min(normalIndex) < -1) {
return null;
}
this.__normalIndex = normalIndex;
var texCoordIndex = kwargs["texCoordIndex"] || null;
if (texCoordIndex == null || texCoordIndex.length <= 0 || Math.min(texCoordIndex) < -1) {
return null;
}
this.__texCoordIndex = texCoordIndex;
var solid = kwargs["solid"] || true;
this.__solid = solid;
var texCoord = kwargs["texCoord"] || null;
this.__texCoord = texCoord;
var texCoordIndex = kwargs["texCoordIndex"] || null;
if (texCoordIndex == null || texCoordIndex.length <= 0 || Math.min(texCoordIndex) < -1) {
return null;
}
this.__texCoordIndex = texCoordIndex;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set attrib(attrib = null) {
this.__attrib = [attrib];
return this;
}
addAttrib(attrib = null) {
if (this.__attrib == null) {
this.__attrib = [];
}
this.__attrib.append(attrib);
return this;
}
removeAttrib(attrib) {
for( let i = 0; i < this.__attrib.length; i++) {
if ( this.__attrib[i] === attrib) {
this.__attrib.splice(i, 1);
}
}
return this.__attrib;
}
get attrib() {
return this.__attrib;
}
set color(color = null) {
this.__color = [color];
return this;
}
addColor(color = null) {
if (this.__color == null) {
this.__color = [];
}
this.__color.append(color);
return this;
}
removeColor(color) {
for( let i = 0; i < this.__color.length; i++) {
if ( this.__color[i] === color) {
this.__color.splice(i, 1);
}
}
return this.__color;
}
get color() {
return this.__color;
}
set coord(coord = null) {
this.__coord = [coord];
return this;
}
addCoord(coord = null) {
if (this.__coord == null) {
this.__coord = [];
}
this.__coord.append(coord);
return this;
}
removeCoord(coord) {
for( let i = 0; i < this.__coord.length; i++) {
if ( this.__coord[i] === coord) {
this.__coord.splice(i, 1);
}
}
return this.__coord;
}
get coord() {
return this.__coord;
}
set fogCoord(fogCoord = null) {
this.__fogCoord = [fogCoord];
return this;
}
addFogCoord(fogCoord = null) {
if (this.__fogCoord == null) {
this.__fogCoord = [];
}
this.__fogCoord.append(fogCoord);
return this;
}
removeFogCoord(fogCoord) {
for( let i = 0; i < this.__fogCoord.length; i++) {
if ( this.__fogCoord[i] === fogCoord) {
this.__fogCoord.splice(i, 1);
}
}
return this.__fogCoord;
}
get fogCoord() {
return this.__fogCoord;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set normal(normal = null) {
this.__normal = [normal];
return this;
}
addNormal(normal = null) {
if (this.__normal == null) {
this.__normal = [];
}
this.__normal.append(normal);
return this;
}
removeNormal(normal) {
for( let i = 0; i < this.__normal.length; i++) {
if ( this.__normal[i] === normal) {
this.__normal.splice(i, 1);
}
}
return this.__normal;
}
get normal() {
return this.__normal;
}
set set_colorIndex(colorIndex = null) {
if (colorIndex == null || colorIndex.length <= 0 || Math.min(colorIndex) < -1) {
return null;
}
this.__colorIndex = [colorIndex];
return this;
}
set set_coordIndex(coordIndex = null) {
if (coordIndex == null || coordIndex.length <= 0 || Math.min(coordIndex) < -1) {
return null;
}
this.__coordIndex = [coordIndex];
return this;
}
set set_normalIndex(normalIndex = null) {
if (normalIndex == null || normalIndex.length <= 0 || Math.min(normalIndex) < -1) {
return null;
}
this.__normalIndex = [normalIndex];
return this;
}
set set_texCoordIndex(texCoordIndex = null) {
if (texCoordIndex == null || texCoordIndex.length <= 0 || Math.min(texCoordIndex) < -1) {
return null;
}
this.__texCoordIndex = [texCoordIndex];
return this;
}
set texCoord(texCoord = null) {
this.__texCoord = [texCoord];
return this;
}
addTexCoord(texCoord = null) {
if (this.__texCoord == null) {
this.__texCoord = [];
}
this.__texCoord.append(texCoord);
return this;
}
removeTexCoord(texCoord) {
for( let i = 0; i < this.__texCoord.length; i++) {
if ( this.__texCoord[i] === texCoord) {
this.__texCoord.splice(i, 1);
}
}
return this.__texCoord;
}
get texCoord() {
return this.__texCoord;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__attrib === null) {
} else if (typeof this.__attrib.toXMLNode === 'function') {
str += this.__attrib.toXMLNode('attrib');
} else if (typeof this.__attrib === 'string') {
str += ' attrib="'+this.__attrib+'"';
} else if (Array.isArray( this.__attrib)) {
if (typeof this.__attrib[0].toXMLNode !== 'function') {
str += ' attrib="'+this.__attrib.join(' ')+'"';
} else {
for (let i in this.__attrib) {
if (typeof this.__attrib[i].toXMLNode === 'function') {
str += this.__attrib[i].toXMLNode('attrib');
}
}
}
} else {
str += ' attrib="'+this.__attrib+'"';
}
if (this.__color === null) {
} else if (typeof this.__color.toXMLNode === 'function') {
str += this.__color.toXMLNode('color');
} else if (typeof this.__color === 'string') {
str += ' color="'+this.__color+'"';
} else if (Array.isArray( this.__color)) {
if (typeof this.__color[0].toXMLNode !== 'function') {
str += ' color="'+this.__color.join(' ')+'"';
} else {
for (let i in this.__color) {
if (typeof this.__color[i].toXMLNode === 'function') {
str += this.__color[i].toXMLNode('color');
}
}
}
} else {
str += ' color="'+this.__color+'"';
}
if (this.__coord === null) {
} else if (typeof this.__coord.toXMLNode === 'function') {
str += this.__coord.toXMLNode('coord');
} else if (typeof this.__coord === 'string') {
str += ' coord="'+this.__coord+'"';
} else if (Array.isArray( this.__coord)) {
if (typeof this.__coord[0].toXMLNode !== 'function') {
str += ' coord="'+this.__coord.join(' ')+'"';
} else {
for (let i in this.__coord) {
if (typeof this.__coord[i].toXMLNode === 'function') {
str += this.__coord[i].toXMLNode('coord');
}
}
}
} else {
str += ' coord="'+this.__coord+'"';
}
if (this.__fogCoord === null) {
} else if (typeof this.__fogCoord.toXMLNode === 'function') {
str += this.__fogCoord.toXMLNode('fogCoord');
} else if (typeof this.__fogCoord === 'string') {
str += ' fogCoord="'+this.__fogCoord+'"';
} else if (Array.isArray( this.__fogCoord)) {
if (typeof this.__fogCoord[0].toXMLNode !== 'function') {
str += ' fogCoord="'+this.__fogCoord.join(' ')+'"';
} else {
for (let i in this.__fogCoord) {
if (typeof this.__fogCoord[i].toXMLNode === 'function') {
str += this.__fogCoord[i].toXMLNode('fogCoord');
}
}
}
} else {
str += ' fogCoord="'+this.__fogCoord+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__normal === null) {
} else if (typeof this.__normal.toXMLNode === 'function') {
str += this.__normal.toXMLNode('normal');
} else if (typeof this.__normal === 'string') {
str += ' normal="'+this.__normal+'"';
} else if (Array.isArray( this.__normal)) {
if (typeof this.__normal[0].toXMLNode !== 'function') {
str += ' normal="'+this.__normal.join(' ')+'"';
} else {
for (let i in this.__normal) {
if (typeof this.__normal[i].toXMLNode === 'function') {
str += this.__normal[i].toXMLNode('normal');
}
}
}
} else {
str += ' normal="'+this.__normal+'"';
}
if (this.__texCoord === null) {
} else if (typeof this.__texCoord.toXMLNode === 'function') {
str += this.__texCoord.toXMLNode('texCoord');
} else if (typeof this.__texCoord === 'string') {
str += ' texCoord="'+this.__texCoord+'"';
} else if (Array.isArray( this.__texCoord)) {
if (typeof this.__texCoord[0].toXMLNode !== 'function') {
str += ' texCoord="'+this.__texCoord.join(' ')+'"';
} else {
for (let i in this.__texCoord) {
if (typeof this.__texCoord[i].toXMLNode === 'function') {
str += this.__texCoord[i].toXMLNode('texCoord');
}
}
}
} else {
str += ' texCoord="'+this.__texCoord+'"';
}
str += ''
return str;
}
}
export class IndexedLineSet extends X3DGeometryNode {
constructor(kwargs = {}) {
super(kwargs);
var attrib = kwargs["attrib"] || null;
this.__attrib = attrib;
var color = kwargs["color"] || null;
this.__color = color;
var colorIndex = kwargs["colorIndex"] || null;
if (colorIndex == null || colorIndex.length <= 0 || Math.min(colorIndex) < -1) {
return null;
}
this.__colorIndex = colorIndex;
var colorPerVertex = kwargs["colorPerVertex"] || true;
this.__colorPerVertex = colorPerVertex;
var coord = kwargs["coord"] || null;
this.__coord = coord;
var coordIndex = kwargs["coordIndex"] || null;
if (coordIndex == null || coordIndex.length <= 0 || Math.min(coordIndex) < -1) {
return null;
}
this.__coordIndex = coordIndex;
var fogCoord = kwargs["fogCoord"] || null;
this.__fogCoord = fogCoord;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var colorIndex = kwargs["colorIndex"] || null;
if (colorIndex == null || colorIndex.length <= 0 || Math.min(colorIndex) < -1) {
return null;
}
this.__colorIndex = colorIndex;
var coordIndex = kwargs["coordIndex"] || null;
if (coordIndex == null || coordIndex.length <= 0 || Math.min(coordIndex) < -1) {
return null;
}
this.__coordIndex = coordIndex;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set attrib(attrib = null) {
this.__attrib = [attrib];
return this;
}
addAttrib(attrib = null) {
if (this.__attrib == null) {
this.__attrib = [];
}
this.__attrib.append(attrib);
return this;
}
removeAttrib(attrib) {
for( let i = 0; i < this.__attrib.length; i++) {
if ( this.__attrib[i] === attrib) {
this.__attrib.splice(i, 1);
}
}
return this.__attrib;
}
get attrib() {
return this.__attrib;
}
set color(color = null) {
this.__color = [color];
return this;
}
addColor(color = null) {
if (this.__color == null) {
this.__color = [];
}
this.__color.append(color);
return this;
}
removeColor(color) {
for( let i = 0; i < this.__color.length; i++) {
if ( this.__color[i] === color) {
this.__color.splice(i, 1);
}
}
return this.__color;
}
get color() {
return this.__color;
}
set coord(coord = null) {
this.__coord = [coord];
return this;
}
addCoord(coord = null) {
if (this.__coord == null) {
this.__coord = [];
}
this.__coord.append(coord);
return this;
}
removeCoord(coord) {
for( let i = 0; i < this.__coord.length; i++) {
if ( this.__coord[i] === coord) {
this.__coord.splice(i, 1);
}
}
return this.__coord;
}
get coord() {
return this.__coord;
}
set fogCoord(fogCoord = null) {
this.__fogCoord = [fogCoord];
return this;
}
addFogCoord(fogCoord = null) {
if (this.__fogCoord == null) {
this.__fogCoord = [];
}
this.__fogCoord.append(fogCoord);
return this;
}
removeFogCoord(fogCoord) {
for( let i = 0; i < this.__fogCoord.length; i++) {
if ( this.__fogCoord[i] === fogCoord) {
this.__fogCoord.splice(i, 1);
}
}
return this.__fogCoord;
}
get fogCoord() {
return this.__fogCoord;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set set_colorIndex(colorIndex = null) {
if (colorIndex == null || colorIndex.length <= 0 || Math.min(colorIndex) < -1) {
return null;
}
this.__colorIndex = [colorIndex];
return this;
}
set set_coordIndex(coordIndex = null) {
if (coordIndex == null || coordIndex.length <= 0 || Math.min(coordIndex) < -1) {
return null;
}
this.__coordIndex = [coordIndex];
return this;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__attrib === null) {
} else if (typeof this.__attrib.toXMLNode === 'function') {
str += this.__attrib.toXMLNode('attrib');
} else if (typeof this.__attrib === 'string') {
str += ' attrib="'+this.__attrib+'"';
} else if (Array.isArray( this.__attrib)) {
if (typeof this.__attrib[0].toXMLNode !== 'function') {
str += ' attrib="'+this.__attrib.join(' ')+'"';
} else {
for (let i in this.__attrib) {
if (typeof this.__attrib[i].toXMLNode === 'function') {
str += this.__attrib[i].toXMLNode('attrib');
}
}
}
} else {
str += ' attrib="'+this.__attrib+'"';
}
if (this.__color === null) {
} else if (typeof this.__color.toXMLNode === 'function') {
str += this.__color.toXMLNode('color');
} else if (typeof this.__color === 'string') {
str += ' color="'+this.__color+'"';
} else if (Array.isArray( this.__color)) {
if (typeof this.__color[0].toXMLNode !== 'function') {
str += ' color="'+this.__color.join(' ')+'"';
} else {
for (let i in this.__color) {
if (typeof this.__color[i].toXMLNode === 'function') {
str += this.__color[i].toXMLNode('color');
}
}
}
} else {
str += ' color="'+this.__color+'"';
}
if (this.__coord === null) {
} else if (typeof this.__coord.toXMLNode === 'function') {
str += this.__coord.toXMLNode('coord');
} else if (typeof this.__coord === 'string') {
str += ' coord="'+this.__coord+'"';
} else if (Array.isArray( this.__coord)) {
if (typeof this.__coord[0].toXMLNode !== 'function') {
str += ' coord="'+this.__coord.join(' ')+'"';
} else {
for (let i in this.__coord) {
if (typeof this.__coord[i].toXMLNode === 'function') {
str += this.__coord[i].toXMLNode('coord');
}
}
}
} else {
str += ' coord="'+this.__coord+'"';
}
if (this.__fogCoord === null) {
} else if (typeof this.__fogCoord.toXMLNode === 'function') {
str += this.__fogCoord.toXMLNode('fogCoord');
} else if (typeof this.__fogCoord === 'string') {
str += ' fogCoord="'+this.__fogCoord+'"';
} else if (Array.isArray( this.__fogCoord)) {
if (typeof this.__fogCoord[0].toXMLNode !== 'function') {
str += ' fogCoord="'+this.__fogCoord.join(' ')+'"';
} else {
for (let i in this.__fogCoord) {
if (typeof this.__fogCoord[i].toXMLNode === 'function') {
str += this.__fogCoord[i].toXMLNode('fogCoord');
}
}
}
} else {
str += ' fogCoord="'+this.__fogCoord+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class IndexedQuadSet extends X3DComposedGeometryNode {
constructor(kwargs = {}) {
super(kwargs);
var attrib = kwargs["attrib"] || null;
this.__attrib = attrib;
var ccw = kwargs["ccw"] || true;
this.__ccw = ccw;
var color = kwargs["color"] || null;
this.__color = color;
var colorPerVertex = kwargs["colorPerVertex"] || true;
this.__colorPerVertex = colorPerVertex;
var coord = kwargs["coord"] || null;
this.__coord = coord;
var fogCoord = kwargs["fogCoord"] || null;
this.__fogCoord = fogCoord;
var index = kwargs["index"] || null;
if (index == null || index.length <= 0 || Math.min(index) < 0) {
return null;
}
this.__index = index;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var normal = kwargs["normal"] || null;
this.__normal = normal;
var normalPerVertex = kwargs["normalPerVertex"] || true;
this.__normalPerVertex = normalPerVertex;
var index = kwargs["index"] || null;
if (index == null || index.length <= 0 || Math.min(index) < 0) {
return null;
}
this.__index = index;
var solid = kwargs["solid"] || true;
this.__solid = solid;
var texCoord = kwargs["texCoord"] || null;
this.__texCoord = texCoord;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set attrib(attrib = null) {
this.__attrib = [attrib];
return this;
}
addAttrib(attrib = null) {
if (this.__attrib == null) {
this.__attrib = [];
}
this.__attrib.append(attrib);
return this;
}
removeAttrib(attrib) {
for( let i = 0; i < this.__attrib.length; i++) {
if ( this.__attrib[i] === attrib) {
this.__attrib.splice(i, 1);
}
}
return this.__attrib;
}
get attrib() {
return this.__attrib;
}
set color(color = null) {
this.__color = [color];
return this;
}
addColor(color = null) {
if (this.__color == null) {
this.__color = [];
}
this.__color.append(color);
return this;
}
removeColor(color) {
for( let i = 0; i < this.__color.length; i++) {
if ( this.__color[i] === color) {
this.__color.splice(i, 1);
}
}
return this.__color;
}
get color() {
return this.__color;
}
set coord(coord = null) {
this.__coord = [coord];
return this;
}
addCoord(coord = null) {
if (this.__coord == null) {
this.__coord = [];
}
this.__coord.append(coord);
return this;
}
removeCoord(coord) {
for( let i = 0; i < this.__coord.length; i++) {
if ( this.__coord[i] === coord) {
this.__coord.splice(i, 1);
}
}
return this.__coord;
}
get coord() {
return this.__coord;
}
set fogCoord(fogCoord = null) {
this.__fogCoord = [fogCoord];
return this;
}
addFogCoord(fogCoord = null) {
if (this.__fogCoord == null) {
this.__fogCoord = [];
}
this.__fogCoord.append(fogCoord);
return this;
}
removeFogCoord(fogCoord) {
for( let i = 0; i < this.__fogCoord.length; i++) {
if ( this.__fogCoord[i] === fogCoord) {
this.__fogCoord.splice(i, 1);
}
}
return this.__fogCoord;
}
get fogCoord() {
return this.__fogCoord;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set normal(normal = null) {
this.__normal = [normal];
return this;
}
addNormal(normal = null) {
if (this.__normal == null) {
this.__normal = [];
}
this.__normal.append(normal);
return this;
}
removeNormal(normal) {
for( let i = 0; i < this.__normal.length; i++) {
if ( this.__normal[i] === normal) {
this.__normal.splice(i, 1);
}
}
return this.__normal;
}
get normal() {
return this.__normal;
}
set set_index(index = null) {
if (index == null || index.length <= 0 || Math.min(index) < 0) {
return null;
}
this.__index = [index];
return this;
}
set texCoord(texCoord = null) {
this.__texCoord = [texCoord];
return this;
}
addTexCoord(texCoord = null) {
if (this.__texCoord == null) {
this.__texCoord = [];
}
this.__texCoord.append(texCoord);
return this;
}
removeTexCoord(texCoord) {
for( let i = 0; i < this.__texCoord.length; i++) {
if ( this.__texCoord[i] === texCoord) {
this.__texCoord.splice(i, 1);
}
}
return this.__texCoord;
}
get texCoord() {
return this.__texCoord;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__attrib === null) {
} else if (typeof this.__attrib.toXMLNode === 'function') {
str += this.__attrib.toXMLNode('attrib');
} else if (typeof this.__attrib === 'string') {
str += ' attrib="'+this.__attrib+'"';
} else if (Array.isArray( this.__attrib)) {
if (typeof this.__attrib[0].toXMLNode !== 'function') {
str += ' attrib="'+this.__attrib.join(' ')+'"';
} else {
for (let i in this.__attrib) {
if (typeof this.__attrib[i].toXMLNode === 'function') {
str += this.__attrib[i].toXMLNode('attrib');
}
}
}
} else {
str += ' attrib="'+this.__attrib+'"';
}
if (this.__color === null) {
} else if (typeof this.__color.toXMLNode === 'function') {
str += this.__color.toXMLNode('color');
} else if (typeof this.__color === 'string') {
str += ' color="'+this.__color+'"';
} else if (Array.isArray( this.__color)) {
if (typeof this.__color[0].toXMLNode !== 'function') {
str += ' color="'+this.__color.join(' ')+'"';
} else {
for (let i in this.__color) {
if (typeof this.__color[i].toXMLNode === 'function') {
str += this.__color[i].toXMLNode('color');
}
}
}
} else {
str += ' color="'+this.__color+'"';
}
if (this.__coord === null) {
} else if (typeof this.__coord.toXMLNode === 'function') {
str += this.__coord.toXMLNode('coord');
} else if (typeof this.__coord === 'string') {
str += ' coord="'+this.__coord+'"';
} else if (Array.isArray( this.__coord)) {
if (typeof this.__coord[0].toXMLNode !== 'function') {
str += ' coord="'+this.__coord.join(' ')+'"';
} else {
for (let i in this.__coord) {
if (typeof this.__coord[i].toXMLNode === 'function') {
str += this.__coord[i].toXMLNode('coord');
}
}
}
} else {
str += ' coord="'+this.__coord+'"';
}
if (this.__fogCoord === null) {
} else if (typeof this.__fogCoord.toXMLNode === 'function') {
str += this.__fogCoord.toXMLNode('fogCoord');
} else if (typeof this.__fogCoord === 'string') {
str += ' fogCoord="'+this.__fogCoord+'"';
} else if (Array.isArray( this.__fogCoord)) {
if (typeof this.__fogCoord[0].toXMLNode !== 'function') {
str += ' fogCoord="'+this.__fogCoord.join(' ')+'"';
} else {
for (let i in this.__fogCoord) {
if (typeof this.__fogCoord[i].toXMLNode === 'function') {
str += this.__fogCoord[i].toXMLNode('fogCoord');
}
}
}
} else {
str += ' fogCoord="'+this.__fogCoord+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__normal === null) {
} else if (typeof this.__normal.toXMLNode === 'function') {
str += this.__normal.toXMLNode('normal');
} else if (typeof this.__normal === 'string') {
str += ' normal="'+this.__normal+'"';
} else if (Array.isArray( this.__normal)) {
if (typeof this.__normal[0].toXMLNode !== 'function') {
str += ' normal="'+this.__normal.join(' ')+'"';
} else {
for (let i in this.__normal) {
if (typeof this.__normal[i].toXMLNode === 'function') {
str += this.__normal[i].toXMLNode('normal');
}
}
}
} else {
str += ' normal="'+this.__normal+'"';
}
if (this.__texCoord === null) {
} else if (typeof this.__texCoord.toXMLNode === 'function') {
str += this.__texCoord.toXMLNode('texCoord');
} else if (typeof this.__texCoord === 'string') {
str += ' texCoord="'+this.__texCoord+'"';
} else if (Array.isArray( this.__texCoord)) {
if (typeof this.__texCoord[0].toXMLNode !== 'function') {
str += ' texCoord="'+this.__texCoord.join(' ')+'"';
} else {
for (let i in this.__texCoord) {
if (typeof this.__texCoord[i].toXMLNode === 'function') {
str += this.__texCoord[i].toXMLNode('texCoord');
}
}
}
} else {
str += ' texCoord="'+this.__texCoord+'"';
}
str += ''
return str;
}
}
export class IndexedTriangleFanSet extends X3DComposedGeometryNode {
constructor(kwargs = {}) {
super(kwargs);
var attrib = kwargs["attrib"] || null;
this.__attrib = attrib;
var ccw = kwargs["ccw"] || true;
this.__ccw = ccw;
var color = kwargs["color"] || null;
this.__color = color;
var colorPerVertex = kwargs["colorPerVertex"] || true;
this.__colorPerVertex = colorPerVertex;
var coord = kwargs["coord"] || null;
this.__coord = coord;
var fogCoord = kwargs["fogCoord"] || null;
this.__fogCoord = fogCoord;
var index = kwargs["index"] || null;
if (index == null || index.length <= 0 || Math.min(index) < -1) {
return null;
}
this.__index = index;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var normal = kwargs["normal"] || null;
this.__normal = normal;
var normalPerVertex = kwargs["normalPerVertex"] || true;
this.__normalPerVertex = normalPerVertex;
var index = kwargs["index"] || null;
if (index == null || index.length <= 0 || Math.min(index) < -1) {
return null;
}
this.__index = index;
var solid = kwargs["solid"] || true;
this.__solid = solid;
var texCoord = kwargs["texCoord"] || null;
this.__texCoord = texCoord;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set attrib(attrib = null) {
this.__attrib = [attrib];
return this;
}
addAttrib(attrib = null) {
if (this.__attrib == null) {
this.__attrib = [];
}
this.__attrib.append(attrib);
return this;
}
removeAttrib(attrib) {
for( let i = 0; i < this.__attrib.length; i++) {
if ( this.__attrib[i] === attrib) {
this.__attrib.splice(i, 1);
}
}
return this.__attrib;
}
get attrib() {
return this.__attrib;
}
set color(color = null) {
this.__color = [color];
return this;
}
addColor(color = null) {
if (this.__color == null) {
this.__color = [];
}
this.__color.append(color);
return this;
}
removeColor(color) {
for( let i = 0; i < this.__color.length; i++) {
if ( this.__color[i] === color) {
this.__color.splice(i, 1);
}
}
return this.__color;
}
get color() {
return this.__color;
}
set coord(coord = null) {
this.__coord = [coord];
return this;
}
addCoord(coord = null) {
if (this.__coord == null) {
this.__coord = [];
}
this.__coord.append(coord);
return this;
}
removeCoord(coord) {
for( let i = 0; i < this.__coord.length; i++) {
if ( this.__coord[i] === coord) {
this.__coord.splice(i, 1);
}
}
return this.__coord;
}
get coord() {
return this.__coord;
}
set fogCoord(fogCoord = null) {
this.__fogCoord = [fogCoord];
return this;
}
addFogCoord(fogCoord = null) {
if (this.__fogCoord == null) {
this.__fogCoord = [];
}
this.__fogCoord.append(fogCoord);
return this;
}
removeFogCoord(fogCoord) {
for( let i = 0; i < this.__fogCoord.length; i++) {
if ( this.__fogCoord[i] === fogCoord) {
this.__fogCoord.splice(i, 1);
}
}
return this.__fogCoord;
}
get fogCoord() {
return this.__fogCoord;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set normal(normal = null) {
this.__normal = [normal];
return this;
}
addNormal(normal = null) {
if (this.__normal == null) {
this.__normal = [];
}
this.__normal.append(normal);
return this;
}
removeNormal(normal) {
for( let i = 0; i < this.__normal.length; i++) {
if ( this.__normal[i] === normal) {
this.__normal.splice(i, 1);
}
}
return this.__normal;
}
get normal() {
return this.__normal;
}
set set_index(index = null) {
if (index == null || index.length <= 0 || Math.min(index) < -1) {
return null;
}
this.__index = [index];
return this;
}
set texCoord(texCoord = null) {
this.__texCoord = [texCoord];
return this;
}
addTexCoord(texCoord = null) {
if (this.__texCoord == null) {
this.__texCoord = [];
}
this.__texCoord.append(texCoord);
return this;
}
removeTexCoord(texCoord) {
for( let i = 0; i < this.__texCoord.length; i++) {
if ( this.__texCoord[i] === texCoord) {
this.__texCoord.splice(i, 1);
}
}
return this.__texCoord;
}
get texCoord() {
return this.__texCoord;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__attrib === null) {
} else if (typeof this.__attrib.toXMLNode === 'function') {
str += this.__attrib.toXMLNode('attrib');
} else if (typeof this.__attrib === 'string') {
str += ' attrib="'+this.__attrib+'"';
} else if (Array.isArray( this.__attrib)) {
if (typeof this.__attrib[0].toXMLNode !== 'function') {
str += ' attrib="'+this.__attrib.join(' ')+'"';
} else {
for (let i in this.__attrib) {
if (typeof this.__attrib[i].toXMLNode === 'function') {
str += this.__attrib[i].toXMLNode('attrib');
}
}
}
} else {
str += ' attrib="'+this.__attrib+'"';
}
if (this.__color === null) {
} else if (typeof this.__color.toXMLNode === 'function') {
str += this.__color.toXMLNode('color');
} else if (typeof this.__color === 'string') {
str += ' color="'+this.__color+'"';
} else if (Array.isArray( this.__color)) {
if (typeof this.__color[0].toXMLNode !== 'function') {
str += ' color="'+this.__color.join(' ')+'"';
} else {
for (let i in this.__color) {
if (typeof this.__color[i].toXMLNode === 'function') {
str += this.__color[i].toXMLNode('color');
}
}
}
} else {
str += ' color="'+this.__color+'"';
}
if (this.__coord === null) {
} else if (typeof this.__coord.toXMLNode === 'function') {
str += this.__coord.toXMLNode('coord');
} else if (typeof this.__coord === 'string') {
str += ' coord="'+this.__coord+'"';
} else if (Array.isArray( this.__coord)) {
if (typeof this.__coord[0].toXMLNode !== 'function') {
str += ' coord="'+this.__coord.join(' ')+'"';
} else {
for (let i in this.__coord) {
if (typeof this.__coord[i].toXMLNode === 'function') {
str += this.__coord[i].toXMLNode('coord');
}
}
}
} else {
str += ' coord="'+this.__coord+'"';
}
if (this.__fogCoord === null) {
} else if (typeof this.__fogCoord.toXMLNode === 'function') {
str += this.__fogCoord.toXMLNode('fogCoord');
} else if (typeof this.__fogCoord === 'string') {
str += ' fogCoord="'+this.__fogCoord+'"';
} else if (Array.isArray( this.__fogCoord)) {
if (typeof this.__fogCoord[0].toXMLNode !== 'function') {
str += ' fogCoord="'+this.__fogCoord.join(' ')+'"';
} else {
for (let i in this.__fogCoord) {
if (typeof this.__fogCoord[i].toXMLNode === 'function') {
str += this.__fogCoord[i].toXMLNode('fogCoord');
}
}
}
} else {
str += ' fogCoord="'+this.__fogCoord+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__normal === null) {
} else if (typeof this.__normal.toXMLNode === 'function') {
str += this.__normal.toXMLNode('normal');
} else if (typeof this.__normal === 'string') {
str += ' normal="'+this.__normal+'"';
} else if (Array.isArray( this.__normal)) {
if (typeof this.__normal[0].toXMLNode !== 'function') {
str += ' normal="'+this.__normal.join(' ')+'"';
} else {
for (let i in this.__normal) {
if (typeof this.__normal[i].toXMLNode === 'function') {
str += this.__normal[i].toXMLNode('normal');
}
}
}
} else {
str += ' normal="'+this.__normal+'"';
}
if (this.__texCoord === null) {
} else if (typeof this.__texCoord.toXMLNode === 'function') {
str += this.__texCoord.toXMLNode('texCoord');
} else if (typeof this.__texCoord === 'string') {
str += ' texCoord="'+this.__texCoord+'"';
} else if (Array.isArray( this.__texCoord)) {
if (typeof this.__texCoord[0].toXMLNode !== 'function') {
str += ' texCoord="'+this.__texCoord.join(' ')+'"';
} else {
for (let i in this.__texCoord) {
if (typeof this.__texCoord[i].toXMLNode === 'function') {
str += this.__texCoord[i].toXMLNode('texCoord');
}
}
}
} else {
str += ' texCoord="'+this.__texCoord+'"';
}
str += ''
return str;
}
}
export class IndexedTriangleSet extends X3DComposedGeometryNode {
constructor(kwargs = {}) {
super(kwargs);
var attrib = kwargs["attrib"] || null;
this.__attrib = attrib;
var ccw = kwargs["ccw"] || true;
this.__ccw = ccw;
var color = kwargs["color"] || null;
this.__color = color;
var colorPerVertex = kwargs["colorPerVertex"] || true;
this.__colorPerVertex = colorPerVertex;
var coord = kwargs["coord"] || null;
this.__coord = coord;
var fogCoord = kwargs["fogCoord"] || null;
this.__fogCoord = fogCoord;
var index = kwargs["index"] || null;
if (index == null || index.length <= 0 || Math.min(index) < 0) {
return null;
}
this.__index = index;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var normal = kwargs["normal"] || null;
this.__normal = normal;
var normalPerVertex = kwargs["normalPerVertex"] || true;
this.__normalPerVertex = normalPerVertex;
var index = kwargs["index"] || null;
if (index == null || index.length <= 0 || Math.min(index) < 0) {
return null;
}
this.__index = index;
var solid = kwargs["solid"] || true;
this.__solid = solid;
var texCoord = kwargs["texCoord"] || null;
this.__texCoord = texCoord;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set attrib(attrib = null) {
this.__attrib = [attrib];
return this;
}
addAttrib(attrib = null) {
if (this.__attrib == null) {
this.__attrib = [];
}
this.__attrib.append(attrib);
return this;
}
removeAttrib(attrib) {
for( let i = 0; i < this.__attrib.length; i++) {
if ( this.__attrib[i] === attrib) {
this.__attrib.splice(i, 1);
}
}
return this.__attrib;
}
get attrib() {
return this.__attrib;
}
set color(color = null) {
this.__color = [color];
return this;
}
addColor(color = null) {
if (this.__color == null) {
this.__color = [];
}
this.__color.append(color);
return this;
}
removeColor(color) {
for( let i = 0; i < this.__color.length; i++) {
if ( this.__color[i] === color) {
this.__color.splice(i, 1);
}
}
return this.__color;
}
get color() {
return this.__color;
}
set coord(coord = null) {
this.__coord = [coord];
return this;
}
addCoord(coord = null) {
if (this.__coord == null) {
this.__coord = [];
}
this.__coord.append(coord);
return this;
}
removeCoord(coord) {
for( let i = 0; i < this.__coord.length; i++) {
if ( this.__coord[i] === coord) {
this.__coord.splice(i, 1);
}
}
return this.__coord;
}
get coord() {
return this.__coord;
}
set fogCoord(fogCoord = null) {
this.__fogCoord = [fogCoord];
return this;
}
addFogCoord(fogCoord = null) {
if (this.__fogCoord == null) {
this.__fogCoord = [];
}
this.__fogCoord.append(fogCoord);
return this;
}
removeFogCoord(fogCoord) {
for( let i = 0; i < this.__fogCoord.length; i++) {
if ( this.__fogCoord[i] === fogCoord) {
this.__fogCoord.splice(i, 1);
}
}
return this.__fogCoord;
}
get fogCoord() {
return this.__fogCoord;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set normal(normal = null) {
this.__normal = [normal];
return this;
}
addNormal(normal = null) {
if (this.__normal == null) {
this.__normal = [];
}
this.__normal.append(normal);
return this;
}
removeNormal(normal) {
for( let i = 0; i < this.__normal.length; i++) {
if ( this.__normal[i] === normal) {
this.__normal.splice(i, 1);
}
}
return this.__normal;
}
get normal() {
return this.__normal;
}
set set_index(index = null) {
if (index == null || index.length <= 0 || Math.min(index) < 0) {
return null;
}
this.__index = [index];
return this;
}
set texCoord(texCoord = null) {
this.__texCoord = [texCoord];
return this;
}
addTexCoord(texCoord = null) {
if (this.__texCoord == null) {
this.__texCoord = [];
}
this.__texCoord.append(texCoord);
return this;
}
removeTexCoord(texCoord) {
for( let i = 0; i < this.__texCoord.length; i++) {
if ( this.__texCoord[i] === texCoord) {
this.__texCoord.splice(i, 1);
}
}
return this.__texCoord;
}
get texCoord() {
return this.__texCoord;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__attrib === null) {
} else if (typeof this.__attrib.toXMLNode === 'function') {
str += this.__attrib.toXMLNode('attrib');
} else if (typeof this.__attrib === 'string') {
str += ' attrib="'+this.__attrib+'"';
} else if (Array.isArray( this.__attrib)) {
if (typeof this.__attrib[0].toXMLNode !== 'function') {
str += ' attrib="'+this.__attrib.join(' ')+'"';
} else {
for (let i in this.__attrib) {
if (typeof this.__attrib[i].toXMLNode === 'function') {
str += this.__attrib[i].toXMLNode('attrib');
}
}
}
} else {
str += ' attrib="'+this.__attrib+'"';
}
if (this.__color === null) {
} else if (typeof this.__color.toXMLNode === 'function') {
str += this.__color.toXMLNode('color');
} else if (typeof this.__color === 'string') {
str += ' color="'+this.__color+'"';
} else if (Array.isArray( this.__color)) {
if (typeof this.__color[0].toXMLNode !== 'function') {
str += ' color="'+this.__color.join(' ')+'"';
} else {
for (let i in this.__color) {
if (typeof this.__color[i].toXMLNode === 'function') {
str += this.__color[i].toXMLNode('color');
}
}
}
} else {
str += ' color="'+this.__color+'"';
}
if (this.__coord === null) {
} else if (typeof this.__coord.toXMLNode === 'function') {
str += this.__coord.toXMLNode('coord');
} else if (typeof this.__coord === 'string') {
str += ' coord="'+this.__coord+'"';
} else if (Array.isArray( this.__coord)) {
if (typeof this.__coord[0].toXMLNode !== 'function') {
str += ' coord="'+this.__coord.join(' ')+'"';
} else {
for (let i in this.__coord) {
if (typeof this.__coord[i].toXMLNode === 'function') {
str += this.__coord[i].toXMLNode('coord');
}
}
}
} else {
str += ' coord="'+this.__coord+'"';
}
if (this.__fogCoord === null) {
} else if (typeof this.__fogCoord.toXMLNode === 'function') {
str += this.__fogCoord.toXMLNode('fogCoord');
} else if (typeof this.__fogCoord === 'string') {
str += ' fogCoord="'+this.__fogCoord+'"';
} else if (Array.isArray( this.__fogCoord)) {
if (typeof this.__fogCoord[0].toXMLNode !== 'function') {
str += ' fogCoord="'+this.__fogCoord.join(' ')+'"';
} else {
for (let i in this.__fogCoord) {
if (typeof this.__fogCoord[i].toXMLNode === 'function') {
str += this.__fogCoord[i].toXMLNode('fogCoord');
}
}
}
} else {
str += ' fogCoord="'+this.__fogCoord+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__normal === null) {
} else if (typeof this.__normal.toXMLNode === 'function') {
str += this.__normal.toXMLNode('normal');
} else if (typeof this.__normal === 'string') {
str += ' normal="'+this.__normal+'"';
} else if (Array.isArray( this.__normal)) {
if (typeof this.__normal[0].toXMLNode !== 'function') {
str += ' normal="'+this.__normal.join(' ')+'"';
} else {
for (let i in this.__normal) {
if (typeof this.__normal[i].toXMLNode === 'function') {
str += this.__normal[i].toXMLNode('normal');
}
}
}
} else {
str += ' normal="'+this.__normal+'"';
}
if (this.__texCoord === null) {
} else if (typeof this.__texCoord.toXMLNode === 'function') {
str += this.__texCoord.toXMLNode('texCoord');
} else if (typeof this.__texCoord === 'string') {
str += ' texCoord="'+this.__texCoord+'"';
} else if (Array.isArray( this.__texCoord)) {
if (typeof this.__texCoord[0].toXMLNode !== 'function') {
str += ' texCoord="'+this.__texCoord.join(' ')+'"';
} else {
for (let i in this.__texCoord) {
if (typeof this.__texCoord[i].toXMLNode === 'function') {
str += this.__texCoord[i].toXMLNode('texCoord');
}
}
}
} else {
str += ' texCoord="'+this.__texCoord+'"';
}
str += ''
return str;
}
}
export class IndexedTriangleStripSet extends X3DComposedGeometryNode {
constructor(kwargs = {}) {
super(kwargs);
var attrib = kwargs["attrib"] || null;
this.__attrib = attrib;
var ccw = kwargs["ccw"] || true;
this.__ccw = ccw;
var color = kwargs["color"] || null;
this.__color = color;
var colorPerVertex = kwargs["colorPerVertex"] || true;
this.__colorPerVertex = colorPerVertex;
var coord = kwargs["coord"] || null;
this.__coord = coord;
var fogCoord = kwargs["fogCoord"] || null;
this.__fogCoord = fogCoord;
var index = kwargs["index"] || null;
if (index == null || index.length <= 0 || Math.min(index) < -1) {
return null;
}
this.__index = index;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var normal = kwargs["normal"] || null;
this.__normal = normal;
var normalPerVertex = kwargs["normalPerVertex"] || true;
this.__normalPerVertex = normalPerVertex;
var index = kwargs["index"] || null;
if (index == null || index.length <= 0 || Math.min(index) < -1) {
return null;
}
this.__index = index;
var solid = kwargs["solid"] || true;
this.__solid = solid;
var texCoord = kwargs["texCoord"] || null;
this.__texCoord = texCoord;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set attrib(attrib = null) {
this.__attrib = [attrib];
return this;
}
addAttrib(attrib = null) {
if (this.__attrib == null) {
this.__attrib = [];
}
this.__attrib.append(attrib);
return this;
}
removeAttrib(attrib) {
for( let i = 0; i < this.__attrib.length; i++) {
if ( this.__attrib[i] === attrib) {
this.__attrib.splice(i, 1);
}
}
return this.__attrib;
}
get attrib() {
return this.__attrib;
}
set color(color = null) {
this.__color = [color];
return this;
}
addColor(color = null) {
if (this.__color == null) {
this.__color = [];
}
this.__color.append(color);
return this;
}
removeColor(color) {
for( let i = 0; i < this.__color.length; i++) {
if ( this.__color[i] === color) {
this.__color.splice(i, 1);
}
}
return this.__color;
}
get color() {
return this.__color;
}
set coord(coord = null) {
this.__coord = [coord];
return this;
}
addCoord(coord = null) {
if (this.__coord == null) {
this.__coord = [];
}
this.__coord.append(coord);
return this;
}
removeCoord(coord) {
for( let i = 0; i < this.__coord.length; i++) {
if ( this.__coord[i] === coord) {
this.__coord.splice(i, 1);
}
}
return this.__coord;
}
get coord() {
return this.__coord;
}
set fogCoord(fogCoord = null) {
this.__fogCoord = [fogCoord];
return this;
}
addFogCoord(fogCoord = null) {
if (this.__fogCoord == null) {
this.__fogCoord = [];
}
this.__fogCoord.append(fogCoord);
return this;
}
removeFogCoord(fogCoord) {
for( let i = 0; i < this.__fogCoord.length; i++) {
if ( this.__fogCoord[i] === fogCoord) {
this.__fogCoord.splice(i, 1);
}
}
return this.__fogCoord;
}
get fogCoord() {
return this.__fogCoord;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set normal(normal = null) {
this.__normal = [normal];
return this;
}
addNormal(normal = null) {
if (this.__normal == null) {
this.__normal = [];
}
this.__normal.append(normal);
return this;
}
removeNormal(normal) {
for( let i = 0; i < this.__normal.length; i++) {
if ( this.__normal[i] === normal) {
this.__normal.splice(i, 1);
}
}
return this.__normal;
}
get normal() {
return this.__normal;
}
set set_index(index = null) {
if (index == null || index.length <= 0 || Math.min(index) < -1) {
return null;
}
this.__index = [index];
return this;
}
set texCoord(texCoord = null) {
this.__texCoord = [texCoord];
return this;
}
addTexCoord(texCoord = null) {
if (this.__texCoord == null) {
this.__texCoord = [];
}
this.__texCoord.append(texCoord);
return this;
}
removeTexCoord(texCoord) {
for( let i = 0; i < this.__texCoord.length; i++) {
if ( this.__texCoord[i] === texCoord) {
this.__texCoord.splice(i, 1);
}
}
return this.__texCoord;
}
get texCoord() {
return this.__texCoord;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__attrib === null) {
} else if (typeof this.__attrib.toXMLNode === 'function') {
str += this.__attrib.toXMLNode('attrib');
} else if (typeof this.__attrib === 'string') {
str += ' attrib="'+this.__attrib+'"';
} else if (Array.isArray( this.__attrib)) {
if (typeof this.__attrib[0].toXMLNode !== 'function') {
str += ' attrib="'+this.__attrib.join(' ')+'"';
} else {
for (let i in this.__attrib) {
if (typeof this.__attrib[i].toXMLNode === 'function') {
str += this.__attrib[i].toXMLNode('attrib');
}
}
}
} else {
str += ' attrib="'+this.__attrib+'"';
}
if (this.__color === null) {
} else if (typeof this.__color.toXMLNode === 'function') {
str += this.__color.toXMLNode('color');
} else if (typeof this.__color === 'string') {
str += ' color="'+this.__color+'"';
} else if (Array.isArray( this.__color)) {
if (typeof this.__color[0].toXMLNode !== 'function') {
str += ' color="'+this.__color.join(' ')+'"';
} else {
for (let i in this.__color) {
if (typeof this.__color[i].toXMLNode === 'function') {
str += this.__color[i].toXMLNode('color');
}
}
}
} else {
str += ' color="'+this.__color+'"';
}
if (this.__coord === null) {
} else if (typeof this.__coord.toXMLNode === 'function') {
str += this.__coord.toXMLNode('coord');
} else if (typeof this.__coord === 'string') {
str += ' coord="'+this.__coord+'"';
} else if (Array.isArray( this.__coord)) {
if (typeof this.__coord[0].toXMLNode !== 'function') {
str += ' coord="'+this.__coord.join(' ')+'"';
} else {
for (let i in this.__coord) {
if (typeof this.__coord[i].toXMLNode === 'function') {
str += this.__coord[i].toXMLNode('coord');
}
}
}
} else {
str += ' coord="'+this.__coord+'"';
}
if (this.__fogCoord === null) {
} else if (typeof this.__fogCoord.toXMLNode === 'function') {
str += this.__fogCoord.toXMLNode('fogCoord');
} else if (typeof this.__fogCoord === 'string') {
str += ' fogCoord="'+this.__fogCoord+'"';
} else if (Array.isArray( this.__fogCoord)) {
if (typeof this.__fogCoord[0].toXMLNode !== 'function') {
str += ' fogCoord="'+this.__fogCoord.join(' ')+'"';
} else {
for (let i in this.__fogCoord) {
if (typeof this.__fogCoord[i].toXMLNode === 'function') {
str += this.__fogCoord[i].toXMLNode('fogCoord');
}
}
}
} else {
str += ' fogCoord="'+this.__fogCoord+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__normal === null) {
} else if (typeof this.__normal.toXMLNode === 'function') {
str += this.__normal.toXMLNode('normal');
} else if (typeof this.__normal === 'string') {
str += ' normal="'+this.__normal+'"';
} else if (Array.isArray( this.__normal)) {
if (typeof this.__normal[0].toXMLNode !== 'function') {
str += ' normal="'+this.__normal.join(' ')+'"';
} else {
for (let i in this.__normal) {
if (typeof this.__normal[i].toXMLNode === 'function') {
str += this.__normal[i].toXMLNode('normal');
}
}
}
} else {
str += ' normal="'+this.__normal+'"';
}
if (this.__texCoord === null) {
} else if (typeof this.__texCoord.toXMLNode === 'function') {
str += this.__texCoord.toXMLNode('texCoord');
} else if (typeof this.__texCoord === 'string') {
str += ' texCoord="'+this.__texCoord+'"';
} else if (Array.isArray( this.__texCoord)) {
if (typeof this.__texCoord[0].toXMLNode !== 'function') {
str += ' texCoord="'+this.__texCoord.join(' ')+'"';
} else {
for (let i in this.__texCoord) {
if (typeof this.__texCoord[i].toXMLNode === 'function') {
str += this.__texCoord[i].toXMLNode('texCoord');
}
}
}
} else {
str += ' texCoord="'+this.__texCoord+'"';
}
str += ''
return str;
}
}
export class Inline extends X3DChildNode {
constructor(kwargs = {}) {
super(kwargs);
var bboxCenter = kwargs["bboxCenter"] || [0, 0, 0];
this.__bboxCenter = bboxCenter;
var bboxSize = kwargs["bboxSize"] || [-1, -1, -1];
this.__bboxSize = bboxSize;
var displayBBox = kwargs["displayBBox"] || false;
this.__displayBBox = displayBBox;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var load = kwargs["load"] || true;
this.__load = load;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var url = kwargs["url"] || null;
this.__url = url;
var visible = kwargs["visible"] || true;
this.__visible = visible;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set displayBBox(displayBBox = false) {
this.__displayBBox = [displayBBox];
return this;
}
addDisplayBBox(displayBBox = false) {
if (this.__displayBBox == null) {
this.__displayBBox = [];
}
this.__displayBBox.append(displayBBox);
return this;
}
removeDisplayBBox(displayBBox) {
for( let i = 0; i < this.__displayBBox.length; i++) {
if ( this.__displayBBox[i] === displayBBox) {
this.__displayBBox.splice(i, 1);
}
}
return this.__displayBBox;
}
get isDisplayBBox() {
return this.__displayBBox;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set load(load = true) {
this.__load = [load];
return this;
}
addLoad(load = true) {
if (this.__load == null) {
this.__load = [];
}
this.__load.append(load);
return this;
}
removeLoad(load) {
for( let i = 0; i < this.__load.length; i++) {
if ( this.__load[i] === load) {
this.__load.splice(i, 1);
}
}
return this.__load;
}
get isLoad() {
return this.__load;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set url(url = null) {
this.__url = [url];
return this;
}
addUrl(url = null) {
if (this.__url == null) {
this.__url = [];
}
this.__url.append(url);
return this;
}
removeUrl(url) {
for( let i = 0; i < this.__url.length; i++) {
if ( this.__url[i] === url) {
this.__url.splice(i, 1);
}
}
return this.__url;
}
get url() {
return this.__url;
}
set visible(visible = true) {
this.__visible = [visible];
return this;
}
addVisible(visible = true) {
if (this.__visible == null) {
this.__visible = [];
}
this.__visible.append(visible);
return this;
}
removeVisible(visible) {
for( let i = 0; i < this.__visible.length; i++) {
if ( this.__visible[i] === visible) {
this.__visible.splice(i, 1);
}
}
return this.__visible;
}
get isVisible() {
return this.__visible;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class IntegerSequencer extends X3DSequencerNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var key = kwargs["key"] || null;
this.__key = key;
var keyValue = kwargs["keyValue"] || null;
this.__keyValue = keyValue;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var next = kwargs["next"] || null;
this.__next = next;
var previous = kwargs["previous"] || null;
this.__previous = previous;
var fraction = kwargs["fraction"] || null;
this.__fraction = fraction;
var value_changed = kwargs["value_changed"] || null;
this.__value_changed = value_changed;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set key(key = null) {
this.__key = [key];
return this;
}
addKey(key = null) {
if (this.__key == null) {
this.__key = [];
}
this.__key.append(key);
return this;
}
removeKey(key) {
for( let i = 0; i < this.__key.length; i++) {
if ( this.__key[i] === key) {
this.__key.splice(i, 1);
}
}
return this.__key;
}
get key() {
return this.__key;
}
set keyValue(keyValue = null) {
this.__keyValue = [keyValue];
return this;
}
addKeyValue(keyValue = null) {
if (this.__keyValue == null) {
this.__keyValue = [];
}
this.__keyValue.append(keyValue);
return this;
}
removeKeyValue(keyValue) {
for( let i = 0; i < this.__keyValue.length; i++) {
if ( this.__keyValue[i] === keyValue) {
this.__keyValue.splice(i, 1);
}
}
return this.__keyValue;
}
get keyValue() {
return this.__keyValue;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set next(next = null) {
this.__next = [next];
return this;
}
addNext(next = null) {
if (this.__next == null) {
this.__next = [];
}
this.__next.append(next);
return this;
}
set previous(previous = null) {
this.__previous = [previous];
return this;
}
addPrevious(previous = null) {
if (this.__previous == null) {
this.__previous = [];
}
this.__previous.append(previous);
return this;
}
set set_fraction(fraction = null) {
this.__fraction = [fraction];
return this;
}
removevalue_changed(value_changed) {
for( let i = 0; i < this.__value_changed.length; i++) {
if ( this.__value_changed[i] === value_changed) {
this.__value_changed.splice(i, 1);
}
}
return this.__value_changed;
}
get value_changed() {
return this.__value_changed;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class IntegerTrigger extends X3DTriggerNode {
constructor(kwargs = {}) {
super(kwargs);
var integerKey = kwargs["integerKey"] || -1;
this.__integerKey = integerKey;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var boolean = kwargs["boolean"] || null;
this.__boolean = boolean;
var triggerValue = kwargs["triggerValue"] || null;
this.__triggerValue = triggerValue;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set integerKey(integerKey = -1) {
this.__integerKey = [integerKey];
return this;
}
addIntegerKey(integerKey = -1) {
if (this.__integerKey == null) {
this.__integerKey = [];
}
this.__integerKey.append(integerKey);
return this;
}
removeIntegerKey(integerKey) {
for( let i = 0; i < this.__integerKey.length; i++) {
if ( this.__integerKey[i] === integerKey) {
this.__integerKey.splice(i, 1);
}
}
return this.__integerKey;
}
get integerKey() {
return this.__integerKey;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set set_boolean(boolean = null) {
this.__boolean = [boolean];
return this;
}
removeTriggerValue(triggerValue) {
for( let i = 0; i < this.__triggerValue.length; i++) {
if ( this.__triggerValue[i] === triggerValue) {
this.__triggerValue.splice(i, 1);
}
}
return this.__triggerValue;
}
get triggerValue() {
return this.__triggerValue;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class IsoSurfaceVolumeData extends X3DVolumeDataNode {
constructor(kwargs = {}) {
super(kwargs);
var bboxCenter = kwargs["bboxCenter"] || [0, 0, 0];
this.__bboxCenter = bboxCenter;
var bboxSize = kwargs["bboxSize"] || [-1, -1, -1];
this.__bboxSize = bboxSize;
var contourStepSize = kwargs["contourStepSize"] || 0;
this.__contourStepSize = contourStepSize;
var dimensions = kwargs["dimensions"] || [1, 1, 1];
if (dimensions == null || dimensions.length <= 0 || Math.min(dimensions) <= 0) {
return null;
}
this.__dimensions = dimensions;
var displayBBox = kwargs["displayBBox"] || false;
this.__displayBBox = displayBBox;
var gradients = kwargs["gradients"] || null;
this.__gradients = gradients;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var renderStyle = kwargs["renderStyle"] || null;
this.__renderStyle = renderStyle;
var surfaceTolerance = kwargs["surfaceTolerance"] || 0;
if (surfaceTolerance == null || surfaceTolerance < 0) {
return null;
}
this.__surfaceTolerance = surfaceTolerance;
var surfaceValues = kwargs["surfaceValues"] || null;
this.__surfaceValues = surfaceValues;
var visible = kwargs["visible"] || true;
this.__visible = visible;
var voxels = kwargs["voxels"] || null;
this.__voxels = voxels;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set contourStepSize(contourStepSize = 0) {
this.__contourStepSize = [contourStepSize];
return this;
}
addContourStepSize(contourStepSize = 0) {
if (this.__contourStepSize == null) {
this.__contourStepSize = [];
}
this.__contourStepSize.append(contourStepSize);
return this;
}
removeContourStepSize(contourStepSize) {
for( let i = 0; i < this.__contourStepSize.length; i++) {
if ( this.__contourStepSize[i] === contourStepSize) {
this.__contourStepSize.splice(i, 1);
}
}
return this.__contourStepSize;
}
get contourStepSize() {
return this.__contourStepSize;
}
set dimensions(dimensions = [1, 1, 1]) {
if (dimensions == null || dimensions.length <= 0 || Math.min(dimensions) <= 0) {
return null;
}
this.__dimensions = [dimensions];
return this;
}
addDimensions(dimensions = [1, 1, 1]) {
if (dimensions == null || dimensions.length <= 0 || Math.min(dimensions) <= 0) {
return null;
}
if (this.__dimensions == null) {
this.__dimensions = [];
}
this.__dimensions.append(dimensions);
return this;
}
removeDimensions(dimensions) {
for( let i = 0; i < this.__dimensions.length; i++) {
if ( this.__dimensions[i] === dimensions) {
this.__dimensions.splice(i, 1);
}
}
return this.__dimensions;
}
get dimensions() {
return this.__dimensions;
}
set displayBBox(displayBBox = false) {
this.__displayBBox = [displayBBox];
return this;
}
addDisplayBBox(displayBBox = false) {
if (this.__displayBBox == null) {
this.__displayBBox = [];
}
this.__displayBBox.append(displayBBox);
return this;
}
removeDisplayBBox(displayBBox) {
for( let i = 0; i < this.__displayBBox.length; i++) {
if ( this.__displayBBox[i] === displayBBox) {
this.__displayBBox.splice(i, 1);
}
}
return this.__displayBBox;
}
get isDisplayBBox() {
return this.__displayBBox;
}
set gradients(gradients = null) {
this.__gradients = [gradients];
return this;
}
addGradients(gradients = null) {
if (this.__gradients == null) {
this.__gradients = [];
}
this.__gradients.append(gradients);
return this;
}
removeGradients(gradients) {
for( let i = 0; i < this.__gradients.length; i++) {
if ( this.__gradients[i] === gradients) {
this.__gradients.splice(i, 1);
}
}
return this.__gradients;
}
get gradients() {
return this.__gradients;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set renderStyle(renderStyle = null) {
this.__renderStyle = [renderStyle];
return this;
}
addRenderStyle(renderStyle = null) {
if (this.__renderStyle == null) {
this.__renderStyle = [];
}
this.__renderStyle.append(renderStyle);
return this;
}
removeRenderStyle(renderStyle) {
for( let i = 0; i < this.__renderStyle.length; i++) {
if ( this.__renderStyle[i] === renderStyle) {
this.__renderStyle.splice(i, 1);
}
}
return this.__renderStyle;
}
get renderStyle() {
return this.__renderStyle;
}
set surfaceTolerance(surfaceTolerance = 0) {
if (surfaceTolerance == null || surfaceTolerance < 0) {
return null;
}
this.__surfaceTolerance = [surfaceTolerance];
return this;
}
addSurfaceTolerance(surfaceTolerance = 0) {
if (surfaceTolerance == null || surfaceTolerance < 0) {
return null;
}
if (this.__surfaceTolerance == null) {
this.__surfaceTolerance = [];
}
this.__surfaceTolerance.append(surfaceTolerance);
return this;
}
removeSurfaceTolerance(surfaceTolerance) {
for( let i = 0; i < this.__surfaceTolerance.length; i++) {
if ( this.__surfaceTolerance[i] === surfaceTolerance) {
this.__surfaceTolerance.splice(i, 1);
}
}
return this.__surfaceTolerance;
}
get surfaceTolerance() {
return this.__surfaceTolerance;
}
set surfaceValues(surfaceValues = null) {
this.__surfaceValues = [surfaceValues];
return this;
}
addSurfaceValues(surfaceValues = null) {
if (this.__surfaceValues == null) {
this.__surfaceValues = [];
}
this.__surfaceValues.append(surfaceValues);
return this;
}
removeSurfaceValues(surfaceValues) {
for( let i = 0; i < this.__surfaceValues.length; i++) {
if ( this.__surfaceValues[i] === surfaceValues) {
this.__surfaceValues.splice(i, 1);
}
}
return this.__surfaceValues;
}
get surfaceValues() {
return this.__surfaceValues;
}
set visible(visible = true) {
this.__visible = [visible];
return this;
}
addVisible(visible = true) {
if (this.__visible == null) {
this.__visible = [];
}
this.__visible.append(visible);
return this;
}
removeVisible(visible) {
for( let i = 0; i < this.__visible.length; i++) {
if ( this.__visible[i] === visible) {
this.__visible.splice(i, 1);
}
}
return this.__visible;
}
get isVisible() {
return this.__visible;
}
set voxels(voxels = null) {
this.__voxels = [voxels];
return this;
}
addVoxels(voxels = null) {
if (this.__voxels == null) {
this.__voxels = [];
}
this.__voxels.append(voxels);
return this;
}
removeVoxels(voxels) {
for( let i = 0; i < this.__voxels.length; i++) {
if ( this.__voxels[i] === voxels) {
this.__voxels.splice(i, 1);
}
}
return this.__voxels;
}
get voxels() {
return this.__voxels;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__gradients === null) {
} else if (typeof this.__gradients.toXMLNode === 'function') {
str += this.__gradients.toXMLNode('gradients');
} else if (typeof this.__gradients === 'string') {
str += ' gradients="'+this.__gradients+'"';
} else if (Array.isArray( this.__gradients)) {
if (typeof this.__gradients[0].toXMLNode !== 'function') {
str += ' gradients="'+this.__gradients.join(' ')+'"';
} else {
for (let i in this.__gradients) {
if (typeof this.__gradients[i].toXMLNode === 'function') {
str += this.__gradients[i].toXMLNode('gradients');
}
}
}
} else {
str += ' gradients="'+this.__gradients+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__renderStyle === null) {
} else if (typeof this.__renderStyle.toXMLNode === 'function') {
str += this.__renderStyle.toXMLNode('renderStyle');
} else if (typeof this.__renderStyle === 'string') {
str += ' renderStyle="'+this.__renderStyle+'"';
} else if (Array.isArray( this.__renderStyle)) {
if (typeof this.__renderStyle[0].toXMLNode !== 'function') {
str += ' renderStyle="'+this.__renderStyle.join(' ')+'"';
} else {
for (let i in this.__renderStyle) {
if (typeof this.__renderStyle[i].toXMLNode === 'function') {
str += this.__renderStyle[i].toXMLNode('renderStyle');
}
}
}
} else {
str += ' renderStyle="'+this.__renderStyle+'"';
}
if (this.__voxels === null) {
} else if (typeof this.__voxels.toXMLNode === 'function') {
str += this.__voxels.toXMLNode('voxels');
} else if (typeof this.__voxels === 'string') {
str += ' voxels="'+this.__voxels+'"';
} else if (Array.isArray( this.__voxels)) {
if (typeof this.__voxels[0].toXMLNode !== 'function') {
str += ' voxels="'+this.__voxels.join(' ')+'"';
} else {
for (let i in this.__voxels) {
if (typeof this.__voxels[i].toXMLNode === 'function') {
str += this.__voxels[i].toXMLNode('voxels');
}
}
}
} else {
str += ' voxels="'+this.__voxels+'"';
}
str += ''
return str;
}
}
export class KeySensor extends X3DKeyDeviceSensorNode {
constructor(kwargs = {}) {
super(kwargs);
var actionKeyPress = kwargs["actionKeyPress"] || null;
this.__actionKeyPress = actionKeyPress;
var actionKeyRelease = kwargs["actionKeyRelease"] || null;
this.__actionKeyRelease = actionKeyRelease;
var altKey = kwargs["altKey"] || null;
this.__altKey = altKey;
var controlKey = kwargs["controlKey"] || null;
this.__controlKey = controlKey;
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var keyPress = kwargs["keyPress"] || null;
this.__keyPress = keyPress;
var keyRelease = kwargs["keyRelease"] || null;
this.__keyRelease = keyRelease;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var shiftKey = kwargs["shiftKey"] || null;
this.__shiftKey = shiftKey;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
removeActionKeyPress(actionKeyPress) {
for( let i = 0; i < this.__actionKeyPress.length; i++) {
if ( this.__actionKeyPress[i] === actionKeyPress) {
this.__actionKeyPress.splice(i, 1);
}
}
return this.__actionKeyPress;
}
get actionKeyPress() {
return this.__actionKeyPress;
}
removeActionKeyRelease(actionKeyRelease) {
for( let i = 0; i < this.__actionKeyRelease.length; i++) {
if ( this.__actionKeyRelease[i] === actionKeyRelease) {
this.__actionKeyRelease.splice(i, 1);
}
}
return this.__actionKeyRelease;
}
get actionKeyRelease() {
return this.__actionKeyRelease;
}
removeAltKey(altKey) {
for( let i = 0; i < this.__altKey.length; i++) {
if ( this.__altKey[i] === altKey) {
this.__altKey.splice(i, 1);
}
}
return this.__altKey;
}
get isAltKey() {
return this.__altKey;
}
removeControlKey(controlKey) {
for( let i = 0; i < this.__controlKey.length; i++) {
if ( this.__controlKey[i] === controlKey) {
this.__controlKey.splice(i, 1);
}
}
return this.__controlKey;
}
get isControlKey() {
return this.__controlKey;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
removeKeyPress(keyPress) {
for( let i = 0; i < this.__keyPress.length; i++) {
if ( this.__keyPress[i] === keyPress) {
this.__keyPress.splice(i, 1);
}
}
return this.__keyPress;
}
get keyPress() {
return this.__keyPress;
}
removeKeyRelease(keyRelease) {
for( let i = 0; i < this.__keyRelease.length; i++) {
if ( this.__keyRelease[i] === keyRelease) {
this.__keyRelease.splice(i, 1);
}
}
return this.__keyRelease;
}
get keyRelease() {
return this.__keyRelease;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
removeShiftKey(shiftKey) {
for( let i = 0; i < this.__shiftKey.length; i++) {
if ( this.__shiftKey[i] === shiftKey) {
this.__shiftKey.splice(i, 1);
}
}
return this.__shiftKey;
}
get isShiftKey() {
return this.__shiftKey;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class Layer extends X3DLayerNode {
constructor(kwargs = {}) {
super(kwargs);
var children_ = kwargs["children_"] || null;
this.__children_ = children_;
var children = kwargs["children"] || null;
this.__children = children;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var objectType = kwargs["objectType"] || ["ALL"];
this.__objectType = objectType;
var pickable = kwargs["pickable"] || true;
this.__pickable = pickable;
var children_ = kwargs["children_"] || null;
this.__children_ = children_;
var viewport = kwargs["viewport"] || null;
this.__viewport = viewport;
var visible = kwargs["visible"] || true;
this.__visible = visible;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
addChildren(children_ = null) {
if (this.__children_ == null) {
this.__children_ = [];
}
this.__children_.append(children_);
return this;
}
set children(children = null) {
this.__children = [children];
return this;
}
addChildren(children = null) {
if (this.__children == null) {
this.__children = [];
}
this.__children.append(children);
return this;
}
removeChildren(children) {
for( let i = 0; i < this.__children.length; i++) {
if ( this.__children[i] === children) {
this.__children.splice(i, 1);
}
}
return this.__children;
}
get children() {
return this.__children;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set objectType(objectType = ["ALL"]) {
this.__objectType = [objectType];
return this;
}
addObjectType(objectType = ["ALL"]) {
if (this.__objectType == null) {
this.__objectType = [];
}
this.__objectType.append(objectType);
return this;
}
removeObjectType(objectType) {
for( let i = 0; i < this.__objectType.length; i++) {
if ( this.__objectType[i] === objectType) {
this.__objectType.splice(i, 1);
}
}
return this.__objectType;
}
get objectType() {
return this.__objectType;
}
set pickable(pickable = true) {
this.__pickable = [pickable];
return this;
}
addPickable(pickable = true) {
if (this.__pickable == null) {
this.__pickable = [];
}
this.__pickable.append(pickable);
return this;
}
removePickable(pickable) {
for( let i = 0; i < this.__pickable.length; i++) {
if ( this.__pickable[i] === pickable) {
this.__pickable.splice(i, 1);
}
}
return this.__pickable;
}
get isPickable() {
return this.__pickable;
}
set viewport(viewport = null) {
this.__viewport = [viewport];
return this;
}
addViewport(viewport = null) {
if (this.__viewport == null) {
this.__viewport = [];
}
this.__viewport.append(viewport);
return this;
}
removeViewport(viewport) {
for( let i = 0; i < this.__viewport.length; i++) {
if ( this.__viewport[i] === viewport) {
this.__viewport.splice(i, 1);
}
}
return this.__viewport;
}
get viewport() {
return this.__viewport;
}
set visible(visible = true) {
this.__visible = [visible];
return this;
}
addVisible(visible = true) {
if (this.__visible == null) {
this.__visible = [];
}
this.__visible.append(visible);
return this;
}
removeVisible(visible) {
for( let i = 0; i < this.__visible.length; i++) {
if ( this.__visible[i] === visible) {
this.__visible.splice(i, 1);
}
}
return this.__visible;
}
get isVisible() {
return this.__visible;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__children_ === null) {
} else if (typeof this.__children_.toXMLNode === 'function') {
str += this.__children_.toXMLNode('children_');
} else if (typeof this.__children_ === 'string') {
str += ' children_="'+this.__children_+'"';
} else if (Array.isArray( this.__children_)) {
if (typeof this.__children_[0].toXMLNode !== 'function') {
str += ' children_="'+this.__children_.join(' ')+'"';
} else {
for (let i in this.__children_) {
if (typeof this.__children_[i].toXMLNode === 'function') {
str += this.__children_[i].toXMLNode('children_');
}
}
}
} else {
str += ' children_="'+this.__children_+'"';
}
if (this.__children === null) {
} else if (typeof this.__children.toXMLNode === 'function') {
str += this.__children.toXMLNode('children');
} else if (typeof this.__children === 'string') {
str += ' children="'+this.__children+'"';
} else if (Array.isArray( this.__children)) {
if (typeof this.__children[0].toXMLNode !== 'function') {
str += ' children="'+this.__children.join(' ')+'"';
} else {
for (let i in this.__children) {
if (typeof this.__children[i].toXMLNode === 'function') {
str += this.__children[i].toXMLNode('children');
}
}
}
} else {
str += ' children="'+this.__children+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__children_ === null) {
} else if (typeof this.__children_.toXMLNode === 'function') {
str += this.__children_.toXMLNode('children_');
} else if (typeof this.__children_ === 'string') {
str += ' children_="'+this.__children_+'"';
} else if (Array.isArray( this.__children_)) {
if (typeof this.__children_[0].toXMLNode !== 'function') {
str += ' children_="'+this.__children_.join(' ')+'"';
} else {
for (let i in this.__children_) {
if (typeof this.__children_[i].toXMLNode === 'function') {
str += this.__children_[i].toXMLNode('children_');
}
}
}
} else {
str += ' children_="'+this.__children_+'"';
}
if (this.__viewport === null) {
} else if (typeof this.__viewport.toXMLNode === 'function') {
str += this.__viewport.toXMLNode('viewport');
} else if (typeof this.__viewport === 'string') {
str += ' viewport="'+this.__viewport+'"';
} else if (Array.isArray( this.__viewport)) {
if (typeof this.__viewport[0].toXMLNode !== 'function') {
str += ' viewport="'+this.__viewport.join(' ')+'"';
} else {
for (let i in this.__viewport) {
if (typeof this.__viewport[i].toXMLNode === 'function') {
str += this.__viewport[i].toXMLNode('viewport');
}
}
}
} else {
str += ' viewport="'+this.__viewport+'"';
}
str += ''
return str;
}
}
export class LayerSet extends X3DNode {
constructor(kwargs = {}) {
super(kwargs);
var activeLayer = kwargs["activeLayer"] || 0;
if (activeLayer == null || activeLayer < 0) {
return null;
}
this.__activeLayer = activeLayer;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var layers = kwargs["layers"] || null;
this.__layers = layers;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var order = kwargs["order"] || [0];
if (order == null || order.length <= 0 || Math.min(order) < 0) {
return null;
}
this.__order = order;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set activeLayer(activeLayer = 0) {
if (activeLayer == null || activeLayer < 0) {
return null;
}
this.__activeLayer = [activeLayer];
return this;
}
addActiveLayer(activeLayer = 0) {
if (activeLayer == null || activeLayer < 0) {
return null;
}
if (this.__activeLayer == null) {
this.__activeLayer = [];
}
this.__activeLayer.append(activeLayer);
return this;
}
removeActiveLayer(activeLayer) {
for( let i = 0; i < this.__activeLayer.length; i++) {
if ( this.__activeLayer[i] === activeLayer) {
this.__activeLayer.splice(i, 1);
}
}
return this.__activeLayer;
}
get activeLayer() {
return this.__activeLayer;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set layers(layers = null) {
this.__layers = [layers];
return this;
}
addLayers(layers = null) {
if (this.__layers == null) {
this.__layers = [];
}
this.__layers.append(layers);
return this;
}
removeLayers(layers) {
for( let i = 0; i < this.__layers.length; i++) {
if ( this.__layers[i] === layers) {
this.__layers.splice(i, 1);
}
}
return this.__layers;
}
get layers() {
return this.__layers;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
set order(order = null) {
this.__order = [order];
return this;
}
addOrder(order = null) {
if (this.__order == null) {
this.__order = [];
}
this.__order.append(order);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__layers === null) {
} else if (typeof this.__layers.toXMLNode === 'function') {
str += this.__layers.toXMLNode('layers');
} else if (typeof this.__layers === 'string') {
str += ' layers="'+this.__layers+'"';
} else if (Array.isArray( this.__layers)) {
if (typeof this.__layers[0].toXMLNode !== 'function') {
str += ' layers="'+this.__layers.join(' ')+'"';
} else {
for (let i in this.__layers) {
if (typeof this.__layers[i].toXMLNode === 'function') {
str += this.__layers[i].toXMLNode('layers');
}
}
}
} else {
str += ' layers="'+this.__layers+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class Layout extends X3DLayoutNode {
constructor(kwargs = {}) {
super(kwargs);
var align = kwargs["align"] || ["CENTER", "CENTER"];
if ('"LEFT" "BOTTOM"' === align) {
} else if ('"LEFT" "CENTER"' === align) {
} else if ('"LEFT" "TOP"' === align) {
} else if ('"CENTER" "BOTTOM"' === align) {
} else if ('"CENTER" "CENTER"' === align) {
} else if ('"CENTER" "TOP"' === align) {
} else if ('"RIGHT" "BOTTOM"' === align) {
} else if ('"RIGHT" "CENTER"' === align) {
} else if ('"RIGHT" "TOP"' === align) {
} else {
return null;
}
this.__align = align;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var offset = kwargs["offset"] || [0, 0];
this.__offset = offset;
var offsetUnits = kwargs["offsetUnits"] || ["WORLD", "WORLD"];
if ('"WORLD" "WORLD"' === offsetUnits) {
} else if ('"WORLD" "FRACTION"' === offsetUnits) {
} else if ('"WORLD" "PIXEL"' === offsetUnits) {
} else if ('"FRACTION" "WORLD"' === offsetUnits) {
} else if ('"FRACTION" "FRACTION"' === offsetUnits) {
} else if ('"FRACTION" "PIXEL"' === offsetUnits) {
} else if ('"PIXEL" "WORLD"' === offsetUnits) {
} else if ('"PIXEL" "FRACTION"' === offsetUnits) {
} else if ('"PIXEL" "PIXEL"' === offsetUnits) {
} else {
return null;
}
this.__offsetUnits = offsetUnits;
var scaleMode = kwargs["scaleMode"] || ["NONE", "NONE"];
if ('"NONE" "NONE"' === scaleMode) {
} else if ('"NONE" "FRACTION"' === scaleMode) {
} else if ('"NONE" "STRETCH"' === scaleMode) {
} else if ('"NONE" "PIXEL"' === scaleMode) {
} else if ('"FRACTION" "NONE"' === scaleMode) {
} else if ('"FRACTION" "FRACTION"' === scaleMode) {
} else if ('"FRACTION" "STRETCH"' === scaleMode) {
} else if ('"FRACTION" "PIXEL"' === scaleMode) {
} else if ('"STRETCH" "NONE"' === scaleMode) {
} else if ('"STRETCH" "FRACTION"' === scaleMode) {
} else if ('"STRETCH" "STRETCH"' === scaleMode) {
} else if ('"STRETCH" "PIXEL"' === scaleMode) {
} else if ('"PIXEL" "NONE"' === scaleMode) {
} else if ('"PIXEL" "FRACTION"' === scaleMode) {
} else if ('"PIXEL" "STRETCH"' === scaleMode) {
} else if ('"PIXEL" "PIXEL"' === scaleMode) {
} else {
return null;
}
this.__scaleMode = scaleMode;
var size = kwargs["size"] || [1, 1];
this.__size = size;
var sizeUnits = kwargs["sizeUnits"] || ["WORLD", "WORLD"];
if ('"WORLD" "WORLD"' === sizeUnits) {
} else if ('"WORLD" "FRACTION"' === sizeUnits) {
} else if ('"WORLD" "PIXEL"' === sizeUnits) {
} else if ('"FRACTION" "WORLD"' === sizeUnits) {
} else if ('"FRACTION" "FRACTION"' === sizeUnits) {
} else if ('"FRACTION" "PIXEL"' === sizeUnits) {
} else if ('"PIXEL" "WORLD"' === sizeUnits) {
} else if ('"PIXEL" "FRACTION"' === sizeUnits) {
} else if ('"PIXEL" "PIXEL"' === sizeUnits) {
} else {
return null;
}
this.__sizeUnits = sizeUnits;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set align(align = ["CENTER", "CENTER"]) {
if ('"LEFT" "BOTTOM"' === align) {
} else if ('"LEFT" "CENTER"' === align) {
} else if ('"LEFT" "TOP"' === align) {
} else if ('"CENTER" "BOTTOM"' === align) {
} else if ('"CENTER" "CENTER"' === align) {
} else if ('"CENTER" "TOP"' === align) {
} else if ('"RIGHT" "BOTTOM"' === align) {
} else if ('"RIGHT" "CENTER"' === align) {
} else if ('"RIGHT" "TOP"' === align) {
} else {
return null;
}
this.__align = [align];
return this;
}
addAlign(align = ["CENTER", "CENTER"]) {
if ('"LEFT" "BOTTOM"' === align) {
} else if ('"LEFT" "CENTER"' === align) {
} else if ('"LEFT" "TOP"' === align) {
} else if ('"CENTER" "BOTTOM"' === align) {
} else if ('"CENTER" "CENTER"' === align) {
} else if ('"CENTER" "TOP"' === align) {
} else if ('"RIGHT" "BOTTOM"' === align) {
} else if ('"RIGHT" "CENTER"' === align) {
} else if ('"RIGHT" "TOP"' === align) {
} else {
return null;
}
if (this.__align == null) {
this.__align = [];
}
this.__align.append(align);
return this;
}
removeAlign(align) {
for( let i = 0; i < this.__align.length; i++) {
if ( this.__align[i] === align) {
this.__align.splice(i, 1);
}
}
return this.__align;
}
get align() {
return this.__align;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set offset(offset = [0, 0]) {
this.__offset = [offset];
return this;
}
addOffset(offset = [0, 0]) {
if (this.__offset == null) {
this.__offset = [];
}
this.__offset.append(offset);
return this;
}
removeOffset(offset) {
for( let i = 0; i < this.__offset.length; i++) {
if ( this.__offset[i] === offset) {
this.__offset.splice(i, 1);
}
}
return this.__offset;
}
get offset() {
return this.__offset;
}
set offsetUnits(offsetUnits = ["WORLD", "WORLD"]) {
if ('"WORLD" "WORLD"' === offsetUnits) {
} else if ('"WORLD" "FRACTION"' === offsetUnits) {
} else if ('"WORLD" "PIXEL"' === offsetUnits) {
} else if ('"FRACTION" "WORLD"' === offsetUnits) {
} else if ('"FRACTION" "FRACTION"' === offsetUnits) {
} else if ('"FRACTION" "PIXEL"' === offsetUnits) {
} else if ('"PIXEL" "WORLD"' === offsetUnits) {
} else if ('"PIXEL" "FRACTION"' === offsetUnits) {
} else if ('"PIXEL" "PIXEL"' === offsetUnits) {
} else {
return null;
}
this.__offsetUnits = [offsetUnits];
return this;
}
addOffsetUnits(offsetUnits = ["WORLD", "WORLD"]) {
if ('"WORLD" "WORLD"' === offsetUnits) {
} else if ('"WORLD" "FRACTION"' === offsetUnits) {
} else if ('"WORLD" "PIXEL"' === offsetUnits) {
} else if ('"FRACTION" "WORLD"' === offsetUnits) {
} else if ('"FRACTION" "FRACTION"' === offsetUnits) {
} else if ('"FRACTION" "PIXEL"' === offsetUnits) {
} else if ('"PIXEL" "WORLD"' === offsetUnits) {
} else if ('"PIXEL" "FRACTION"' === offsetUnits) {
} else if ('"PIXEL" "PIXEL"' === offsetUnits) {
} else {
return null;
}
if (this.__offsetUnits == null) {
this.__offsetUnits = [];
}
this.__offsetUnits.append(offsetUnits);
return this;
}
removeOffsetUnits(offsetUnits) {
for( let i = 0; i < this.__offsetUnits.length; i++) {
if ( this.__offsetUnits[i] === offsetUnits) {
this.__offsetUnits.splice(i, 1);
}
}
return this.__offsetUnits;
}
get offsetUnits() {
return this.__offsetUnits;
}
set scaleMode(scaleMode = ["NONE", "NONE"]) {
if ('"NONE" "NONE"' === scaleMode) {
} else if ('"NONE" "FRACTION"' === scaleMode) {
} else if ('"NONE" "STRETCH"' === scaleMode) {
} else if ('"NONE" "PIXEL"' === scaleMode) {
} else if ('"FRACTION" "NONE"' === scaleMode) {
} else if ('"FRACTION" "FRACTION"' === scaleMode) {
} else if ('"FRACTION" "STRETCH"' === scaleMode) {
} else if ('"FRACTION" "PIXEL"' === scaleMode) {
} else if ('"STRETCH" "NONE"' === scaleMode) {
} else if ('"STRETCH" "FRACTION"' === scaleMode) {
} else if ('"STRETCH" "STRETCH"' === scaleMode) {
} else if ('"STRETCH" "PIXEL"' === scaleMode) {
} else if ('"PIXEL" "NONE"' === scaleMode) {
} else if ('"PIXEL" "FRACTION"' === scaleMode) {
} else if ('"PIXEL" "STRETCH"' === scaleMode) {
} else if ('"PIXEL" "PIXEL"' === scaleMode) {
} else {
return null;
}
this.__scaleMode = [scaleMode];
return this;
}
addScaleMode(scaleMode = ["NONE", "NONE"]) {
if ('"NONE" "NONE"' === scaleMode) {
} else if ('"NONE" "FRACTION"' === scaleMode) {
} else if ('"NONE" "STRETCH"' === scaleMode) {
} else if ('"NONE" "PIXEL"' === scaleMode) {
} else if ('"FRACTION" "NONE"' === scaleMode) {
} else if ('"FRACTION" "FRACTION"' === scaleMode) {
} else if ('"FRACTION" "STRETCH"' === scaleMode) {
} else if ('"FRACTION" "PIXEL"' === scaleMode) {
} else if ('"STRETCH" "NONE"' === scaleMode) {
} else if ('"STRETCH" "FRACTION"' === scaleMode) {
} else if ('"STRETCH" "STRETCH"' === scaleMode) {
} else if ('"STRETCH" "PIXEL"' === scaleMode) {
} else if ('"PIXEL" "NONE"' === scaleMode) {
} else if ('"PIXEL" "FRACTION"' === scaleMode) {
} else if ('"PIXEL" "STRETCH"' === scaleMode) {
} else if ('"PIXEL" "PIXEL"' === scaleMode) {
} else {
return null;
}
if (this.__scaleMode == null) {
this.__scaleMode = [];
}
this.__scaleMode.append(scaleMode);
return this;
}
removeScaleMode(scaleMode) {
for( let i = 0; i < this.__scaleMode.length; i++) {
if ( this.__scaleMode[i] === scaleMode) {
this.__scaleMode.splice(i, 1);
}
}
return this.__scaleMode;
}
get scaleMode() {
return this.__scaleMode;
}
set sizeUnits(sizeUnits = ["WORLD", "WORLD"]) {
if ('"WORLD" "WORLD"' === sizeUnits) {
} else if ('"WORLD" "FRACTION"' === sizeUnits) {
} else if ('"WORLD" "PIXEL"' === sizeUnits) {
} else if ('"FRACTION" "WORLD"' === sizeUnits) {
} else if ('"FRACTION" "FRACTION"' === sizeUnits) {
} else if ('"FRACTION" "PIXEL"' === sizeUnits) {
} else if ('"PIXEL" "WORLD"' === sizeUnits) {
} else if ('"PIXEL" "FRACTION"' === sizeUnits) {
} else if ('"PIXEL" "PIXEL"' === sizeUnits) {
} else {
return null;
}
this.__sizeUnits = [sizeUnits];
return this;
}
addSizeUnits(sizeUnits = ["WORLD", "WORLD"]) {
if ('"WORLD" "WORLD"' === sizeUnits) {
} else if ('"WORLD" "FRACTION"' === sizeUnits) {
} else if ('"WORLD" "PIXEL"' === sizeUnits) {
} else if ('"FRACTION" "WORLD"' === sizeUnits) {
} else if ('"FRACTION" "FRACTION"' === sizeUnits) {
} else if ('"FRACTION" "PIXEL"' === sizeUnits) {
} else if ('"PIXEL" "WORLD"' === sizeUnits) {
} else if ('"PIXEL" "FRACTION"' === sizeUnits) {
} else if ('"PIXEL" "PIXEL"' === sizeUnits) {
} else {
return null;
}
if (this.__sizeUnits == null) {
this.__sizeUnits = [];
}
this.__sizeUnits.append(sizeUnits);
return this;
}
removeSizeUnits(sizeUnits) {
for( let i = 0; i < this.__sizeUnits.length; i++) {
if ( this.__sizeUnits[i] === sizeUnits) {
this.__sizeUnits.splice(i, 1);
}
}
return this.__sizeUnits;
}
get sizeUnits() {
return this.__sizeUnits;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class LayoutGroup extends X3DNode {
constructor(kwargs = {}) {
super(kwargs);
var children_ = kwargs["children_"] || null;
this.__children_ = children_;
var bboxCenter = kwargs["bboxCenter"] || [0, 0, 0];
this.__bboxCenter = bboxCenter;
var bboxSize = kwargs["bboxSize"] || [-1, -1, -1];
this.__bboxSize = bboxSize;
var children = kwargs["children"] || null;
this.__children = children;
var displayBBox = kwargs["displayBBox"] || false;
this.__displayBBox = displayBBox;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var layout = kwargs["layout"] || null;
this.__layout = layout;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var children_ = kwargs["children_"] || null;
this.__children_ = children_;
var viewport = kwargs["viewport"] || null;
this.__viewport = viewport;
var visible = kwargs["visible"] || true;
this.__visible = visible;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
addChildren(children_ = null) {
if (this.__children_ == null) {
this.__children_ = [];
}
this.__children_.append(children_);
return this;
}
set children(children = null) {
this.__children = [children];
return this;
}
addChildren(children = null) {
if (this.__children == null) {
this.__children = [];
}
this.__children.append(children);
return this;
}
removeChildren(children) {
for( let i = 0; i < this.__children.length; i++) {
if ( this.__children[i] === children) {
this.__children.splice(i, 1);
}
}
return this.__children;
}
get children() {
return this.__children;
}
set displayBBox(displayBBox = false) {
this.__displayBBox = [displayBBox];
return this;
}
addDisplayBBox(displayBBox = false) {
if (this.__displayBBox == null) {
this.__displayBBox = [];
}
this.__displayBBox.append(displayBBox);
return this;
}
removeDisplayBBox(displayBBox) {
for( let i = 0; i < this.__displayBBox.length; i++) {
if ( this.__displayBBox[i] === displayBBox) {
this.__displayBBox.splice(i, 1);
}
}
return this.__displayBBox;
}
get isDisplayBBox() {
return this.__displayBBox;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set layout(layout = null) {
this.__layout = [layout];
return this;
}
addLayout(layout = null) {
if (this.__layout == null) {
this.__layout = [];
}
this.__layout.append(layout);
return this;
}
removeLayout(layout) {
for( let i = 0; i < this.__layout.length; i++) {
if ( this.__layout[i] === layout) {
this.__layout.splice(i, 1);
}
}
return this.__layout;
}
get layout() {
return this.__layout;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set viewport(viewport = null) {
this.__viewport = [viewport];
return this;
}
addViewport(viewport = null) {
if (this.__viewport == null) {
this.__viewport = [];
}
this.__viewport.append(viewport);
return this;
}
removeViewport(viewport) {
for( let i = 0; i < this.__viewport.length; i++) {
if ( this.__viewport[i] === viewport) {
this.__viewport.splice(i, 1);
}
}
return this.__viewport;
}
get viewport() {
return this.__viewport;
}
set visible(visible = true) {
this.__visible = [visible];
return this;
}
addVisible(visible = true) {
if (this.__visible == null) {
this.__visible = [];
}
this.__visible.append(visible);
return this;
}
removeVisible(visible) {
for( let i = 0; i < this.__visible.length; i++) {
if ( this.__visible[i] === visible) {
this.__visible.splice(i, 1);
}
}
return this.__visible;
}
get isVisible() {
return this.__visible;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__children_ === null) {
} else if (typeof this.__children_.toXMLNode === 'function') {
str += this.__children_.toXMLNode('children_');
} else if (typeof this.__children_ === 'string') {
str += ' children_="'+this.__children_+'"';
} else if (Array.isArray( this.__children_)) {
if (typeof this.__children_[0].toXMLNode !== 'function') {
str += ' children_="'+this.__children_.join(' ')+'"';
} else {
for (let i in this.__children_) {
if (typeof this.__children_[i].toXMLNode === 'function') {
str += this.__children_[i].toXMLNode('children_');
}
}
}
} else {
str += ' children_="'+this.__children_+'"';
}
if (this.__children === null) {
} else if (typeof this.__children.toXMLNode === 'function') {
str += this.__children.toXMLNode('children');
} else if (typeof this.__children === 'string') {
str += ' children="'+this.__children+'"';
} else if (Array.isArray( this.__children)) {
if (typeof this.__children[0].toXMLNode !== 'function') {
str += ' children="'+this.__children.join(' ')+'"';
} else {
for (let i in this.__children) {
if (typeof this.__children[i].toXMLNode === 'function') {
str += this.__children[i].toXMLNode('children');
}
}
}
} else {
str += ' children="'+this.__children+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__layout === null) {
} else if (typeof this.__layout.toXMLNode === 'function') {
str += this.__layout.toXMLNode('layout');
} else if (typeof this.__layout === 'string') {
str += ' layout="'+this.__layout+'"';
} else if (Array.isArray( this.__layout)) {
if (typeof this.__layout[0].toXMLNode !== 'function') {
str += ' layout="'+this.__layout.join(' ')+'"';
} else {
for (let i in this.__layout) {
if (typeof this.__layout[i].toXMLNode === 'function') {
str += this.__layout[i].toXMLNode('layout');
}
}
}
} else {
str += ' layout="'+this.__layout+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__children_ === null) {
} else if (typeof this.__children_.toXMLNode === 'function') {
str += this.__children_.toXMLNode('children_');
} else if (typeof this.__children_ === 'string') {
str += ' children_="'+this.__children_+'"';
} else if (Array.isArray( this.__children_)) {
if (typeof this.__children_[0].toXMLNode !== 'function') {
str += ' children_="'+this.__children_.join(' ')+'"';
} else {
for (let i in this.__children_) {
if (typeof this.__children_[i].toXMLNode === 'function') {
str += this.__children_[i].toXMLNode('children_');
}
}
}
} else {
str += ' children_="'+this.__children_+'"';
}
if (this.__viewport === null) {
} else if (typeof this.__viewport.toXMLNode === 'function') {
str += this.__viewport.toXMLNode('viewport');
} else if (typeof this.__viewport === 'string') {
str += ' viewport="'+this.__viewport+'"';
} else if (Array.isArray( this.__viewport)) {
if (typeof this.__viewport[0].toXMLNode !== 'function') {
str += ' viewport="'+this.__viewport.join(' ')+'"';
} else {
for (let i in this.__viewport) {
if (typeof this.__viewport[i].toXMLNode === 'function') {
str += this.__viewport[i].toXMLNode('viewport');
}
}
}
} else {
str += ' viewport="'+this.__viewport+'"';
}
str += ''
return str;
}
}
export class LayoutLayer extends X3DLayerNode {
constructor(kwargs = {}) {
super(kwargs);
var children_ = kwargs["children_"] || null;
this.__children_ = children_;
var children = kwargs["children"] || null;
this.__children = children;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var layout = kwargs["layout"] || null;
this.__layout = layout;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var objectType = kwargs["objectType"] || ["ALL"];
this.__objectType = objectType;
var pickable = kwargs["pickable"] || true;
this.__pickable = pickable;
var children_ = kwargs["children_"] || null;
this.__children_ = children_;
var viewport = kwargs["viewport"] || null;
this.__viewport = viewport;
var visible = kwargs["visible"] || true;
this.__visible = visible;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
addChildren(children_ = null) {
if (this.__children_ == null) {
this.__children_ = [];
}
this.__children_.append(children_);
return this;
}
set children(children = null) {
this.__children = [children];
return this;
}
addChildren(children = null) {
if (this.__children == null) {
this.__children = [];
}
this.__children.append(children);
return this;
}
removeChildren(children) {
for( let i = 0; i < this.__children.length; i++) {
if ( this.__children[i] === children) {
this.__children.splice(i, 1);
}
}
return this.__children;
}
get children() {
return this.__children;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set layout(layout = null) {
this.__layout = [layout];
return this;
}
addLayout(layout = null) {
if (this.__layout == null) {
this.__layout = [];
}
this.__layout.append(layout);
return this;
}
removeLayout(layout) {
for( let i = 0; i < this.__layout.length; i++) {
if ( this.__layout[i] === layout) {
this.__layout.splice(i, 1);
}
}
return this.__layout;
}
get layout() {
return this.__layout;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set objectType(objectType = ["ALL"]) {
this.__objectType = [objectType];
return this;
}
addObjectType(objectType = ["ALL"]) {
if (this.__objectType == null) {
this.__objectType = [];
}
this.__objectType.append(objectType);
return this;
}
removeObjectType(objectType) {
for( let i = 0; i < this.__objectType.length; i++) {
if ( this.__objectType[i] === objectType) {
this.__objectType.splice(i, 1);
}
}
return this.__objectType;
}
get objectType() {
return this.__objectType;
}
set pickable(pickable = true) {
this.__pickable = [pickable];
return this;
}
addPickable(pickable = true) {
if (this.__pickable == null) {
this.__pickable = [];
}
this.__pickable.append(pickable);
return this;
}
removePickable(pickable) {
for( let i = 0; i < this.__pickable.length; i++) {
if ( this.__pickable[i] === pickable) {
this.__pickable.splice(i, 1);
}
}
return this.__pickable;
}
get isPickable() {
return this.__pickable;
}
set viewport(viewport = null) {
this.__viewport = [viewport];
return this;
}
addViewport(viewport = null) {
if (this.__viewport == null) {
this.__viewport = [];
}
this.__viewport.append(viewport);
return this;
}
removeViewport(viewport) {
for( let i = 0; i < this.__viewport.length; i++) {
if ( this.__viewport[i] === viewport) {
this.__viewport.splice(i, 1);
}
}
return this.__viewport;
}
get viewport() {
return this.__viewport;
}
set visible(visible = true) {
this.__visible = [visible];
return this;
}
addVisible(visible = true) {
if (this.__visible == null) {
this.__visible = [];
}
this.__visible.append(visible);
return this;
}
removeVisible(visible) {
for( let i = 0; i < this.__visible.length; i++) {
if ( this.__visible[i] === visible) {
this.__visible.splice(i, 1);
}
}
return this.__visible;
}
get isVisible() {
return this.__visible;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__children_ === null) {
} else if (typeof this.__children_.toXMLNode === 'function') {
str += this.__children_.toXMLNode('children_');
} else if (typeof this.__children_ === 'string') {
str += ' children_="'+this.__children_+'"';
} else if (Array.isArray( this.__children_)) {
if (typeof this.__children_[0].toXMLNode !== 'function') {
str += ' children_="'+this.__children_.join(' ')+'"';
} else {
for (let i in this.__children_) {
if (typeof this.__children_[i].toXMLNode === 'function') {
str += this.__children_[i].toXMLNode('children_');
}
}
}
} else {
str += ' children_="'+this.__children_+'"';
}
if (this.__children === null) {
} else if (typeof this.__children.toXMLNode === 'function') {
str += this.__children.toXMLNode('children');
} else if (typeof this.__children === 'string') {
str += ' children="'+this.__children+'"';
} else if (Array.isArray( this.__children)) {
if (typeof this.__children[0].toXMLNode !== 'function') {
str += ' children="'+this.__children.join(' ')+'"';
} else {
for (let i in this.__children) {
if (typeof this.__children[i].toXMLNode === 'function') {
str += this.__children[i].toXMLNode('children');
}
}
}
} else {
str += ' children="'+this.__children+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__layout === null) {
} else if (typeof this.__layout.toXMLNode === 'function') {
str += this.__layout.toXMLNode('layout');
} else if (typeof this.__layout === 'string') {
str += ' layout="'+this.__layout+'"';
} else if (Array.isArray( this.__layout)) {
if (typeof this.__layout[0].toXMLNode !== 'function') {
str += ' layout="'+this.__layout.join(' ')+'"';
} else {
for (let i in this.__layout) {
if (typeof this.__layout[i].toXMLNode === 'function') {
str += this.__layout[i].toXMLNode('layout');
}
}
}
} else {
str += ' layout="'+this.__layout+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__children_ === null) {
} else if (typeof this.__children_.toXMLNode === 'function') {
str += this.__children_.toXMLNode('children_');
} else if (typeof this.__children_ === 'string') {
str += ' children_="'+this.__children_+'"';
} else if (Array.isArray( this.__children_)) {
if (typeof this.__children_[0].toXMLNode !== 'function') {
str += ' children_="'+this.__children_.join(' ')+'"';
} else {
for (let i in this.__children_) {
if (typeof this.__children_[i].toXMLNode === 'function') {
str += this.__children_[i].toXMLNode('children_');
}
}
}
} else {
str += ' children_="'+this.__children_+'"';
}
if (this.__viewport === null) {
} else if (typeof this.__viewport.toXMLNode === 'function') {
str += this.__viewport.toXMLNode('viewport');
} else if (typeof this.__viewport === 'string') {
str += ' viewport="'+this.__viewport+'"';
} else if (Array.isArray( this.__viewport)) {
if (typeof this.__viewport[0].toXMLNode !== 'function') {
str += ' viewport="'+this.__viewport.join(' ')+'"';
} else {
for (let i in this.__viewport) {
if (typeof this.__viewport[i].toXMLNode === 'function') {
str += this.__viewport[i].toXMLNode('viewport');
}
}
}
} else {
str += ' viewport="'+this.__viewport+'"';
}
str += ''
return str;
}
}
export class LinePickSensor extends X3DPickSensorNode {
constructor(kwargs = {}) {
super(kwargs);
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var intersectionType = kwargs["intersectionType"] || "BOUNDS";
this.__intersectionType = intersectionType;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var matchCriterion = kwargs["matchCriterion"] || "MATCH_ANY";
if ('MATCH_ANY' === matchCriterion) {
} else if ('MATCH_EVERY' === matchCriterion) {
} else if ('MATCH_ONLY_ONE' === matchCriterion) {
} else {
return null;
}
this.__matchCriterion = matchCriterion;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var objectType = kwargs["objectType"] || ["ALL"];
this.__objectType = objectType;
var pickedGeometry = kwargs["pickedGeometry"] || null;
this.__pickedGeometry = pickedGeometry;
var pickedNormal = kwargs["pickedNormal"] || null;
this.__pickedNormal = pickedNormal;
var pickedPoint = kwargs["pickedPoint"] || null;
this.__pickedPoint = pickedPoint;
var pickedTextureCoordinate = kwargs["pickedTextureCoordinate"] || null;
this.__pickedTextureCoordinate = pickedTextureCoordinate;
var pickingGeometry = kwargs["pickingGeometry"] || null;
this.__pickingGeometry = pickingGeometry;
var pickTarget = kwargs["pickTarget"] || null;
this.__pickTarget = pickTarget;
var sortOrder = kwargs["sortOrder"] || "CLOSEST";
this.__sortOrder = sortOrder;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
set matchCriterion(matchCriterion = "MATCH_ANY") {
if ('MATCH_ANY' === matchCriterion) {
} else if ('MATCH_EVERY' === matchCriterion) {
} else if ('MATCH_ONLY_ONE' === matchCriterion) {
} else {
return null;
}
this.__matchCriterion = [matchCriterion];
return this;
}
addMatchCriterion(matchCriterion = "MATCH_ANY") {
if ('MATCH_ANY' === matchCriterion) {
} else if ('MATCH_EVERY' === matchCriterion) {
} else if ('MATCH_ONLY_ONE' === matchCriterion) {
} else {
return null;
}
if (this.__matchCriterion == null) {
this.__matchCriterion = [];
}
this.__matchCriterion.append(matchCriterion);
return this;
}
removeMatchCriterion(matchCriterion) {
for( let i = 0; i < this.__matchCriterion.length; i++) {
if ( this.__matchCriterion[i] === matchCriterion) {
this.__matchCriterion.splice(i, 1);
}
}
return this.__matchCriterion;
}
get matchCriterion() {
return this.__matchCriterion;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set objectType(objectType = ["ALL"]) {
this.__objectType = [objectType];
return this;
}
addObjectType(objectType = ["ALL"]) {
if (this.__objectType == null) {
this.__objectType = [];
}
this.__objectType.append(objectType);
return this;
}
removeObjectType(objectType) {
for( let i = 0; i < this.__objectType.length; i++) {
if ( this.__objectType[i] === objectType) {
this.__objectType.splice(i, 1);
}
}
return this.__objectType;
}
get objectType() {
return this.__objectType;
}
removePickedGeometry(pickedGeometry) {
for( let i = 0; i < this.__pickedGeometry.length; i++) {
if ( this.__pickedGeometry[i] === pickedGeometry) {
this.__pickedGeometry.splice(i, 1);
}
}
return this.__pickedGeometry;
}
get pickedGeometry() {
return this.__pickedGeometry;
}
removePickedNormal(pickedNormal) {
for( let i = 0; i < this.__pickedNormal.length; i++) {
if ( this.__pickedNormal[i] === pickedNormal) {
this.__pickedNormal.splice(i, 1);
}
}
return this.__pickedNormal;
}
get pickedNormal() {
return this.__pickedNormal;
}
removePickedPoint(pickedPoint) {
for( let i = 0; i < this.__pickedPoint.length; i++) {
if ( this.__pickedPoint[i] === pickedPoint) {
this.__pickedPoint.splice(i, 1);
}
}
return this.__pickedPoint;
}
get pickedPoint() {
return this.__pickedPoint;
}
removePickedTextureCoordinate(pickedTextureCoordinate) {
for( let i = 0; i < this.__pickedTextureCoordinate.length; i++) {
if ( this.__pickedTextureCoordinate[i] === pickedTextureCoordinate) {
this.__pickedTextureCoordinate.splice(i, 1);
}
}
return this.__pickedTextureCoordinate;
}
get pickedTextureCoordinate() {
return this.__pickedTextureCoordinate;
}
set pickingGeometry(pickingGeometry = null) {
this.__pickingGeometry = [pickingGeometry];
return this;
}
addPickingGeometry(pickingGeometry = null) {
if (this.__pickingGeometry == null) {
this.__pickingGeometry = [];
}
this.__pickingGeometry.append(pickingGeometry);
return this;
}
removePickingGeometry(pickingGeometry) {
for( let i = 0; i < this.__pickingGeometry.length; i++) {
if ( this.__pickingGeometry[i] === pickingGeometry) {
this.__pickingGeometry.splice(i, 1);
}
}
return this.__pickingGeometry;
}
get pickingGeometry() {
return this.__pickingGeometry;
}
set pickTarget(pickTarget = null) {
this.__pickTarget = [pickTarget];
return this;
}
addPickTarget(pickTarget = null) {
if (this.__pickTarget == null) {
this.__pickTarget = [];
}
this.__pickTarget.append(pickTarget);
return this;
}
removePickTarget(pickTarget) {
for( let i = 0; i < this.__pickTarget.length; i++) {
if ( this.__pickTarget[i] === pickTarget) {
this.__pickTarget.splice(i, 1);
}
}
return this.__pickTarget;
}
get pickTarget() {
return this.__pickTarget;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__pickedGeometry === null) {
} else if (typeof this.__pickedGeometry.toXMLNode === 'function') {
str += this.__pickedGeometry.toXMLNode('pickedGeometry');
} else if (typeof this.__pickedGeometry === 'string') {
str += ' pickedGeometry="'+this.__pickedGeometry+'"';
} else if (Array.isArray( this.__pickedGeometry)) {
if (typeof this.__pickedGeometry[0].toXMLNode !== 'function') {
str += ' pickedGeometry="'+this.__pickedGeometry.join(' ')+'"';
} else {
for (let i in this.__pickedGeometry) {
if (typeof this.__pickedGeometry[i].toXMLNode === 'function') {
str += this.__pickedGeometry[i].toXMLNode('pickedGeometry');
}
}
}
} else {
str += ' pickedGeometry="'+this.__pickedGeometry+'"';
}
if (this.__pickingGeometry === null) {
} else if (typeof this.__pickingGeometry.toXMLNode === 'function') {
str += this.__pickingGeometry.toXMLNode('pickingGeometry');
} else if (typeof this.__pickingGeometry === 'string') {
str += ' pickingGeometry="'+this.__pickingGeometry+'"';
} else if (Array.isArray( this.__pickingGeometry)) {
if (typeof this.__pickingGeometry[0].toXMLNode !== 'function') {
str += ' pickingGeometry="'+this.__pickingGeometry.join(' ')+'"';
} else {
for (let i in this.__pickingGeometry) {
if (typeof this.__pickingGeometry[i].toXMLNode === 'function') {
str += this.__pickingGeometry[i].toXMLNode('pickingGeometry');
}
}
}
} else {
str += ' pickingGeometry="'+this.__pickingGeometry+'"';
}
if (this.__pickTarget === null) {
} else if (typeof this.__pickTarget.toXMLNode === 'function') {
str += this.__pickTarget.toXMLNode('pickTarget');
} else if (typeof this.__pickTarget === 'string') {
str += ' pickTarget="'+this.__pickTarget+'"';
} else if (Array.isArray( this.__pickTarget)) {
if (typeof this.__pickTarget[0].toXMLNode !== 'function') {
str += ' pickTarget="'+this.__pickTarget.join(' ')+'"';
} else {
for (let i in this.__pickTarget) {
if (typeof this.__pickTarget[i].toXMLNode === 'function') {
str += this.__pickTarget[i].toXMLNode('pickTarget');
}
}
}
} else {
str += ' pickTarget="'+this.__pickTarget+'"';
}
str += ''
return str;
}
}
export class LineProperties extends X3DAppearanceChildNode {
constructor(kwargs = {}) {
super(kwargs);
var applied = kwargs["applied"] || true;
this.__applied = applied;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var linetype = kwargs["linetype"] || 1;
if (linetype == null || linetype < 1) {
return null;
}
this.__linetype = linetype;
var linewidthScaleFactor = kwargs["linewidthScaleFactor"] || 0;
this.__linewidthScaleFactor = linewidthScaleFactor;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set applied(applied = true) {
this.__applied = [applied];
return this;
}
addApplied(applied = true) {
if (this.__applied == null) {
this.__applied = [];
}
this.__applied.append(applied);
return this;
}
removeApplied(applied) {
for( let i = 0; i < this.__applied.length; i++) {
if ( this.__applied[i] === applied) {
this.__applied.splice(i, 1);
}
}
return this.__applied;
}
get isApplied() {
return this.__applied;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set linetype(linetype = 1) {
if (linetype == null || linetype < 1) {
return null;
}
this.__linetype = [linetype];
return this;
}
addLinetype(linetype = 1) {
if (linetype == null || linetype < 1) {
return null;
}
if (this.__linetype == null) {
this.__linetype = [];
}
this.__linetype.append(linetype);
return this;
}
removeLinetype(linetype) {
for( let i = 0; i < this.__linetype.length; i++) {
if ( this.__linetype[i] === linetype) {
this.__linetype.splice(i, 1);
}
}
return this.__linetype;
}
get linetype() {
return this.__linetype;
}
set linewidthScaleFactor(linewidthScaleFactor = 0) {
this.__linewidthScaleFactor = [linewidthScaleFactor];
return this;
}
addLinewidthScaleFactor(linewidthScaleFactor = 0) {
if (this.__linewidthScaleFactor == null) {
this.__linewidthScaleFactor = [];
}
this.__linewidthScaleFactor.append(linewidthScaleFactor);
return this;
}
removeLinewidthScaleFactor(linewidthScaleFactor) {
for( let i = 0; i < this.__linewidthScaleFactor.length; i++) {
if ( this.__linewidthScaleFactor[i] === linewidthScaleFactor) {
this.__linewidthScaleFactor.splice(i, 1);
}
}
return this.__linewidthScaleFactor;
}
get linewidthScaleFactor() {
return this.__linewidthScaleFactor;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class LineSet extends X3DGeometryNode {
constructor(kwargs = {}) {
super(kwargs);
var attrib = kwargs["attrib"] || null;
this.__attrib = attrib;
var color = kwargs["color"] || null;
this.__color = color;
var coord = kwargs["coord"] || null;
this.__coord = coord;
var fogCoord = kwargs["fogCoord"] || null;
this.__fogCoord = fogCoord;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var vertexCount = kwargs["vertexCount"] || null;
if (vertexCount == null || vertexCount.length <= 0 || Math.min(vertexCount) < 2) {
return null;
}
this.__vertexCount = vertexCount;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set attrib(attrib = null) {
this.__attrib = [attrib];
return this;
}
addAttrib(attrib = null) {
if (this.__attrib == null) {
this.__attrib = [];
}
this.__attrib.append(attrib);
return this;
}
removeAttrib(attrib) {
for( let i = 0; i < this.__attrib.length; i++) {
if ( this.__attrib[i] === attrib) {
this.__attrib.splice(i, 1);
}
}
return this.__attrib;
}
get attrib() {
return this.__attrib;
}
set color(color = null) {
this.__color = [color];
return this;
}
addColor(color = null) {
if (this.__color == null) {
this.__color = [];
}
this.__color.append(color);
return this;
}
removeColor(color) {
for( let i = 0; i < this.__color.length; i++) {
if ( this.__color[i] === color) {
this.__color.splice(i, 1);
}
}
return this.__color;
}
get color() {
return this.__color;
}
set coord(coord = null) {
this.__coord = [coord];
return this;
}
addCoord(coord = null) {
if (this.__coord == null) {
this.__coord = [];
}
this.__coord.append(coord);
return this;
}
removeCoord(coord) {
for( let i = 0; i < this.__coord.length; i++) {
if ( this.__coord[i] === coord) {
this.__coord.splice(i, 1);
}
}
return this.__coord;
}
get coord() {
return this.__coord;
}
set fogCoord(fogCoord = null) {
this.__fogCoord = [fogCoord];
return this;
}
addFogCoord(fogCoord = null) {
if (this.__fogCoord == null) {
this.__fogCoord = [];
}
this.__fogCoord.append(fogCoord);
return this;
}
removeFogCoord(fogCoord) {
for( let i = 0; i < this.__fogCoord.length; i++) {
if ( this.__fogCoord[i] === fogCoord) {
this.__fogCoord.splice(i, 1);
}
}
return this.__fogCoord;
}
get fogCoord() {
return this.__fogCoord;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set vertexCount(vertexCount = null) {
if (vertexCount == null || vertexCount.length <= 0 || Math.min(vertexCount) < 2) {
return null;
}
this.__vertexCount = [vertexCount];
return this;
}
addVertexCount(vertexCount = null) {
if (vertexCount == null || vertexCount.length <= 0 || Math.min(vertexCount) < 2) {
return null;
}
if (this.__vertexCount == null) {
this.__vertexCount = [];
}
this.__vertexCount.append(vertexCount);
return this;
}
removeVertexCount(vertexCount) {
for( let i = 0; i < this.__vertexCount.length; i++) {
if ( this.__vertexCount[i] === vertexCount) {
this.__vertexCount.splice(i, 1);
}
}
return this.__vertexCount;
}
get vertexCount() {
return this.__vertexCount;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__attrib === null) {
} else if (typeof this.__attrib.toXMLNode === 'function') {
str += this.__attrib.toXMLNode('attrib');
} else if (typeof this.__attrib === 'string') {
str += ' attrib="'+this.__attrib+'"';
} else if (Array.isArray( this.__attrib)) {
if (typeof this.__attrib[0].toXMLNode !== 'function') {
str += ' attrib="'+this.__attrib.join(' ')+'"';
} else {
for (let i in this.__attrib) {
if (typeof this.__attrib[i].toXMLNode === 'function') {
str += this.__attrib[i].toXMLNode('attrib');
}
}
}
} else {
str += ' attrib="'+this.__attrib+'"';
}
if (this.__color === null) {
} else if (typeof this.__color.toXMLNode === 'function') {
str += this.__color.toXMLNode('color');
} else if (typeof this.__color === 'string') {
str += ' color="'+this.__color+'"';
} else if (Array.isArray( this.__color)) {
if (typeof this.__color[0].toXMLNode !== 'function') {
str += ' color="'+this.__color.join(' ')+'"';
} else {
for (let i in this.__color) {
if (typeof this.__color[i].toXMLNode === 'function') {
str += this.__color[i].toXMLNode('color');
}
}
}
} else {
str += ' color="'+this.__color+'"';
}
if (this.__coord === null) {
} else if (typeof this.__coord.toXMLNode === 'function') {
str += this.__coord.toXMLNode('coord');
} else if (typeof this.__coord === 'string') {
str += ' coord="'+this.__coord+'"';
} else if (Array.isArray( this.__coord)) {
if (typeof this.__coord[0].toXMLNode !== 'function') {
str += ' coord="'+this.__coord.join(' ')+'"';
} else {
for (let i in this.__coord) {
if (typeof this.__coord[i].toXMLNode === 'function') {
str += this.__coord[i].toXMLNode('coord');
}
}
}
} else {
str += ' coord="'+this.__coord+'"';
}
if (this.__fogCoord === null) {
} else if (typeof this.__fogCoord.toXMLNode === 'function') {
str += this.__fogCoord.toXMLNode('fogCoord');
} else if (typeof this.__fogCoord === 'string') {
str += ' fogCoord="'+this.__fogCoord+'"';
} else if (Array.isArray( this.__fogCoord)) {
if (typeof this.__fogCoord[0].toXMLNode !== 'function') {
str += ' fogCoord="'+this.__fogCoord.join(' ')+'"';
} else {
for (let i in this.__fogCoord) {
if (typeof this.__fogCoord[i].toXMLNode === 'function') {
str += this.__fogCoord[i].toXMLNode('fogCoord');
}
}
}
} else {
str += ' fogCoord="'+this.__fogCoord+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class LoadSensor extends X3DNetworkSensorNode {
constructor(kwargs = {}) {
super(kwargs);
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var Loaded = kwargs["Loaded"] || null;
this.__Loaded = Loaded;
var loadTime = kwargs["loadTime"] || null;
this.__loadTime = loadTime;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var progress = kwargs["progress"] || null;
this.__progress = progress;
var timeOut = kwargs["timeOut"] || 0;
if (timeOut == null || timeOut < 0) {
return null;
}
this.__timeOut = timeOut;
var watchList = kwargs["watchList"] || null;
this.__watchList = watchList;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
get isLoaded() {
return this.__Loaded;
}
removeLoadTime(loadTime) {
for( let i = 0; i < this.__loadTime.length; i++) {
if ( this.__loadTime[i] === loadTime) {
this.__loadTime.splice(i, 1);
}
}
return this.__loadTime;
}
get loadTime() {
return this.__loadTime;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
removeProgress(progress) {
for( let i = 0; i < this.__progress.length; i++) {
if ( this.__progress[i] === progress) {
this.__progress.splice(i, 1);
}
}
return this.__progress;
}
get progress() {
return this.__progress;
}
set timeOut(timeOut = 0) {
if (timeOut == null || timeOut < 0) {
return null;
}
this.__timeOut = [timeOut];
return this;
}
addTimeOut(timeOut = 0) {
if (timeOut == null || timeOut < 0) {
return null;
}
if (this.__timeOut == null) {
this.__timeOut = [];
}
this.__timeOut.append(timeOut);
return this;
}
removeTimeOut(timeOut) {
for( let i = 0; i < this.__timeOut.length; i++) {
if ( this.__timeOut[i] === timeOut) {
this.__timeOut.splice(i, 1);
}
}
return this.__timeOut;
}
get timeOut() {
return this.__timeOut;
}
set watchList(watchList = null) {
this.__watchList = [watchList];
return this;
}
addWatchList(watchList = null) {
if (this.__watchList == null) {
this.__watchList = [];
}
this.__watchList.append(watchList);
return this;
}
removeWatchList(watchList) {
for( let i = 0; i < this.__watchList.length; i++) {
if ( this.__watchList[i] === watchList) {
this.__watchList.splice(i, 1);
}
}
return this.__watchList;
}
get watchList() {
return this.__watchList;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__watchList === null) {
} else if (typeof this.__watchList.toXMLNode === 'function') {
str += this.__watchList.toXMLNode('watchList');
} else if (typeof this.__watchList === 'string') {
str += ' watchList="'+this.__watchList+'"';
} else if (Array.isArray( this.__watchList)) {
if (typeof this.__watchList[0].toXMLNode !== 'function') {
str += ' watchList="'+this.__watchList.join(' ')+'"';
} else {
for (let i in this.__watchList) {
if (typeof this.__watchList[i].toXMLNode === 'function') {
str += this.__watchList[i].toXMLNode('watchList');
}
}
}
} else {
str += ' watchList="'+this.__watchList+'"';
}
str += ''
return str;
}
}
export class LocalFog extends X3DChildNode {
constructor(kwargs = {}) {
super(kwargs);
var color = kwargs["color"] || [1, 1, 1];
if (color == null || color.length <= 0 || Math.min(color) < 0) {
return null;
}
if (color == null || color.length <= 0 || Math.max(color) > 1) {
return null;
}
this.__color = color;
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var fogType = kwargs["fogType"] || "LINEAR";
if ('LINEAR' === fogType) {
} else if ('EXPONENTIAL' === fogType) {
} else {
return null;
}
this.__fogType = fogType;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var visibilityRange = kwargs["visibilityRange"] || 0;
if (visibilityRange == null || visibilityRange < 0) {
return null;
}
this.__visibilityRange = visibilityRange;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set color(color = [1, 1, 1]) {
if (color == null || color.length <= 0 || Math.min(color) < 0) {
return null;
}
if (color == null || color.length <= 0 || Math.max(color) > 1) {
return null;
}
this.__color = [color];
return this;
}
addColor(color = [1, 1, 1]) {
if (color == null || color.length <= 0 || Math.min(color) < 0) {
return null;
}
if (color == null || color.length <= 0 || Math.max(color) > 1) {
return null;
}
if (this.__color == null) {
this.__color = [];
}
this.__color.append(color);
return this;
}
removeColor(color) {
for( let i = 0; i < this.__color.length; i++) {
if ( this.__color[i] === color) {
this.__color.splice(i, 1);
}
}
return this.__color;
}
get color() {
return this.__color;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
set fogType(fogType = "LINEAR") {
if ('LINEAR' === fogType) {
} else if ('EXPONENTIAL' === fogType) {
} else {
return null;
}
this.__fogType = [fogType];
return this;
}
addFogType(fogType = "LINEAR") {
if ('LINEAR' === fogType) {
} else if ('EXPONENTIAL' === fogType) {
} else {
return null;
}
if (this.__fogType == null) {
this.__fogType = [];
}
this.__fogType.append(fogType);
return this;
}
removeFogType(fogType) {
for( let i = 0; i < this.__fogType.length; i++) {
if ( this.__fogType[i] === fogType) {
this.__fogType.splice(i, 1);
}
}
return this.__fogType;
}
get fogType() {
return this.__fogType;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set visibilityRange(visibilityRange = 0) {
if (visibilityRange == null || visibilityRange < 0) {
return null;
}
this.__visibilityRange = [visibilityRange];
return this;
}
addVisibilityRange(visibilityRange = 0) {
if (visibilityRange == null || visibilityRange < 0) {
return null;
}
if (this.__visibilityRange == null) {
this.__visibilityRange = [];
}
this.__visibilityRange.append(visibilityRange);
return this;
}
removeVisibilityRange(visibilityRange) {
for( let i = 0; i < this.__visibilityRange.length; i++) {
if ( this.__visibilityRange[i] === visibilityRange) {
this.__visibilityRange.splice(i, 1);
}
}
return this.__visibilityRange;
}
get visibilityRange() {
return this.__visibilityRange;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class LOD extends X3DGroupingNode {
constructor(kwargs = {}) {
super(kwargs);
var children_ = kwargs["children_"] || null;
this.__children_ = children_;
var bboxCenter = kwargs["bboxCenter"] || [0, 0, 0];
this.__bboxCenter = bboxCenter;
var bboxSize = kwargs["bboxSize"] || [-1, -1, -1];
this.__bboxSize = bboxSize;
var center = kwargs["center"] || [0, 0, 0];
this.__center = center;
var children = kwargs["children"] || null;
this.__children = children;
var displayBBox = kwargs["displayBBox"] || false;
this.__displayBBox = displayBBox;
var forceTransitions = kwargs["forceTransitions"] || false;
this.__forceTransitions = forceTransitions;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var level_changed = kwargs["level_changed"] || null;
if (level_changed == null || level_changed < 0) {
return null;
}
this.__level_changed = level_changed;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var range = kwargs["range"] || null;
this.__range = range;
var children_ = kwargs["children_"] || null;
this.__children_ = children_;
var visible = kwargs["visible"] || true;
this.__visible = visible;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
addChildren(children_ = null) {
if (this.__children_ == null) {
this.__children_ = [];
}
this.__children_.append(children_);
return this;
}
set children(children = null) {
this.__children = [children];
return this;
}
addChildren(children = null) {
if (this.__children == null) {
this.__children = [];
}
this.__children.append(children);
return this;
}
removeChildren(children) {
for( let i = 0; i < this.__children.length; i++) {
if ( this.__children[i] === children) {
this.__children.splice(i, 1);
}
}
return this.__children;
}
get children() {
return this.__children;
}
set displayBBox(displayBBox = false) {
this.__displayBBox = [displayBBox];
return this;
}
addDisplayBBox(displayBBox = false) {
if (this.__displayBBox == null) {
this.__displayBBox = [];
}
this.__displayBBox.append(displayBBox);
return this;
}
removeDisplayBBox(displayBBox) {
for( let i = 0; i < this.__displayBBox.length; i++) {
if ( this.__displayBBox[i] === displayBBox) {
this.__displayBBox.splice(i, 1);
}
}
return this.__displayBBox;
}
get isDisplayBBox() {
return this.__displayBBox;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
removelevel_changed(level_changed) {
for( let i = 0; i < this.__level_changed.length; i++) {
if ( this.__level_changed[i] === level_changed) {
this.__level_changed.splice(i, 1);
}
}
return this.__level_changed;
}
get level_changed() {
return this.__level_changed;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set visible(visible = true) {
this.__visible = [visible];
return this;
}
addVisible(visible = true) {
if (this.__visible == null) {
this.__visible = [];
}
this.__visible.append(visible);
return this;
}
removeVisible(visible) {
for( let i = 0; i < this.__visible.length; i++) {
if ( this.__visible[i] === visible) {
this.__visible.splice(i, 1);
}
}
return this.__visible;
}
get isVisible() {
return this.__visible;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__children_ === null) {
} else if (typeof this.__children_.toXMLNode === 'function') {
str += this.__children_.toXMLNode('children_');
} else if (typeof this.__children_ === 'string') {
str += ' children_="'+this.__children_+'"';
} else if (Array.isArray( this.__children_)) {
if (typeof this.__children_[0].toXMLNode !== 'function') {
str += ' children_="'+this.__children_.join(' ')+'"';
} else {
for (let i in this.__children_) {
if (typeof this.__children_[i].toXMLNode === 'function') {
str += this.__children_[i].toXMLNode('children_');
}
}
}
} else {
str += ' children_="'+this.__children_+'"';
}
if (this.__children === null) {
} else if (typeof this.__children.toXMLNode === 'function') {
str += this.__children.toXMLNode('children');
} else if (typeof this.__children === 'string') {
str += ' children="'+this.__children+'"';
} else if (Array.isArray( this.__children)) {
if (typeof this.__children[0].toXMLNode !== 'function') {
str += ' children="'+this.__children.join(' ')+'"';
} else {
for (let i in this.__children) {
if (typeof this.__children[i].toXMLNode === 'function') {
str += this.__children[i].toXMLNode('children');
}
}
}
} else {
str += ' children="'+this.__children+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__children_ === null) {
} else if (typeof this.__children_.toXMLNode === 'function') {
str += this.__children_.toXMLNode('children_');
} else if (typeof this.__children_ === 'string') {
str += ' children_="'+this.__children_+'"';
} else if (Array.isArray( this.__children_)) {
if (typeof this.__children_[0].toXMLNode !== 'function') {
str += ' children_="'+this.__children_.join(' ')+'"';
} else {
for (let i in this.__children_) {
if (typeof this.__children_[i].toXMLNode === 'function') {
str += this.__children_[i].toXMLNode('children_');
}
}
}
} else {
str += ' children_="'+this.__children_+'"';
}
str += ''
return str;
}
}
export class Material extends X3DMaterialNode {
constructor(kwargs = {}) {
super(kwargs);
var ambientIntensity = kwargs["ambientIntensity"] || 0.2;
if (ambientIntensity == null || ambientIntensity < 0) {
return null;
}
if (ambientIntensity == null || ambientIntensity > 1) {
return null;
}
this.__ambientIntensity = ambientIntensity;
var diffuseColor = kwargs["diffuseColor"] || [0.8, 0.8, 0.8];
if (diffuseColor == null || diffuseColor.length <= 0 || Math.min(diffuseColor) < 0) {
return null;
}
if (diffuseColor == null || diffuseColor.length <= 0 || Math.max(diffuseColor) > 1) {
return null;
}
this.__diffuseColor = diffuseColor;
var emissiveColor = kwargs["emissiveColor"] || [0, 0, 0];
if (emissiveColor == null || emissiveColor.length <= 0 || Math.min(emissiveColor) < 0) {
return null;
}
if (emissiveColor == null || emissiveColor.length <= 0 || Math.max(emissiveColor) > 1) {
return null;
}
this.__emissiveColor = emissiveColor;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var shininess = kwargs["shininess"] || 0.2;
if (shininess == null || shininess < 0) {
return null;
}
if (shininess == null || shininess > 1) {
return null;
}
this.__shininess = shininess;
var specularColor = kwargs["specularColor"] || [0, 0, 0];
if (specularColor == null || specularColor.length <= 0 || Math.min(specularColor) < 0) {
return null;
}
if (specularColor == null || specularColor.length <= 0 || Math.max(specularColor) > 1) {
return null;
}
this.__specularColor = specularColor;
var transparency = kwargs["transparency"] || 0;
if (transparency == null || transparency < 0) {
return null;
}
if (transparency == null || transparency > 1) {
return null;
}
this.__transparency = transparency;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set ambientIntensity(ambientIntensity = 0.2) {
if (ambientIntensity == null || ambientIntensity < 0) {
return null;
}
if (ambientIntensity == null || ambientIntensity > 1) {
return null;
}
this.__ambientIntensity = [ambientIntensity];
return this;
}
addAmbientIntensity(ambientIntensity = 0.2) {
if (ambientIntensity == null || ambientIntensity < 0) {
return null;
}
if (ambientIntensity == null || ambientIntensity > 1) {
return null;
}
if (this.__ambientIntensity == null) {
this.__ambientIntensity = [];
}
this.__ambientIntensity.append(ambientIntensity);
return this;
}
removeAmbientIntensity(ambientIntensity) {
for( let i = 0; i < this.__ambientIntensity.length; i++) {
if ( this.__ambientIntensity[i] === ambientIntensity) {
this.__ambientIntensity.splice(i, 1);
}
}
return this.__ambientIntensity;
}
get ambientIntensity() {
return this.__ambientIntensity;
}
set diffuseColor(diffuseColor = [0.8, 0.8, 0.8]) {
if (diffuseColor == null || diffuseColor.length <= 0 || Math.min(diffuseColor) < 0) {
return null;
}
if (diffuseColor == null || diffuseColor.length <= 0 || Math.max(diffuseColor) > 1) {
return null;
}
this.__diffuseColor = [diffuseColor];
return this;
}
addDiffuseColor(diffuseColor = [0.8, 0.8, 0.8]) {
if (diffuseColor == null || diffuseColor.length <= 0 || Math.min(diffuseColor) < 0) {
return null;
}
if (diffuseColor == null || diffuseColor.length <= 0 || Math.max(diffuseColor) > 1) {
return null;
}
if (this.__diffuseColor == null) {
this.__diffuseColor = [];
}
this.__diffuseColor.append(diffuseColor);
return this;
}
removeDiffuseColor(diffuseColor) {
for( let i = 0; i < this.__diffuseColor.length; i++) {
if ( this.__diffuseColor[i] === diffuseColor) {
this.__diffuseColor.splice(i, 1);
}
}
return this.__diffuseColor;
}
get diffuseColor() {
return this.__diffuseColor;
}
set emissiveColor(emissiveColor = [0, 0, 0]) {
if (emissiveColor == null || emissiveColor.length <= 0 || Math.min(emissiveColor) < 0) {
return null;
}
if (emissiveColor == null || emissiveColor.length <= 0 || Math.max(emissiveColor) > 1) {
return null;
}
this.__emissiveColor = [emissiveColor];
return this;
}
addEmissiveColor(emissiveColor = [0, 0, 0]) {
if (emissiveColor == null || emissiveColor.length <= 0 || Math.min(emissiveColor) < 0) {
return null;
}
if (emissiveColor == null || emissiveColor.length <= 0 || Math.max(emissiveColor) > 1) {
return null;
}
if (this.__emissiveColor == null) {
this.__emissiveColor = [];
}
this.__emissiveColor.append(emissiveColor);
return this;
}
removeEmissiveColor(emissiveColor) {
for( let i = 0; i < this.__emissiveColor.length; i++) {
if ( this.__emissiveColor[i] === emissiveColor) {
this.__emissiveColor.splice(i, 1);
}
}
return this.__emissiveColor;
}
get emissiveColor() {
return this.__emissiveColor;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set shininess(shininess = 0.2) {
if (shininess == null || shininess < 0) {
return null;
}
if (shininess == null || shininess > 1) {
return null;
}
this.__shininess = [shininess];
return this;
}
addShininess(shininess = 0.2) {
if (shininess == null || shininess < 0) {
return null;
}
if (shininess == null || shininess > 1) {
return null;
}
if (this.__shininess == null) {
this.__shininess = [];
}
this.__shininess.append(shininess);
return this;
}
removeShininess(shininess) {
for( let i = 0; i < this.__shininess.length; i++) {
if ( this.__shininess[i] === shininess) {
this.__shininess.splice(i, 1);
}
}
return this.__shininess;
}
get shininess() {
return this.__shininess;
}
set specularColor(specularColor = [0, 0, 0]) {
if (specularColor == null || specularColor.length <= 0 || Math.min(specularColor) < 0) {
return null;
}
if (specularColor == null || specularColor.length <= 0 || Math.max(specularColor) > 1) {
return null;
}
this.__specularColor = [specularColor];
return this;
}
addSpecularColor(specularColor = [0, 0, 0]) {
if (specularColor == null || specularColor.length <= 0 || Math.min(specularColor) < 0) {
return null;
}
if (specularColor == null || specularColor.length <= 0 || Math.max(specularColor) > 1) {
return null;
}
if (this.__specularColor == null) {
this.__specularColor = [];
}
this.__specularColor.append(specularColor);
return this;
}
removeSpecularColor(specularColor) {
for( let i = 0; i < this.__specularColor.length; i++) {
if ( this.__specularColor[i] === specularColor) {
this.__specularColor.splice(i, 1);
}
}
return this.__specularColor;
}
get specularColor() {
return this.__specularColor;
}
set transparency(transparency = 0) {
if (transparency == null || transparency < 0) {
return null;
}
if (transparency == null || transparency > 1) {
return null;
}
this.__transparency = [transparency];
return this;
}
addTransparency(transparency = 0) {
if (transparency == null || transparency < 0) {
return null;
}
if (transparency == null || transparency > 1) {
return null;
}
if (this.__transparency == null) {
this.__transparency = [];
}
this.__transparency.append(transparency);
return this;
}
removeTransparency(transparency) {
for( let i = 0; i < this.__transparency.length; i++) {
if ( this.__transparency[i] === transparency) {
this.__transparency.splice(i, 1);
}
}
return this.__transparency;
}
get transparency() {
return this.__transparency;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class Matrix3VertexAttribute extends X3DVertexAttributeNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var name = kwargs["name"] || null;
this.__name = name;
var value = kwargs["value"] || null;
this.__value = value;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set name(name = null) {
this.__name = [name];
return this;
}
addName(name = null) {
if (this.__name == null) {
this.__name = [];
}
this.__name.append(name);
return this;
}
removeName(name) {
for( let i = 0; i < this.__name.length; i++) {
if ( this.__name[i] === name) {
this.__name.splice(i, 1);
}
}
return this.__name;
}
get name() {
return this.__name;
}
set value(value = null) {
this.__value = [value];
return this;
}
addValue(value = null) {
if (this.__value == null) {
this.__value = [];
}
this.__value.append(value);
return this;
}
removeValue(value) {
for( let i = 0; i < this.__value.length; i++) {
if ( this.__value[i] === value) {
this.__value.splice(i, 1);
}
}
return this.__value;
}
get value() {
return this.__value;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class Matrix4VertexAttribute extends X3DVertexAttributeNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var name = kwargs["name"] || null;
this.__name = name;
var value = kwargs["value"] || null;
this.__value = value;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set name(name = null) {
this.__name = [name];
return this;
}
addName(name = null) {
if (this.__name == null) {
this.__name = [];
}
this.__name.append(name);
return this;
}
removeName(name) {
for( let i = 0; i < this.__name.length; i++) {
if ( this.__name[i] === name) {
this.__name.splice(i, 1);
}
}
return this.__name;
}
get name() {
return this.__name;
}
set value(value = null) {
this.__value = [value];
return this;
}
addValue(value = null) {
if (this.__value == null) {
this.__value = [];
}
this.__value.append(value);
return this;
}
removeValue(value) {
for( let i = 0; i < this.__value.length; i++) {
if ( this.__value[i] === value) {
this.__value.splice(i, 1);
}
}
return this.__value;
}
get value() {
return this.__value;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class MetadataBoolean extends X3DNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var name = kwargs["name"] || null;
this.__name = name;
var reference = kwargs["reference"] || null;
this.__reference = reference;
var value = kwargs["value"] || null;
this.__value = value;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set name(name = null) {
this.__name = [name];
return this;
}
addName(name = null) {
if (this.__name == null) {
this.__name = [];
}
this.__name.append(name);
return this;
}
removeName(name) {
for( let i = 0; i < this.__name.length; i++) {
if ( this.__name[i] === name) {
this.__name.splice(i, 1);
}
}
return this.__name;
}
get name() {
return this.__name;
}
set reference(reference = null) {
this.__reference = [reference];
return this;
}
addReference(reference = null) {
if (this.__reference == null) {
this.__reference = [];
}
this.__reference.append(reference);
return this;
}
removeReference(reference) {
for( let i = 0; i < this.__reference.length; i++) {
if ( this.__reference[i] === reference) {
this.__reference.splice(i, 1);
}
}
return this.__reference;
}
get reference() {
return this.__reference;
}
set value(value = null) {
this.__value = [value];
return this;
}
addValue(value = null) {
if (this.__value == null) {
this.__value = [];
}
this.__value.append(value);
return this;
}
removeValue(value) {
for( let i = 0; i < this.__value.length; i++) {
if ( this.__value[i] === value) {
this.__value.splice(i, 1);
}
}
return this.__value;
}
get value() {
return this.__value;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class MetadataDouble extends X3DNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var name = kwargs["name"] || null;
this.__name = name;
var reference = kwargs["reference"] || null;
this.__reference = reference;
var value = kwargs["value"] || null;
this.__value = value;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set name(name = null) {
this.__name = [name];
return this;
}
addName(name = null) {
if (this.__name == null) {
this.__name = [];
}
this.__name.append(name);
return this;
}
removeName(name) {
for( let i = 0; i < this.__name.length; i++) {
if ( this.__name[i] === name) {
this.__name.splice(i, 1);
}
}
return this.__name;
}
get name() {
return this.__name;
}
set reference(reference = null) {
this.__reference = [reference];
return this;
}
addReference(reference = null) {
if (this.__reference == null) {
this.__reference = [];
}
this.__reference.append(reference);
return this;
}
removeReference(reference) {
for( let i = 0; i < this.__reference.length; i++) {
if ( this.__reference[i] === reference) {
this.__reference.splice(i, 1);
}
}
return this.__reference;
}
get reference() {
return this.__reference;
}
set value(value = null) {
this.__value = [value];
return this;
}
addValue(value = null) {
if (this.__value == null) {
this.__value = [];
}
this.__value.append(value);
return this;
}
removeValue(value) {
for( let i = 0; i < this.__value.length; i++) {
if ( this.__value[i] === value) {
this.__value.splice(i, 1);
}
}
return this.__value;
}
get value() {
return this.__value;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class MetadataFloat extends X3DNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var name = kwargs["name"] || null;
this.__name = name;
var reference = kwargs["reference"] || null;
this.__reference = reference;
var value = kwargs["value"] || null;
this.__value = value;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set name(name = null) {
this.__name = [name];
return this;
}
addName(name = null) {
if (this.__name == null) {
this.__name = [];
}
this.__name.append(name);
return this;
}
removeName(name) {
for( let i = 0; i < this.__name.length; i++) {
if ( this.__name[i] === name) {
this.__name.splice(i, 1);
}
}
return this.__name;
}
get name() {
return this.__name;
}
set reference(reference = null) {
this.__reference = [reference];
return this;
}
addReference(reference = null) {
if (this.__reference == null) {
this.__reference = [];
}
this.__reference.append(reference);
return this;
}
removeReference(reference) {
for( let i = 0; i < this.__reference.length; i++) {
if ( this.__reference[i] === reference) {
this.__reference.splice(i, 1);
}
}
return this.__reference;
}
get reference() {
return this.__reference;
}
set value(value = null) {
this.__value = [value];
return this;
}
addValue(value = null) {
if (this.__value == null) {
this.__value = [];
}
this.__value.append(value);
return this;
}
removeValue(value) {
for( let i = 0; i < this.__value.length; i++) {
if ( this.__value[i] === value) {
this.__value.splice(i, 1);
}
}
return this.__value;
}
get value() {
return this.__value;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class MetadataInteger extends X3DNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var name = kwargs["name"] || null;
this.__name = name;
var reference = kwargs["reference"] || null;
this.__reference = reference;
var value = kwargs["value"] || null;
this.__value = value;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set name(name = null) {
this.__name = [name];
return this;
}
addName(name = null) {
if (this.__name == null) {
this.__name = [];
}
this.__name.append(name);
return this;
}
removeName(name) {
for( let i = 0; i < this.__name.length; i++) {
if ( this.__name[i] === name) {
this.__name.splice(i, 1);
}
}
return this.__name;
}
get name() {
return this.__name;
}
set reference(reference = null) {
this.__reference = [reference];
return this;
}
addReference(reference = null) {
if (this.__reference == null) {
this.__reference = [];
}
this.__reference.append(reference);
return this;
}
removeReference(reference) {
for( let i = 0; i < this.__reference.length; i++) {
if ( this.__reference[i] === reference) {
this.__reference.splice(i, 1);
}
}
return this.__reference;
}
get reference() {
return this.__reference;
}
set value(value = null) {
this.__value = [value];
return this;
}
addValue(value = null) {
if (this.__value == null) {
this.__value = [];
}
this.__value.append(value);
return this;
}
removeValue(value) {
for( let i = 0; i < this.__value.length; i++) {
if ( this.__value[i] === value) {
this.__value.splice(i, 1);
}
}
return this.__value;
}
get value() {
return this.__value;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class MetadataSet extends X3DNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var name = kwargs["name"] || null;
this.__name = name;
var reference = kwargs["reference"] || null;
this.__reference = reference;
var value = kwargs["value"] || null;
this.__value = value;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set name(name = null) {
this.__name = [name];
return this;
}
addName(name = null) {
if (this.__name == null) {
this.__name = [];
}
this.__name.append(name);
return this;
}
removeName(name) {
for( let i = 0; i < this.__name.length; i++) {
if ( this.__name[i] === name) {
this.__name.splice(i, 1);
}
}
return this.__name;
}
get name() {
return this.__name;
}
set reference(reference = null) {
this.__reference = [reference];
return this;
}
addReference(reference = null) {
if (this.__reference == null) {
this.__reference = [];
}
this.__reference.append(reference);
return this;
}
removeReference(reference) {
for( let i = 0; i < this.__reference.length; i++) {
if ( this.__reference[i] === reference) {
this.__reference.splice(i, 1);
}
}
return this.__reference;
}
get reference() {
return this.__reference;
}
set value(value = null) {
this.__value = [value];
return this;
}
addValue(value = null) {
if (this.__value == null) {
this.__value = [];
}
this.__value.append(value);
return this;
}
removeValue(value) {
for( let i = 0; i < this.__value.length; i++) {
if ( this.__value[i] === value) {
this.__value.splice(i, 1);
}
}
return this.__value;
}
get value() {
return this.__value;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__value === null) {
} else if (typeof this.__value.toXMLNode === 'function') {
str += this.__value.toXMLNode('value');
} else if (typeof this.__value === 'string') {
str += ' value="'+this.__value+'"';
} else if (Array.isArray( this.__value)) {
if (typeof this.__value[0].toXMLNode !== 'function') {
str += ' value="'+this.__value.join(' ')+'"';
} else {
for (let i in this.__value) {
if (typeof this.__value[i].toXMLNode === 'function') {
str += this.__value[i].toXMLNode('value');
}
}
}
} else {
str += ' value="'+this.__value+'"';
}
str += ''
return str;
}
}
export class MetadataString extends X3DNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var name = kwargs["name"] || null;
this.__name = name;
var reference = kwargs["reference"] || null;
this.__reference = reference;
var value = kwargs["value"] || null;
this.__value = value;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set name(name = null) {
this.__name = [name];
return this;
}
addName(name = null) {
if (this.__name == null) {
this.__name = [];
}
this.__name.append(name);
return this;
}
removeName(name) {
for( let i = 0; i < this.__name.length; i++) {
if ( this.__name[i] === name) {
this.__name.splice(i, 1);
}
}
return this.__name;
}
get name() {
return this.__name;
}
set reference(reference = null) {
this.__reference = [reference];
return this;
}
addReference(reference = null) {
if (this.__reference == null) {
this.__reference = [];
}
this.__reference.append(reference);
return this;
}
removeReference(reference) {
for( let i = 0; i < this.__reference.length; i++) {
if ( this.__reference[i] === reference) {
this.__reference.splice(i, 1);
}
}
return this.__reference;
}
get reference() {
return this.__reference;
}
set value(value = null) {
this.__value = [value];
return this;
}
addValue(value = null) {
if (this.__value == null) {
this.__value = [];
}
this.__value.append(value);
return this;
}
removeValue(value) {
for( let i = 0; i < this.__value.length; i++) {
if ( this.__value[i] === value) {
this.__value.splice(i, 1);
}
}
return this.__value;
}
get value() {
return this.__value;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class MotorJoint extends X3DRigidJointNode {
constructor(kwargs = {}) {
super(kwargs);
var autoCalc = kwargs["autoCalc"] || false;
this.__autoCalc = autoCalc;
var axis1Angle = kwargs["axis1Angle"] || 0;
this.__axis1Angle = axis1Angle;
var axis1Torque = kwargs["axis1Torque"] || 0;
this.__axis1Torque = axis1Torque;
var axis2Angle = kwargs["axis2Angle"] || 0;
this.__axis2Angle = axis2Angle;
var axis2Torque = kwargs["axis2Torque"] || 0;
this.__axis2Torque = axis2Torque;
var axis3Angle = kwargs["axis3Angle"] || 0;
this.__axis3Angle = axis3Angle;
var axis3Torque = kwargs["axis3Torque"] || 0;
this.__axis3Torque = axis3Torque;
var body1 = kwargs["body1"] || null;
this.__body1 = body1;
var body2 = kwargs["body2"] || null;
this.__body2 = body2;
var enabledAxes = kwargs["enabledAxes"] || 1;
if (enabledAxes == null || enabledAxes < 0) {
return null;
}
if (enabledAxes == null || enabledAxes > 3) {
return null;
}
this.__enabledAxes = enabledAxes;
var forceOutput = kwargs["forceOutput"] || ["NONE"];
this.__forceOutput = forceOutput;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var motor1Angle = kwargs["motor1Angle"] || null;
this.__motor1Angle = motor1Angle;
var motor1AngleRate = kwargs["motor1AngleRate"] || null;
this.__motor1AngleRate = motor1AngleRate;
var motor1Axis = kwargs["motor1Axis"] || [0, 0, 0];
this.__motor1Axis = motor1Axis;
var motor2Angle = kwargs["motor2Angle"] || null;
this.__motor2Angle = motor2Angle;
var motor2AngleRate = kwargs["motor2AngleRate"] || null;
this.__motor2AngleRate = motor2AngleRate;
var motor2Axis = kwargs["motor2Axis"] || [0, 0, 0];
this.__motor2Axis = motor2Axis;
var motor3Angle = kwargs["motor3Angle"] || null;
this.__motor3Angle = motor3Angle;
var motor3AngleRate = kwargs["motor3AngleRate"] || null;
this.__motor3AngleRate = motor3AngleRate;
var motor3Axis = kwargs["motor3Axis"] || [0, 0, 0];
this.__motor3Axis = motor3Axis;
var stop1Bounce = kwargs["stop1Bounce"] || 0;
this.__stop1Bounce = stop1Bounce;
var stop1ErrorCorrection = kwargs["stop1ErrorCorrection"] || 0.8;
this.__stop1ErrorCorrection = stop1ErrorCorrection;
var stop2Bounce = kwargs["stop2Bounce"] || 0;
this.__stop2Bounce = stop2Bounce;
var stop2ErrorCorrection = kwargs["stop2ErrorCorrection"] || 0.8;
this.__stop2ErrorCorrection = stop2ErrorCorrection;
var stop3Bounce = kwargs["stop3Bounce"] || 0;
this.__stop3Bounce = stop3Bounce;
var stop3ErrorCorrection = kwargs["stop3ErrorCorrection"] || 0.8;
this.__stop3ErrorCorrection = stop3ErrorCorrection;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set axis1Angle(axis1Angle = 0) {
this.__axis1Angle = [axis1Angle];
return this;
}
addAxis1Angle(axis1Angle = 0) {
if (this.__axis1Angle == null) {
this.__axis1Angle = [];
}
this.__axis1Angle.append(axis1Angle);
return this;
}
removeAxis1Angle(axis1Angle) {
for( let i = 0; i < this.__axis1Angle.length; i++) {
if ( this.__axis1Angle[i] === axis1Angle) {
this.__axis1Angle.splice(i, 1);
}
}
return this.__axis1Angle;
}
get axis1Angle() {
return this.__axis1Angle;
}
set axis1Torque(axis1Torque = 0) {
this.__axis1Torque = [axis1Torque];
return this;
}
addAxis1Torque(axis1Torque = 0) {
if (this.__axis1Torque == null) {
this.__axis1Torque = [];
}
this.__axis1Torque.append(axis1Torque);
return this;
}
removeAxis1Torque(axis1Torque) {
for( let i = 0; i < this.__axis1Torque.length; i++) {
if ( this.__axis1Torque[i] === axis1Torque) {
this.__axis1Torque.splice(i, 1);
}
}
return this.__axis1Torque;
}
get axis1Torque() {
return this.__axis1Torque;
}
set axis2Angle(axis2Angle = 0) {
this.__axis2Angle = [axis2Angle];
return this;
}
addAxis2Angle(axis2Angle = 0) {
if (this.__axis2Angle == null) {
this.__axis2Angle = [];
}
this.__axis2Angle.append(axis2Angle);
return this;
}
removeAxis2Angle(axis2Angle) {
for( let i = 0; i < this.__axis2Angle.length; i++) {
if ( this.__axis2Angle[i] === axis2Angle) {
this.__axis2Angle.splice(i, 1);
}
}
return this.__axis2Angle;
}
get axis2Angle() {
return this.__axis2Angle;
}
set axis2Torque(axis2Torque = 0) {
this.__axis2Torque = [axis2Torque];
return this;
}
addAxis2Torque(axis2Torque = 0) {
if (this.__axis2Torque == null) {
this.__axis2Torque = [];
}
this.__axis2Torque.append(axis2Torque);
return this;
}
removeAxis2Torque(axis2Torque) {
for( let i = 0; i < this.__axis2Torque.length; i++) {
if ( this.__axis2Torque[i] === axis2Torque) {
this.__axis2Torque.splice(i, 1);
}
}
return this.__axis2Torque;
}
get axis2Torque() {
return this.__axis2Torque;
}
set axis3Angle(axis3Angle = 0) {
this.__axis3Angle = [axis3Angle];
return this;
}
addAxis3Angle(axis3Angle = 0) {
if (this.__axis3Angle == null) {
this.__axis3Angle = [];
}
this.__axis3Angle.append(axis3Angle);
return this;
}
removeAxis3Angle(axis3Angle) {
for( let i = 0; i < this.__axis3Angle.length; i++) {
if ( this.__axis3Angle[i] === axis3Angle) {
this.__axis3Angle.splice(i, 1);
}
}
return this.__axis3Angle;
}
get axis3Angle() {
return this.__axis3Angle;
}
set axis3Torque(axis3Torque = 0) {
this.__axis3Torque = [axis3Torque];
return this;
}
addAxis3Torque(axis3Torque = 0) {
if (this.__axis3Torque == null) {
this.__axis3Torque = [];
}
this.__axis3Torque.append(axis3Torque);
return this;
}
removeAxis3Torque(axis3Torque) {
for( let i = 0; i < this.__axis3Torque.length; i++) {
if ( this.__axis3Torque[i] === axis3Torque) {
this.__axis3Torque.splice(i, 1);
}
}
return this.__axis3Torque;
}
get axis3Torque() {
return this.__axis3Torque;
}
set body1(body1 = null) {
this.__body1 = [body1];
return this;
}
addBody1(body1 = null) {
if (this.__body1 == null) {
this.__body1 = [];
}
this.__body1.append(body1);
return this;
}
removeBody1(body1) {
for( let i = 0; i < this.__body1.length; i++) {
if ( this.__body1[i] === body1) {
this.__body1.splice(i, 1);
}
}
return this.__body1;
}
get body1() {
return this.__body1;
}
set body2(body2 = null) {
this.__body2 = [body2];
return this;
}
addBody2(body2 = null) {
if (this.__body2 == null) {
this.__body2 = [];
}
this.__body2.append(body2);
return this;
}
removeBody2(body2) {
for( let i = 0; i < this.__body2.length; i++) {
if ( this.__body2[i] === body2) {
this.__body2.splice(i, 1);
}
}
return this.__body2;
}
get body2() {
return this.__body2;
}
set enabledAxes(enabledAxes = 1) {
if (enabledAxes == null || enabledAxes < 0) {
return null;
}
if (enabledAxes == null || enabledAxes > 3) {
return null;
}
this.__enabledAxes = [enabledAxes];
return this;
}
addEnabledAxes(enabledAxes = 1) {
if (enabledAxes == null || enabledAxes < 0) {
return null;
}
if (enabledAxes == null || enabledAxes > 3) {
return null;
}
if (this.__enabledAxes == null) {
this.__enabledAxes = [];
}
this.__enabledAxes.append(enabledAxes);
return this;
}
removeEnabledAxes(enabledAxes) {
for( let i = 0; i < this.__enabledAxes.length; i++) {
if ( this.__enabledAxes[i] === enabledAxes) {
this.__enabledAxes.splice(i, 1);
}
}
return this.__enabledAxes;
}
get enabledAxes() {
return this.__enabledAxes;
}
set forceOutput(forceOutput = ["NONE"]) {
this.__forceOutput = [forceOutput];
return this;
}
addForceOutput(forceOutput = ["NONE"]) {
if (this.__forceOutput == null) {
this.__forceOutput = [];
}
this.__forceOutput.append(forceOutput);
return this;
}
removeForceOutput(forceOutput) {
for( let i = 0; i < this.__forceOutput.length; i++) {
if ( this.__forceOutput[i] === forceOutput) {
this.__forceOutput.splice(i, 1);
}
}
return this.__forceOutput;
}
get forceOutput() {
return this.__forceOutput;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
removeMotor1Angle(motor1Angle) {
for( let i = 0; i < this.__motor1Angle.length; i++) {
if ( this.__motor1Angle[i] === motor1Angle) {
this.__motor1Angle.splice(i, 1);
}
}
return this.__motor1Angle;
}
get motor1Angle() {
return this.__motor1Angle;
}
removeMotor1AngleRate(motor1AngleRate) {
for( let i = 0; i < this.__motor1AngleRate.length; i++) {
if ( this.__motor1AngleRate[i] === motor1AngleRate) {
this.__motor1AngleRate.splice(i, 1);
}
}
return this.__motor1AngleRate;
}
get motor1AngleRate() {
return this.__motor1AngleRate;
}
set motor1Axis(motor1Axis = [0, 0, 0]) {
this.__motor1Axis = [motor1Axis];
return this;
}
addMotor1Axis(motor1Axis = [0, 0, 0]) {
if (this.__motor1Axis == null) {
this.__motor1Axis = [];
}
this.__motor1Axis.append(motor1Axis);
return this;
}
removeMotor1Axis(motor1Axis) {
for( let i = 0; i < this.__motor1Axis.length; i++) {
if ( this.__motor1Axis[i] === motor1Axis) {
this.__motor1Axis.splice(i, 1);
}
}
return this.__motor1Axis;
}
get motor1Axis() {
return this.__motor1Axis;
}
removeMotor2Angle(motor2Angle) {
for( let i = 0; i < this.__motor2Angle.length; i++) {
if ( this.__motor2Angle[i] === motor2Angle) {
this.__motor2Angle.splice(i, 1);
}
}
return this.__motor2Angle;
}
get motor2Angle() {
return this.__motor2Angle;
}
removeMotor2AngleRate(motor2AngleRate) {
for( let i = 0; i < this.__motor2AngleRate.length; i++) {
if ( this.__motor2AngleRate[i] === motor2AngleRate) {
this.__motor2AngleRate.splice(i, 1);
}
}
return this.__motor2AngleRate;
}
get motor2AngleRate() {
return this.__motor2AngleRate;
}
set motor2Axis(motor2Axis = [0, 0, 0]) {
this.__motor2Axis = [motor2Axis];
return this;
}
addMotor2Axis(motor2Axis = [0, 0, 0]) {
if (this.__motor2Axis == null) {
this.__motor2Axis = [];
}
this.__motor2Axis.append(motor2Axis);
return this;
}
removeMotor2Axis(motor2Axis) {
for( let i = 0; i < this.__motor2Axis.length; i++) {
if ( this.__motor2Axis[i] === motor2Axis) {
this.__motor2Axis.splice(i, 1);
}
}
return this.__motor2Axis;
}
get motor2Axis() {
return this.__motor2Axis;
}
removeMotor3Angle(motor3Angle) {
for( let i = 0; i < this.__motor3Angle.length; i++) {
if ( this.__motor3Angle[i] === motor3Angle) {
this.__motor3Angle.splice(i, 1);
}
}
return this.__motor3Angle;
}
get motor3Angle() {
return this.__motor3Angle;
}
removeMotor3AngleRate(motor3AngleRate) {
for( let i = 0; i < this.__motor3AngleRate.length; i++) {
if ( this.__motor3AngleRate[i] === motor3AngleRate) {
this.__motor3AngleRate.splice(i, 1);
}
}
return this.__motor3AngleRate;
}
get motor3AngleRate() {
return this.__motor3AngleRate;
}
set motor3Axis(motor3Axis = [0, 0, 0]) {
this.__motor3Axis = [motor3Axis];
return this;
}
addMotor3Axis(motor3Axis = [0, 0, 0]) {
if (this.__motor3Axis == null) {
this.__motor3Axis = [];
}
this.__motor3Axis.append(motor3Axis);
return this;
}
removeMotor3Axis(motor3Axis) {
for( let i = 0; i < this.__motor3Axis.length; i++) {
if ( this.__motor3Axis[i] === motor3Axis) {
this.__motor3Axis.splice(i, 1);
}
}
return this.__motor3Axis;
}
get motor3Axis() {
return this.__motor3Axis;
}
set stop1Bounce(stop1Bounce = 0) {
this.__stop1Bounce = [stop1Bounce];
return this;
}
addStop1Bounce(stop1Bounce = 0) {
if (this.__stop1Bounce == null) {
this.__stop1Bounce = [];
}
this.__stop1Bounce.append(stop1Bounce);
return this;
}
removeStop1Bounce(stop1Bounce) {
for( let i = 0; i < this.__stop1Bounce.length; i++) {
if ( this.__stop1Bounce[i] === stop1Bounce) {
this.__stop1Bounce.splice(i, 1);
}
}
return this.__stop1Bounce;
}
get stop1Bounce() {
return this.__stop1Bounce;
}
set stop1ErrorCorrection(stop1ErrorCorrection = 0.8) {
this.__stop1ErrorCorrection = [stop1ErrorCorrection];
return this;
}
addStop1ErrorCorrection(stop1ErrorCorrection = 0.8) {
if (this.__stop1ErrorCorrection == null) {
this.__stop1ErrorCorrection = [];
}
this.__stop1ErrorCorrection.append(stop1ErrorCorrection);
return this;
}
removeStop1ErrorCorrection(stop1ErrorCorrection) {
for( let i = 0; i < this.__stop1ErrorCorrection.length; i++) {
if ( this.__stop1ErrorCorrection[i] === stop1ErrorCorrection) {
this.__stop1ErrorCorrection.splice(i, 1);
}
}
return this.__stop1ErrorCorrection;
}
get stop1ErrorCorrection() {
return this.__stop1ErrorCorrection;
}
set stop2Bounce(stop2Bounce = 0) {
this.__stop2Bounce = [stop2Bounce];
return this;
}
addStop2Bounce(stop2Bounce = 0) {
if (this.__stop2Bounce == null) {
this.__stop2Bounce = [];
}
this.__stop2Bounce.append(stop2Bounce);
return this;
}
removeStop2Bounce(stop2Bounce) {
for( let i = 0; i < this.__stop2Bounce.length; i++) {
if ( this.__stop2Bounce[i] === stop2Bounce) {
this.__stop2Bounce.splice(i, 1);
}
}
return this.__stop2Bounce;
}
get stop2Bounce() {
return this.__stop2Bounce;
}
set stop2ErrorCorrection(stop2ErrorCorrection = 0.8) {
this.__stop2ErrorCorrection = [stop2ErrorCorrection];
return this;
}
addStop2ErrorCorrection(stop2ErrorCorrection = 0.8) {
if (this.__stop2ErrorCorrection == null) {
this.__stop2ErrorCorrection = [];
}
this.__stop2ErrorCorrection.append(stop2ErrorCorrection);
return this;
}
removeStop2ErrorCorrection(stop2ErrorCorrection) {
for( let i = 0; i < this.__stop2ErrorCorrection.length; i++) {
if ( this.__stop2ErrorCorrection[i] === stop2ErrorCorrection) {
this.__stop2ErrorCorrection.splice(i, 1);
}
}
return this.__stop2ErrorCorrection;
}
get stop2ErrorCorrection() {
return this.__stop2ErrorCorrection;
}
set stop3Bounce(stop3Bounce = 0) {
this.__stop3Bounce = [stop3Bounce];
return this;
}
addStop3Bounce(stop3Bounce = 0) {
if (this.__stop3Bounce == null) {
this.__stop3Bounce = [];
}
this.__stop3Bounce.append(stop3Bounce);
return this;
}
removeStop3Bounce(stop3Bounce) {
for( let i = 0; i < this.__stop3Bounce.length; i++) {
if ( this.__stop3Bounce[i] === stop3Bounce) {
this.__stop3Bounce.splice(i, 1);
}
}
return this.__stop3Bounce;
}
get stop3Bounce() {
return this.__stop3Bounce;
}
set stop3ErrorCorrection(stop3ErrorCorrection = 0.8) {
this.__stop3ErrorCorrection = [stop3ErrorCorrection];
return this;
}
addStop3ErrorCorrection(stop3ErrorCorrection = 0.8) {
if (this.__stop3ErrorCorrection == null) {
this.__stop3ErrorCorrection = [];
}
this.__stop3ErrorCorrection.append(stop3ErrorCorrection);
return this;
}
removeStop3ErrorCorrection(stop3ErrorCorrection) {
for( let i = 0; i < this.__stop3ErrorCorrection.length; i++) {
if ( this.__stop3ErrorCorrection[i] === stop3ErrorCorrection) {
this.__stop3ErrorCorrection.splice(i, 1);
}
}
return this.__stop3ErrorCorrection;
}
get stop3ErrorCorrection() {
return this.__stop3ErrorCorrection;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__body1 === null) {
} else if (typeof this.__body1.toXMLNode === 'function') {
str += this.__body1.toXMLNode('body1');
} else if (typeof this.__body1 === 'string') {
str += ' body1="'+this.__body1+'"';
} else if (Array.isArray( this.__body1)) {
if (typeof this.__body1[0].toXMLNode !== 'function') {
str += ' body1="'+this.__body1.join(' ')+'"';
} else {
for (let i in this.__body1) {
if (typeof this.__body1[i].toXMLNode === 'function') {
str += this.__body1[i].toXMLNode('body1');
}
}
}
} else {
str += ' body1="'+this.__body1+'"';
}
if (this.__body2 === null) {
} else if (typeof this.__body2.toXMLNode === 'function') {
str += this.__body2.toXMLNode('body2');
} else if (typeof this.__body2 === 'string') {
str += ' body2="'+this.__body2+'"';
} else if (Array.isArray( this.__body2)) {
if (typeof this.__body2[0].toXMLNode !== 'function') {
str += ' body2="'+this.__body2.join(' ')+'"';
} else {
for (let i in this.__body2) {
if (typeof this.__body2[i].toXMLNode === 'function') {
str += this.__body2[i].toXMLNode('body2');
}
}
}
} else {
str += ' body2="'+this.__body2+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class MovieTexture extends X3DSoundSourceNode {
constructor(kwargs = {}) {
super(kwargs);
var description = kwargs["description"] || null;
this.__description = description;
var duration_changed = kwargs["duration_changed"] || null;
if (duration_changed == null || duration_changed < -1) {
return null;
}
this.__duration_changed = duration_changed;
var elapsedTime = kwargs["elapsedTime"] || null;
if (elapsedTime == null || elapsedTime < 0) {
return null;
}
this.__elapsedTime = elapsedTime;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var Paused = kwargs["Paused"] || null;
this.__Paused = Paused;
var loop = kwargs["loop"] || false;
this.__loop = loop;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var pauseTime = kwargs["pauseTime"] || 0;
this.__pauseTime = pauseTime;
var pitch = kwargs["pitch"] || 1.0;
if (pitch == null || pitch <= 0) {
return null;
}
this.__pitch = pitch;
var repeatS = kwargs["repeatS"] || true;
this.__repeatS = repeatS;
var repeatT = kwargs["repeatT"] || true;
this.__repeatT = repeatT;
var resumeTime = kwargs["resumeTime"] || 0;
this.__resumeTime = resumeTime;
var speed = kwargs["speed"] || 1.0;
this.__speed = speed;
var startTime = kwargs["startTime"] || 0;
this.__startTime = startTime;
var stopTime = kwargs["stopTime"] || 0;
this.__stopTime = stopTime;
var textureProperties = kwargs["textureProperties"] || null;
this.__textureProperties = textureProperties;
var url = kwargs["url"] || null;
this.__url = url;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set description(description = null) {
this.__description = [description];
return this;
}
addDescription(description = null) {
if (this.__description == null) {
this.__description = [];
}
this.__description.append(description);
return this;
}
removeDescription(description) {
for( let i = 0; i < this.__description.length; i++) {
if ( this.__description[i] === description) {
this.__description.splice(i, 1);
}
}
return this.__description;
}
get description() {
return this.__description;
}
removeduration_changed(duration_changed) {
for( let i = 0; i < this.__duration_changed.length; i++) {
if ( this.__duration_changed[i] === duration_changed) {
this.__duration_changed.splice(i, 1);
}
}
return this.__duration_changed;
}
get duration_changed() {
return this.__duration_changed;
}
removeElapsedTime(elapsedTime) {
for( let i = 0; i < this.__elapsedTime.length; i++) {
if ( this.__elapsedTime[i] === elapsedTime) {
this.__elapsedTime.splice(i, 1);
}
}
return this.__elapsedTime;
}
get elapsedTime() {
return this.__elapsedTime;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
get isPaused() {
return this.__Paused;
}
set loop(loop = false) {
this.__loop = [loop];
return this;
}
addLoop(loop = false) {
if (this.__loop == null) {
this.__loop = [];
}
this.__loop.append(loop);
return this;
}
removeLoop(loop) {
for( let i = 0; i < this.__loop.length; i++) {
if ( this.__loop[i] === loop) {
this.__loop.splice(i, 1);
}
}
return this.__loop;
}
get isLoop() {
return this.__loop;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set pauseTime(pauseTime = 0) {
this.__pauseTime = [pauseTime];
return this;
}
addPauseTime(pauseTime = 0) {
if (this.__pauseTime == null) {
this.__pauseTime = [];
}
this.__pauseTime.append(pauseTime);
return this;
}
removePauseTime(pauseTime) {
for( let i = 0; i < this.__pauseTime.length; i++) {
if ( this.__pauseTime[i] === pauseTime) {
this.__pauseTime.splice(i, 1);
}
}
return this.__pauseTime;
}
get pauseTime() {
return this.__pauseTime;
}
set pitch(pitch = 1.0) {
if (pitch == null || pitch <= 0) {
return null;
}
this.__pitch = [pitch];
return this;
}
addPitch(pitch = 1.0) {
if (pitch == null || pitch <= 0) {
return null;
}
if (this.__pitch == null) {
this.__pitch = [];
}
this.__pitch.append(pitch);
return this;
}
removePitch(pitch) {
for( let i = 0; i < this.__pitch.length; i++) {
if ( this.__pitch[i] === pitch) {
this.__pitch.splice(i, 1);
}
}
return this.__pitch;
}
get pitch() {
return this.__pitch;
}
set resumeTime(resumeTime = 0) {
this.__resumeTime = [resumeTime];
return this;
}
addResumeTime(resumeTime = 0) {
if (this.__resumeTime == null) {
this.__resumeTime = [];
}
this.__resumeTime.append(resumeTime);
return this;
}
removeResumeTime(resumeTime) {
for( let i = 0; i < this.__resumeTime.length; i++) {
if ( this.__resumeTime[i] === resumeTime) {
this.__resumeTime.splice(i, 1);
}
}
return this.__resumeTime;
}
get resumeTime() {
return this.__resumeTime;
}
set speed(speed = 1.0) {
this.__speed = [speed];
return this;
}
addSpeed(speed = 1.0) {
if (this.__speed == null) {
this.__speed = [];
}
this.__speed.append(speed);
return this;
}
removeSpeed(speed) {
for( let i = 0; i < this.__speed.length; i++) {
if ( this.__speed[i] === speed) {
this.__speed.splice(i, 1);
}
}
return this.__speed;
}
get speed() {
return this.__speed;
}
set startTime(startTime = 0) {
this.__startTime = [startTime];
return this;
}
addStartTime(startTime = 0) {
if (this.__startTime == null) {
this.__startTime = [];
}
this.__startTime.append(startTime);
return this;
}
removeStartTime(startTime) {
for( let i = 0; i < this.__startTime.length; i++) {
if ( this.__startTime[i] === startTime) {
this.__startTime.splice(i, 1);
}
}
return this.__startTime;
}
get startTime() {
return this.__startTime;
}
set stopTime(stopTime = 0) {
this.__stopTime = [stopTime];
return this;
}
addStopTime(stopTime = 0) {
if (this.__stopTime == null) {
this.__stopTime = [];
}
this.__stopTime.append(stopTime);
return this;
}
removeStopTime(stopTime) {
for( let i = 0; i < this.__stopTime.length; i++) {
if ( this.__stopTime[i] === stopTime) {
this.__stopTime.splice(i, 1);
}
}
return this.__stopTime;
}
get stopTime() {
return this.__stopTime;
}
set url(url = null) {
this.__url = [url];
return this;
}
addUrl(url = null) {
if (this.__url == null) {
this.__url = [];
}
this.__url.append(url);
return this;
}
removeUrl(url) {
for( let i = 0; i < this.__url.length; i++) {
if ( this.__url[i] === url) {
this.__url.splice(i, 1);
}
}
return this.__url;
}
get url() {
return this.__url;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__textureProperties === null) {
} else if (typeof this.__textureProperties.toXMLNode === 'function') {
str += this.__textureProperties.toXMLNode('textureProperties');
} else if (typeof this.__textureProperties === 'string') {
str += ' textureProperties="'+this.__textureProperties+'"';
} else if (Array.isArray( this.__textureProperties)) {
if (typeof this.__textureProperties[0].toXMLNode !== 'function') {
str += ' textureProperties="'+this.__textureProperties.join(' ')+'"';
} else {
for (let i in this.__textureProperties) {
if (typeof this.__textureProperties[i].toXMLNode === 'function') {
str += this.__textureProperties[i].toXMLNode('textureProperties');
}
}
}
} else {
str += ' textureProperties="'+this.__textureProperties+'"';
}
str += ''
return str;
}
}
export class MultiTexture extends X3DTextureNode {
constructor(kwargs = {}) {
super(kwargs);
var alpha = kwargs["alpha"] || 1;
if (alpha == null || alpha < 0) {
return null;
}
if (alpha == null || alpha > 1) {
return null;
}
this.__alpha = alpha;
var color = kwargs["color"] || [1, 1, 1];
if (color == null || color.length <= 0 || Math.min(color) < 0) {
return null;
}
if (color == null || color.length <= 0 || Math.max(color) > 1) {
return null;
}
this.__color = color;
var function_ = kwargs["function_"] || null;
this.__function_ = function_;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var mode = kwargs["mode"] || null;
this.__mode = mode;
var source = kwargs["source"] || null;
this.__source = source;
var texture = kwargs["texture"] || null;
this.__texture = texture;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set alpha(alpha = 1) {
if (alpha == null || alpha < 0) {
return null;
}
if (alpha == null || alpha > 1) {
return null;
}
this.__alpha = [alpha];
return this;
}
addAlpha(alpha = 1) {
if (alpha == null || alpha < 0) {
return null;
}
if (alpha == null || alpha > 1) {
return null;
}
if (this.__alpha == null) {
this.__alpha = [];
}
this.__alpha.append(alpha);
return this;
}
removeAlpha(alpha) {
for( let i = 0; i < this.__alpha.length; i++) {
if ( this.__alpha[i] === alpha) {
this.__alpha.splice(i, 1);
}
}
return this.__alpha;
}
get alpha() {
return this.__alpha;
}
set color(color = [1, 1, 1]) {
if (color == null || color.length <= 0 || Math.min(color) < 0) {
return null;
}
if (color == null || color.length <= 0 || Math.max(color) > 1) {
return null;
}
this.__color = [color];
return this;
}
addColor(color = [1, 1, 1]) {
if (color == null || color.length <= 0 || Math.min(color) < 0) {
return null;
}
if (color == null || color.length <= 0 || Math.max(color) > 1) {
return null;
}
if (this.__color == null) {
this.__color = [];
}
this.__color.append(color);
return this;
}
removeColor(color) {
for( let i = 0; i < this.__color.length; i++) {
if ( this.__color[i] === color) {
this.__color.splice(i, 1);
}
}
return this.__color;
}
get color() {
return this.__color;
}
set function(function_ = null) {
this.__function_ = [function_];
return this;
}
addFunction(function_ = null) {
if (this.__function_ == null) {
this.__function_ = [];
}
this.__function_.append(function_);
return this;
}
removeFunction(function_) {
for( let i = 0; i < this.__function_.length; i++) {
if ( this.__function_[i] === function_) {
this.__function_.splice(i, 1);
}
}
return this.__function_;
}
get function() {
return this.__function_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set mode(mode = null) {
this.__mode = [mode];
return this;
}
addMode(mode = null) {
if (this.__mode == null) {
this.__mode = [];
}
this.__mode.append(mode);
return this;
}
removeMode(mode) {
for( let i = 0; i < this.__mode.length; i++) {
if ( this.__mode[i] === mode) {
this.__mode.splice(i, 1);
}
}
return this.__mode;
}
get mode() {
return this.__mode;
}
set source(source = null) {
this.__source = [source];
return this;
}
addSource(source = null) {
if (this.__source == null) {
this.__source = [];
}
this.__source.append(source);
return this;
}
removeSource(source) {
for( let i = 0; i < this.__source.length; i++) {
if ( this.__source[i] === source) {
this.__source.splice(i, 1);
}
}
return this.__source;
}
get source() {
return this.__source;
}
set texture(texture = null) {
this.__texture = [texture];
return this;
}
addTexture(texture = null) {
if (this.__texture == null) {
this.__texture = [];
}
this.__texture.append(texture);
return this;
}
removeTexture(texture) {
for( let i = 0; i < this.__texture.length; i++) {
if ( this.__texture[i] === texture) {
this.__texture.splice(i, 1);
}
}
return this.__texture;
}
get texture() {
return this.__texture;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__texture === null) {
} else if (typeof this.__texture.toXMLNode === 'function') {
str += this.__texture.toXMLNode('texture');
} else if (typeof this.__texture === 'string') {
str += ' texture="'+this.__texture+'"';
} else if (Array.isArray( this.__texture)) {
if (typeof this.__texture[0].toXMLNode !== 'function') {
str += ' texture="'+this.__texture.join(' ')+'"';
} else {
for (let i in this.__texture) {
if (typeof this.__texture[i].toXMLNode === 'function') {
str += this.__texture[i].toXMLNode('texture');
}
}
}
} else {
str += ' texture="'+this.__texture+'"';
}
str += ''
return str;
}
}
export class MultiTextureCoordinate extends X3DTextureCoordinateNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var texCoord = kwargs["texCoord"] || null;
this.__texCoord = texCoord;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set texCoord(texCoord = null) {
this.__texCoord = [texCoord];
return this;
}
addTexCoord(texCoord = null) {
if (this.__texCoord == null) {
this.__texCoord = [];
}
this.__texCoord.append(texCoord);
return this;
}
removeTexCoord(texCoord) {
for( let i = 0; i < this.__texCoord.length; i++) {
if ( this.__texCoord[i] === texCoord) {
this.__texCoord.splice(i, 1);
}
}
return this.__texCoord;
}
get texCoord() {
return this.__texCoord;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__texCoord === null) {
} else if (typeof this.__texCoord.toXMLNode === 'function') {
str += this.__texCoord.toXMLNode('texCoord');
} else if (typeof this.__texCoord === 'string') {
str += ' texCoord="'+this.__texCoord+'"';
} else if (Array.isArray( this.__texCoord)) {
if (typeof this.__texCoord[0].toXMLNode !== 'function') {
str += ' texCoord="'+this.__texCoord.join(' ')+'"';
} else {
for (let i in this.__texCoord) {
if (typeof this.__texCoord[i].toXMLNode === 'function') {
str += this.__texCoord[i].toXMLNode('texCoord');
}
}
}
} else {
str += ' texCoord="'+this.__texCoord+'"';
}
str += ''
return str;
}
}
export class MultiTextureTransform extends X3DTextureTransformNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var textureTransform = kwargs["textureTransform"] || null;
this.__textureTransform = textureTransform;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set textureTransform(textureTransform = null) {
this.__textureTransform = [textureTransform];
return this;
}
addTextureTransform(textureTransform = null) {
if (this.__textureTransform == null) {
this.__textureTransform = [];
}
this.__textureTransform.append(textureTransform);
return this;
}
removeTextureTransform(textureTransform) {
for( let i = 0; i < this.__textureTransform.length; i++) {
if ( this.__textureTransform[i] === textureTransform) {
this.__textureTransform.splice(i, 1);
}
}
return this.__textureTransform;
}
get textureTransform() {
return this.__textureTransform;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__textureTransform === null) {
} else if (typeof this.__textureTransform.toXMLNode === 'function') {
str += this.__textureTransform.toXMLNode('textureTransform');
} else if (typeof this.__textureTransform === 'string') {
str += ' textureTransform="'+this.__textureTransform+'"';
} else if (Array.isArray( this.__textureTransform)) {
if (typeof this.__textureTransform[0].toXMLNode !== 'function') {
str += ' textureTransform="'+this.__textureTransform.join(' ')+'"';
} else {
for (let i in this.__textureTransform) {
if (typeof this.__textureTransform[i].toXMLNode === 'function') {
str += this.__textureTransform[i].toXMLNode('textureTransform');
}
}
}
} else {
str += ' textureTransform="'+this.__textureTransform+'"';
}
str += ''
return str;
}
}
export class NavigationInfo extends X3DBindableNode {
constructor(kwargs = {}) {
super(kwargs);
var avatarSize = kwargs["avatarSize"] || [0.25, 1.6, 0.75];
if (avatarSize == null || avatarSize.length <= 0 || Math.min(avatarSize) < 0) {
return null;
}
this.__avatarSize = avatarSize;
var bindTime = kwargs["bindTime"] || null;
this.__bindTime = bindTime;
var headlight = kwargs["headlight"] || true;
this.__headlight = headlight;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Bound = kwargs["Bound"] || null;
this.__Bound = Bound;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var bind = kwargs["bind"] || null;
this.__bind = bind;
var speed = kwargs["speed"] || 1;
if (speed == null || speed < 0) {
return null;
}
this.__speed = speed;
var transitionComplete = kwargs["transitionComplete"] || null;
this.__transitionComplete = transitionComplete;
var transitionTime = kwargs["transitionTime"] || 1.0;
if (transitionTime == null || transitionTime < 0) {
return null;
}
this.__transitionTime = transitionTime;
var transitionType = kwargs["transitionType"] || ["LINEAR"];
this.__transitionType = transitionType;
var type = kwargs["type"] || ["EXAMINE", "ANY"];
this.__type = type;
var visibilityLimit = kwargs["visibilityLimit"] || 0;
if (visibilityLimit == null || visibilityLimit < 0) {
return null;
}
this.__visibilityLimit = visibilityLimit;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set avatarSize(avatarSize = [0.25, 1.6, 0.75]) {
if (avatarSize == null || avatarSize.length <= 0 || Math.min(avatarSize) < 0) {
return null;
}
this.__avatarSize = [avatarSize];
return this;
}
addAvatarSize(avatarSize = [0.25, 1.6, 0.75]) {
if (avatarSize == null || avatarSize.length <= 0 || Math.min(avatarSize) < 0) {
return null;
}
if (this.__avatarSize == null) {
this.__avatarSize = [];
}
this.__avatarSize.append(avatarSize);
return this;
}
removeAvatarSize(avatarSize) {
for( let i = 0; i < this.__avatarSize.length; i++) {
if ( this.__avatarSize[i] === avatarSize) {
this.__avatarSize.splice(i, 1);
}
}
return this.__avatarSize;
}
get avatarSize() {
return this.__avatarSize;
}
removeBindTime(bindTime) {
for( let i = 0; i < this.__bindTime.length; i++) {
if ( this.__bindTime[i] === bindTime) {
this.__bindTime.splice(i, 1);
}
}
return this.__bindTime;
}
get bindTime() {
return this.__bindTime;
}
set headlight(headlight = true) {
this.__headlight = [headlight];
return this;
}
addHeadlight(headlight = true) {
if (this.__headlight == null) {
this.__headlight = [];
}
this.__headlight.append(headlight);
return this;
}
removeHeadlight(headlight) {
for( let i = 0; i < this.__headlight.length; i++) {
if ( this.__headlight[i] === headlight) {
this.__headlight.splice(i, 1);
}
}
return this.__headlight;
}
get isHeadlight() {
return this.__headlight;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isBound() {
return this.__Bound;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set set_bind(bind = null) {
this.__bind = [bind];
return this;
}
set speed(speed = 1) {
if (speed == null || speed < 0) {
return null;
}
this.__speed = [speed];
return this;
}
addSpeed(speed = 1) {
if (speed == null || speed < 0) {
return null;
}
if (this.__speed == null) {
this.__speed = [];
}
this.__speed.append(speed);
return this;
}
removeSpeed(speed) {
for( let i = 0; i < this.__speed.length; i++) {
if ( this.__speed[i] === speed) {
this.__speed.splice(i, 1);
}
}
return this.__speed;
}
get speed() {
return this.__speed;
}
removeTransitionComplete(transitionComplete) {
for( let i = 0; i < this.__transitionComplete.length; i++) {
if ( this.__transitionComplete[i] === transitionComplete) {
this.__transitionComplete.splice(i, 1);
}
}
return this.__transitionComplete;
}
get isTransitionComplete() {
return this.__transitionComplete;
}
set transitionTime(transitionTime = 1.0) {
if (transitionTime == null || transitionTime < 0) {
return null;
}
this.__transitionTime = [transitionTime];
return this;
}
addTransitionTime(transitionTime = 1.0) {
if (transitionTime == null || transitionTime < 0) {
return null;
}
if (this.__transitionTime == null) {
this.__transitionTime = [];
}
this.__transitionTime.append(transitionTime);
return this;
}
removeTransitionTime(transitionTime) {
for( let i = 0; i < this.__transitionTime.length; i++) {
if ( this.__transitionTime[i] === transitionTime) {
this.__transitionTime.splice(i, 1);
}
}
return this.__transitionTime;
}
get transitionTime() {
return this.__transitionTime;
}
set transitionType(transitionType = ["LINEAR"]) {
this.__transitionType = [transitionType];
return this;
}
addTransitionType(transitionType = ["LINEAR"]) {
if (this.__transitionType == null) {
this.__transitionType = [];
}
this.__transitionType.append(transitionType);
return this;
}
removeTransitionType(transitionType) {
for( let i = 0; i < this.__transitionType.length; i++) {
if ( this.__transitionType[i] === transitionType) {
this.__transitionType.splice(i, 1);
}
}
return this.__transitionType;
}
get transitionType() {
return this.__transitionType;
}
set type(type = ["EXAMINE", "ANY"]) {
this.__type = [type];
return this;
}
addType(type = ["EXAMINE", "ANY"]) {
if (this.__type == null) {
this.__type = [];
}
this.__type.append(type);
return this;
}
removeType(type) {
for( let i = 0; i < this.__type.length; i++) {
if ( this.__type[i] === type) {
this.__type.splice(i, 1);
}
}
return this.__type;
}
get type() {
return this.__type;
}
set visibilityLimit(visibilityLimit = 0) {
if (visibilityLimit == null || visibilityLimit < 0) {
return null;
}
this.__visibilityLimit = [visibilityLimit];
return this;
}
addVisibilityLimit(visibilityLimit = 0) {
if (visibilityLimit == null || visibilityLimit < 0) {
return null;
}
if (this.__visibilityLimit == null) {
this.__visibilityLimit = [];
}
this.__visibilityLimit.append(visibilityLimit);
return this;
}
removeVisibilityLimit(visibilityLimit) {
for( let i = 0; i < this.__visibilityLimit.length; i++) {
if ( this.__visibilityLimit[i] === visibilityLimit) {
this.__visibilityLimit.splice(i, 1);
}
}
return this.__visibilityLimit;
}
get visibilityLimit() {
return this.__visibilityLimit;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class Normal extends X3DNormalNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var vector = kwargs["vector"] || null;
if (vector == null || vector.length <= 0 || Math.min(vector) < -1) {
return null;
}
if (vector == null || vector.length <= 0 || Math.max(vector) > 1) {
return null;
}
this.__vector = vector;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set vector(vector = null) {
if (vector == null || vector.length <= 0 || Math.min(vector) < -1) {
return null;
}
if (vector == null || vector.length <= 0 || Math.max(vector) > 1) {
return null;
}
this.__vector = [vector];
return this;
}
addVector(vector = null) {
if (vector == null || vector.length <= 0 || Math.min(vector) < -1) {
return null;
}
if (vector == null || vector.length <= 0 || Math.max(vector) > 1) {
return null;
}
if (this.__vector == null) {
this.__vector = [];
}
this.__vector.append(vector);
return this;
}
removeVector(vector) {
for( let i = 0; i < this.__vector.length; i++) {
if ( this.__vector[i] === vector) {
this.__vector.splice(i, 1);
}
}
return this.__vector;
}
get vector() {
return this.__vector;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class NormalInterpolator extends X3DInterpolatorNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var key = kwargs["key"] || null;
this.__key = key;
var keyValue = kwargs["keyValue"] || null;
this.__keyValue = keyValue;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var fraction = kwargs["fraction"] || null;
this.__fraction = fraction;
var value_changed = kwargs["value_changed"] || null;
this.__value_changed = value_changed;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set key(key = null) {
this.__key = [key];
return this;
}
addKey(key = null) {
if (this.__key == null) {
this.__key = [];
}
this.__key.append(key);
return this;
}
removeKey(key) {
for( let i = 0; i < this.__key.length; i++) {
if ( this.__key[i] === key) {
this.__key.splice(i, 1);
}
}
return this.__key;
}
get key() {
return this.__key;
}
set keyValue(keyValue = null) {
this.__keyValue = [keyValue];
return this;
}
addKeyValue(keyValue = null) {
if (this.__keyValue == null) {
this.__keyValue = [];
}
this.__keyValue.append(keyValue);
return this;
}
removeKeyValue(keyValue) {
for( let i = 0; i < this.__keyValue.length; i++) {
if ( this.__keyValue[i] === keyValue) {
this.__keyValue.splice(i, 1);
}
}
return this.__keyValue;
}
get keyValue() {
return this.__keyValue;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set set_fraction(fraction = null) {
this.__fraction = [fraction];
return this;
}
removevalue_changed(value_changed) {
for( let i = 0; i < this.__value_changed.length; i++) {
if ( this.__value_changed[i] === value_changed) {
this.__value_changed.splice(i, 1);
}
}
return this.__value_changed;
}
get value_changed() {
return this.__value_changed;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class NurbsCurve extends X3DParametricGeometryNode {
constructor(kwargs = {}) {
super(kwargs);
var closed = kwargs["closed"] || false;
this.__closed = closed;
var controlPoint = kwargs["controlPoint"] || null;
this.__controlPoint = controlPoint;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var knot = kwargs["knot"] || null;
this.__knot = knot;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var order = kwargs["order"] || 3;
if (order == null || order < 2) {
return null;
}
this.__order = order;
var tessellation = kwargs["tessellation"] || 0;
this.__tessellation = tessellation;
var weight = kwargs["weight"] || null;
if (weight == null || weight.length <= 0 || Math.min(weight) <= 0) {
return null;
}
this.__weight = weight;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set controlPoint(controlPoint = null) {
this.__controlPoint = [controlPoint];
return this;
}
addControlPoint(controlPoint = null) {
if (this.__controlPoint == null) {
this.__controlPoint = [];
}
this.__controlPoint.append(controlPoint);
return this;
}
removeControlPoint(controlPoint) {
for( let i = 0; i < this.__controlPoint.length; i++) {
if ( this.__controlPoint[i] === controlPoint) {
this.__controlPoint.splice(i, 1);
}
}
return this.__controlPoint;
}
get controlPoint() {
return this.__controlPoint;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set tessellation(tessellation = 0) {
this.__tessellation = [tessellation];
return this;
}
addTessellation(tessellation = 0) {
if (this.__tessellation == null) {
this.__tessellation = [];
}
this.__tessellation.append(tessellation);
return this;
}
removeTessellation(tessellation) {
for( let i = 0; i < this.__tessellation.length; i++) {
if ( this.__tessellation[i] === tessellation) {
this.__tessellation.splice(i, 1);
}
}
return this.__tessellation;
}
get tessellation() {
return this.__tessellation;
}
set weight(weight = null) {
if (weight == null || weight.length <= 0 || Math.min(weight) <= 0) {
return null;
}
this.__weight = [weight];
return this;
}
addWeight(weight = null) {
if (weight == null || weight.length <= 0 || Math.min(weight) <= 0) {
return null;
}
if (this.__weight == null) {
this.__weight = [];
}
this.__weight.append(weight);
return this;
}
removeWeight(weight) {
for( let i = 0; i < this.__weight.length; i++) {
if ( this.__weight[i] === weight) {
this.__weight.splice(i, 1);
}
}
return this.__weight;
}
get weight() {
return this.__weight;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__controlPoint === null) {
} else if (typeof this.__controlPoint.toXMLNode === 'function') {
str += this.__controlPoint.toXMLNode('controlPoint');
} else if (typeof this.__controlPoint === 'string') {
str += ' controlPoint="'+this.__controlPoint+'"';
} else if (Array.isArray( this.__controlPoint)) {
if (typeof this.__controlPoint[0].toXMLNode !== 'function') {
str += ' controlPoint="'+this.__controlPoint.join(' ')+'"';
} else {
for (let i in this.__controlPoint) {
if (typeof this.__controlPoint[i].toXMLNode === 'function') {
str += this.__controlPoint[i].toXMLNode('controlPoint');
}
}
}
} else {
str += ' controlPoint="'+this.__controlPoint+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class NurbsCurve2D extends X3DNurbsControlCurveNode {
constructor(kwargs = {}) {
super(kwargs);
var closed = kwargs["closed"] || false;
this.__closed = closed;
var controlPoint = kwargs["controlPoint"] || null;
this.__controlPoint = controlPoint;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var knot = kwargs["knot"] || null;
this.__knot = knot;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var order = kwargs["order"] || 3;
if (order == null || order < 2) {
return null;
}
this.__order = order;
var tessellation = kwargs["tessellation"] || 0;
this.__tessellation = tessellation;
var weight = kwargs["weight"] || null;
if (weight == null || weight.length <= 0 || Math.min(weight) <= 0) {
return null;
}
this.__weight = weight;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set controlPoint(controlPoint = null) {
this.__controlPoint = [controlPoint];
return this;
}
addControlPoint(controlPoint = null) {
if (this.__controlPoint == null) {
this.__controlPoint = [];
}
this.__controlPoint.append(controlPoint);
return this;
}
removeControlPoint(controlPoint) {
for( let i = 0; i < this.__controlPoint.length; i++) {
if ( this.__controlPoint[i] === controlPoint) {
this.__controlPoint.splice(i, 1);
}
}
return this.__controlPoint;
}
get controlPoint() {
return this.__controlPoint;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set tessellation(tessellation = 0) {
this.__tessellation = [tessellation];
return this;
}
addTessellation(tessellation = 0) {
if (this.__tessellation == null) {
this.__tessellation = [];
}
this.__tessellation.append(tessellation);
return this;
}
removeTessellation(tessellation) {
for( let i = 0; i < this.__tessellation.length; i++) {
if ( this.__tessellation[i] === tessellation) {
this.__tessellation.splice(i, 1);
}
}
return this.__tessellation;
}
get tessellation() {
return this.__tessellation;
}
set weight(weight = null) {
if (weight == null || weight.length <= 0 || Math.min(weight) <= 0) {
return null;
}
this.__weight = [weight];
return this;
}
addWeight(weight = null) {
if (weight == null || weight.length <= 0 || Math.min(weight) <= 0) {
return null;
}
if (this.__weight == null) {
this.__weight = [];
}
this.__weight.append(weight);
return this;
}
removeWeight(weight) {
for( let i = 0; i < this.__weight.length; i++) {
if ( this.__weight[i] === weight) {
this.__weight.splice(i, 1);
}
}
return this.__weight;
}
get weight() {
return this.__weight;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class NurbsOrientationInterpolator extends X3DChildNode {
constructor(kwargs = {}) {
super(kwargs);
var controlPoint = kwargs["controlPoint"] || null;
this.__controlPoint = controlPoint;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var knot = kwargs["knot"] || null;
this.__knot = knot;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var order = kwargs["order"] || 3;
if (order == null || order < 2) {
return null;
}
this.__order = order;
var fraction = kwargs["fraction"] || null;
this.__fraction = fraction;
var value_changed = kwargs["value_changed"] || null;
this.__value_changed = value_changed;
var weight = kwargs["weight"] || null;
this.__weight = weight;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set controlPoint(controlPoint = null) {
this.__controlPoint = [controlPoint];
return this;
}
addControlPoint(controlPoint = null) {
if (this.__controlPoint == null) {
this.__controlPoint = [];
}
this.__controlPoint.append(controlPoint);
return this;
}
removeControlPoint(controlPoint) {
for( let i = 0; i < this.__controlPoint.length; i++) {
if ( this.__controlPoint[i] === controlPoint) {
this.__controlPoint.splice(i, 1);
}
}
return this.__controlPoint;
}
get controlPoint() {
return this.__controlPoint;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set order(order = 3) {
if (order == null || order < 2) {
return null;
}
this.__order = [order];
return this;
}
addOrder(order = 3) {
if (order == null || order < 2) {
return null;
}
if (this.__order == null) {
this.__order = [];
}
this.__order.append(order);
return this;
}
removeOrder(order) {
for( let i = 0; i < this.__order.length; i++) {
if ( this.__order[i] === order) {
this.__order.splice(i, 1);
}
}
return this.__order;
}
get order() {
return this.__order;
}
set set_fraction(fraction = null) {
this.__fraction = [fraction];
return this;
}
removevalue_changed(value_changed) {
for( let i = 0; i < this.__value_changed.length; i++) {
if ( this.__value_changed[i] === value_changed) {
this.__value_changed.splice(i, 1);
}
}
return this.__value_changed;
}
get value_changed() {
return this.__value_changed;
}
set weight(weight = null) {
this.__weight = [weight];
return this;
}
addWeight(weight = null) {
if (this.__weight == null) {
this.__weight = [];
}
this.__weight.append(weight);
return this;
}
removeWeight(weight) {
for( let i = 0; i < this.__weight.length; i++) {
if ( this.__weight[i] === weight) {
this.__weight.splice(i, 1);
}
}
return this.__weight;
}
get weight() {
return this.__weight;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__controlPoint === null) {
} else if (typeof this.__controlPoint.toXMLNode === 'function') {
str += this.__controlPoint.toXMLNode('controlPoint');
} else if (typeof this.__controlPoint === 'string') {
str += ' controlPoint="'+this.__controlPoint+'"';
} else if (Array.isArray( this.__controlPoint)) {
if (typeof this.__controlPoint[0].toXMLNode !== 'function') {
str += ' controlPoint="'+this.__controlPoint.join(' ')+'"';
} else {
for (let i in this.__controlPoint) {
if (typeof this.__controlPoint[i].toXMLNode === 'function') {
str += this.__controlPoint[i].toXMLNode('controlPoint');
}
}
}
} else {
str += ' controlPoint="'+this.__controlPoint+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class NurbsPatchSurface extends X3DNurbsSurfaceGeometryNode {
constructor(kwargs = {}) {
super(kwargs);
var controlPoint = kwargs["controlPoint"] || null;
this.__controlPoint = controlPoint;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var solid = kwargs["solid"] || true;
this.__solid = solid;
var texCoord = kwargs["texCoord"] || null;
this.__texCoord = texCoord;
var uClosed = kwargs["uClosed"] || false;
this.__uClosed = uClosed;
var uDimension = kwargs["uDimension"] || 0;
if (uDimension == null || uDimension < 0) {
return null;
}
this.__uDimension = uDimension;
var uKnot = kwargs["uKnot"] || null;
this.__uKnot = uKnot;
var uOrder = kwargs["uOrder"] || 3;
if (uOrder == null || uOrder < 2) {
return null;
}
this.__uOrder = uOrder;
var uTessellation = kwargs["uTessellation"] || 0;
this.__uTessellation = uTessellation;
var vClosed = kwargs["vClosed"] || false;
this.__vClosed = vClosed;
var vDimension = kwargs["vDimension"] || 0;
if (vDimension == null || vDimension < 0) {
return null;
}
this.__vDimension = vDimension;
var vKnot = kwargs["vKnot"] || null;
this.__vKnot = vKnot;
var vOrder = kwargs["vOrder"] || 3;
if (vOrder == null || vOrder < 2) {
return null;
}
this.__vOrder = vOrder;
var vTessellation = kwargs["vTessellation"] || 0;
this.__vTessellation = vTessellation;
var weight = kwargs["weight"] || null;
if (weight == null || weight.length <= 0 || Math.min(weight) <= 0) {
return null;
}
this.__weight = weight;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set controlPoint(controlPoint = null) {
this.__controlPoint = [controlPoint];
return this;
}
addControlPoint(controlPoint = null) {
if (this.__controlPoint == null) {
this.__controlPoint = [];
}
this.__controlPoint.append(controlPoint);
return this;
}
removeControlPoint(controlPoint) {
for( let i = 0; i < this.__controlPoint.length; i++) {
if ( this.__controlPoint[i] === controlPoint) {
this.__controlPoint.splice(i, 1);
}
}
return this.__controlPoint;
}
get controlPoint() {
return this.__controlPoint;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set texCoord(texCoord = null) {
this.__texCoord = [texCoord];
return this;
}
addTexCoord(texCoord = null) {
if (this.__texCoord == null) {
this.__texCoord = [];
}
this.__texCoord.append(texCoord);
return this;
}
removeTexCoord(texCoord) {
for( let i = 0; i < this.__texCoord.length; i++) {
if ( this.__texCoord[i] === texCoord) {
this.__texCoord.splice(i, 1);
}
}
return this.__texCoord;
}
get texCoord() {
return this.__texCoord;
}
set uTessellation(uTessellation = 0) {
this.__uTessellation = [uTessellation];
return this;
}
addUTessellation(uTessellation = 0) {
if (this.__uTessellation == null) {
this.__uTessellation = [];
}
this.__uTessellation.append(uTessellation);
return this;
}
removeUTessellation(uTessellation) {
for( let i = 0; i < this.__uTessellation.length; i++) {
if ( this.__uTessellation[i] === uTessellation) {
this.__uTessellation.splice(i, 1);
}
}
return this.__uTessellation;
}
get uTessellation() {
return this.__uTessellation;
}
set vTessellation(vTessellation = 0) {
this.__vTessellation = [vTessellation];
return this;
}
addVTessellation(vTessellation = 0) {
if (this.__vTessellation == null) {
this.__vTessellation = [];
}
this.__vTessellation.append(vTessellation);
return this;
}
removeVTessellation(vTessellation) {
for( let i = 0; i < this.__vTessellation.length; i++) {
if ( this.__vTessellation[i] === vTessellation) {
this.__vTessellation.splice(i, 1);
}
}
return this.__vTessellation;
}
get vTessellation() {
return this.__vTessellation;
}
set weight(weight = null) {
if (weight == null || weight.length <= 0 || Math.min(weight) <= 0) {
return null;
}
this.__weight = [weight];
return this;
}
addWeight(weight = null) {
if (weight == null || weight.length <= 0 || Math.min(weight) <= 0) {
return null;
}
if (this.__weight == null) {
this.__weight = [];
}
this.__weight.append(weight);
return this;
}
removeWeight(weight) {
for( let i = 0; i < this.__weight.length; i++) {
if ( this.__weight[i] === weight) {
this.__weight.splice(i, 1);
}
}
return this.__weight;
}
get weight() {
return this.__weight;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__controlPoint === null) {
} else if (typeof this.__controlPoint.toXMLNode === 'function') {
str += this.__controlPoint.toXMLNode('controlPoint');
} else if (typeof this.__controlPoint === 'string') {
str += ' controlPoint="'+this.__controlPoint+'"';
} else if (Array.isArray( this.__controlPoint)) {
if (typeof this.__controlPoint[0].toXMLNode !== 'function') {
str += ' controlPoint="'+this.__controlPoint.join(' ')+'"';
} else {
for (let i in this.__controlPoint) {
if (typeof this.__controlPoint[i].toXMLNode === 'function') {
str += this.__controlPoint[i].toXMLNode('controlPoint');
}
}
}
} else {
str += ' controlPoint="'+this.__controlPoint+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__texCoord === null) {
} else if (typeof this.__texCoord.toXMLNode === 'function') {
str += this.__texCoord.toXMLNode('texCoord');
} else if (typeof this.__texCoord === 'string') {
str += ' texCoord="'+this.__texCoord+'"';
} else if (Array.isArray( this.__texCoord)) {
if (typeof this.__texCoord[0].toXMLNode !== 'function') {
str += ' texCoord="'+this.__texCoord.join(' ')+'"';
} else {
for (let i in this.__texCoord) {
if (typeof this.__texCoord[i].toXMLNode === 'function') {
str += this.__texCoord[i].toXMLNode('texCoord');
}
}
}
} else {
str += ' texCoord="'+this.__texCoord+'"';
}
str += ''
return str;
}
}
export class NurbsPositionInterpolator extends X3DChildNode {
constructor(kwargs = {}) {
super(kwargs);
var controlPoint = kwargs["controlPoint"] || null;
this.__controlPoint = controlPoint;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var knot = kwargs["knot"] || null;
this.__knot = knot;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var order = kwargs["order"] || 3;
if (order == null || order < 2) {
return null;
}
this.__order = order;
var fraction = kwargs["fraction"] || null;
this.__fraction = fraction;
var value_changed = kwargs["value_changed"] || null;
this.__value_changed = value_changed;
var weight = kwargs["weight"] || null;
this.__weight = weight;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set controlPoint(controlPoint = null) {
this.__controlPoint = [controlPoint];
return this;
}
addControlPoint(controlPoint = null) {
if (this.__controlPoint == null) {
this.__controlPoint = [];
}
this.__controlPoint.append(controlPoint);
return this;
}
removeControlPoint(controlPoint) {
for( let i = 0; i < this.__controlPoint.length; i++) {
if ( this.__controlPoint[i] === controlPoint) {
this.__controlPoint.splice(i, 1);
}
}
return this.__controlPoint;
}
get controlPoint() {
return this.__controlPoint;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set order(order = 3) {
if (order == null || order < 2) {
return null;
}
this.__order = [order];
return this;
}
addOrder(order = 3) {
if (order == null || order < 2) {
return null;
}
if (this.__order == null) {
this.__order = [];
}
this.__order.append(order);
return this;
}
removeOrder(order) {
for( let i = 0; i < this.__order.length; i++) {
if ( this.__order[i] === order) {
this.__order.splice(i, 1);
}
}
return this.__order;
}
get order() {
return this.__order;
}
set set_fraction(fraction = null) {
this.__fraction = [fraction];
return this;
}
removevalue_changed(value_changed) {
for( let i = 0; i < this.__value_changed.length; i++) {
if ( this.__value_changed[i] === value_changed) {
this.__value_changed.splice(i, 1);
}
}
return this.__value_changed;
}
get value_changed() {
return this.__value_changed;
}
set weight(weight = null) {
this.__weight = [weight];
return this;
}
addWeight(weight = null) {
if (this.__weight == null) {
this.__weight = [];
}
this.__weight.append(weight);
return this;
}
removeWeight(weight) {
for( let i = 0; i < this.__weight.length; i++) {
if ( this.__weight[i] === weight) {
this.__weight.splice(i, 1);
}
}
return this.__weight;
}
get weight() {
return this.__weight;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__controlPoint === null) {
} else if (typeof this.__controlPoint.toXMLNode === 'function') {
str += this.__controlPoint.toXMLNode('controlPoint');
} else if (typeof this.__controlPoint === 'string') {
str += ' controlPoint="'+this.__controlPoint+'"';
} else if (Array.isArray( this.__controlPoint)) {
if (typeof this.__controlPoint[0].toXMLNode !== 'function') {
str += ' controlPoint="'+this.__controlPoint.join(' ')+'"';
} else {
for (let i in this.__controlPoint) {
if (typeof this.__controlPoint[i].toXMLNode === 'function') {
str += this.__controlPoint[i].toXMLNode('controlPoint');
}
}
}
} else {
str += ' controlPoint="'+this.__controlPoint+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class NurbsSet extends X3DChildNode {
constructor(kwargs = {}) {
super(kwargs);
var Geometry = kwargs["Geometry"] || null;
this.__Geometry = Geometry;
var bboxCenter = kwargs["bboxCenter"] || [0, 0, 0];
this.__bboxCenter = bboxCenter;
var bboxSize = kwargs["bboxSize"] || [-1, -1, -1];
this.__bboxSize = bboxSize;
var displayBBox = kwargs["displayBBox"] || false;
this.__displayBBox = displayBBox;
var geometry = kwargs["geometry"] || null;
this.__geometry = geometry;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var Geometry = kwargs["Geometry"] || null;
this.__Geometry = Geometry;
var tessellationScale = kwargs["tessellationScale"] || 1.0;
if (tessellationScale == null || tessellationScale <= 0) {
return null;
}
this.__tessellationScale = tessellationScale;
var visible = kwargs["visible"] || true;
this.__visible = visible;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
addGeometry(Geometry = null) {
if (this.__Geometry == null) {
this.__Geometry = [];
}
this.__Geometry.append(Geometry);
return this;
}
set displayBBox(displayBBox = false) {
this.__displayBBox = [displayBBox];
return this;
}
addDisplayBBox(displayBBox = false) {
if (this.__displayBBox == null) {
this.__displayBBox = [];
}
this.__displayBBox.append(displayBBox);
return this;
}
removeDisplayBBox(displayBBox) {
for( let i = 0; i < this.__displayBBox.length; i++) {
if ( this.__displayBBox[i] === displayBBox) {
this.__displayBBox.splice(i, 1);
}
}
return this.__displayBBox;
}
get isDisplayBBox() {
return this.__displayBBox;
}
set geometry(geometry = null) {
this.__geometry = [geometry];
return this;
}
addGeometry(geometry = null) {
if (this.__geometry == null) {
this.__geometry = [];
}
this.__geometry.append(geometry);
return this;
}
removeGeometry(geometry) {
for( let i = 0; i < this.__geometry.length; i++) {
if ( this.__geometry[i] === geometry) {
this.__geometry.splice(i, 1);
}
}
return this.__geometry;
}
get geometry() {
return this.__geometry;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set tessellationScale(tessellationScale = 1.0) {
if (tessellationScale == null || tessellationScale <= 0) {
return null;
}
this.__tessellationScale = [tessellationScale];
return this;
}
addTessellationScale(tessellationScale = 1.0) {
if (tessellationScale == null || tessellationScale <= 0) {
return null;
}
if (this.__tessellationScale == null) {
this.__tessellationScale = [];
}
this.__tessellationScale.append(tessellationScale);
return this;
}
removeTessellationScale(tessellationScale) {
for( let i = 0; i < this.__tessellationScale.length; i++) {
if ( this.__tessellationScale[i] === tessellationScale) {
this.__tessellationScale.splice(i, 1);
}
}
return this.__tessellationScale;
}
get tessellationScale() {
return this.__tessellationScale;
}
set visible(visible = true) {
this.__visible = [visible];
return this;
}
addVisible(visible = true) {
if (this.__visible == null) {
this.__visible = [];
}
this.__visible.append(visible);
return this;
}
removeVisible(visible) {
for( let i = 0; i < this.__visible.length; i++) {
if ( this.__visible[i] === visible) {
this.__visible.splice(i, 1);
}
}
return this.__visible;
}
get isVisible() {
return this.__visible;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__Geometry === null) {
} else if (typeof this.__Geometry.toXMLNode === 'function') {
str += this.__Geometry.toXMLNode('Geometry');
} else if (typeof this.__Geometry === 'string') {
str += ' Geometry="'+this.__Geometry+'"';
} else if (Array.isArray( this.__Geometry)) {
if (typeof this.__Geometry[0].toXMLNode !== 'function') {
str += ' Geometry="'+this.__Geometry.join(' ')+'"';
} else {
for (let i in this.__Geometry) {
if (typeof this.__Geometry[i].toXMLNode === 'function') {
str += this.__Geometry[i].toXMLNode('Geometry');
}
}
}
} else {
str += ' Geometry="'+this.__Geometry+'"';
}
if (this.__geometry === null) {
} else if (typeof this.__geometry.toXMLNode === 'function') {
str += this.__geometry.toXMLNode('geometry');
} else if (typeof this.__geometry === 'string') {
str += ' geometry="'+this.__geometry+'"';
} else if (Array.isArray( this.__geometry)) {
if (typeof this.__geometry[0].toXMLNode !== 'function') {
str += ' geometry="'+this.__geometry.join(' ')+'"';
} else {
for (let i in this.__geometry) {
if (typeof this.__geometry[i].toXMLNode === 'function') {
str += this.__geometry[i].toXMLNode('geometry');
}
}
}
} else {
str += ' geometry="'+this.__geometry+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__Geometry === null) {
} else if (typeof this.__Geometry.toXMLNode === 'function') {
str += this.__Geometry.toXMLNode('Geometry');
} else if (typeof this.__Geometry === 'string') {
str += ' Geometry="'+this.__Geometry+'"';
} else if (Array.isArray( this.__Geometry)) {
if (typeof this.__Geometry[0].toXMLNode !== 'function') {
str += ' Geometry="'+this.__Geometry.join(' ')+'"';
} else {
for (let i in this.__Geometry) {
if (typeof this.__Geometry[i].toXMLNode === 'function') {
str += this.__Geometry[i].toXMLNode('Geometry');
}
}
}
} else {
str += ' Geometry="'+this.__Geometry+'"';
}
str += ''
return str;
}
}
export class NurbsSurfaceInterpolator extends X3DChildNode {
constructor(kwargs = {}) {
super(kwargs);
var controlPoint = kwargs["controlPoint"] || null;
this.__controlPoint = controlPoint;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var normal_changed = kwargs["normal_changed"] || null;
this.__normal_changed = normal_changed;
var position_changed = kwargs["position_changed"] || null;
this.__position_changed = position_changed;
var fraction = kwargs["fraction"] || null;
this.__fraction = fraction;
var uDimension = kwargs["uDimension"] || 0;
if (uDimension == null || uDimension < 0) {
return null;
}
this.__uDimension = uDimension;
var uKnot = kwargs["uKnot"] || null;
this.__uKnot = uKnot;
var uOrder = kwargs["uOrder"] || 3;
if (uOrder == null || uOrder < 2) {
return null;
}
this.__uOrder = uOrder;
var vDimension = kwargs["vDimension"] || 0;
if (vDimension == null || vDimension < 0) {
return null;
}
this.__vDimension = vDimension;
var vKnot = kwargs["vKnot"] || null;
this.__vKnot = vKnot;
var vOrder = kwargs["vOrder"] || 3;
if (vOrder == null || vOrder < 2) {
return null;
}
this.__vOrder = vOrder;
var weight = kwargs["weight"] || null;
this.__weight = weight;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set controlPoint(controlPoint = null) {
this.__controlPoint = [controlPoint];
return this;
}
addControlPoint(controlPoint = null) {
if (this.__controlPoint == null) {
this.__controlPoint = [];
}
this.__controlPoint.append(controlPoint);
return this;
}
removeControlPoint(controlPoint) {
for( let i = 0; i < this.__controlPoint.length; i++) {
if ( this.__controlPoint[i] === controlPoint) {
this.__controlPoint.splice(i, 1);
}
}
return this.__controlPoint;
}
get controlPoint() {
return this.__controlPoint;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
removenormal_changed(normal_changed) {
for( let i = 0; i < this.__normal_changed.length; i++) {
if ( this.__normal_changed[i] === normal_changed) {
this.__normal_changed.splice(i, 1);
}
}
return this.__normal_changed;
}
get normal_changed() {
return this.__normal_changed;
}
removeposition_changed(position_changed) {
for( let i = 0; i < this.__position_changed.length; i++) {
if ( this.__position_changed[i] === position_changed) {
this.__position_changed.splice(i, 1);
}
}
return this.__position_changed;
}
get position_changed() {
return this.__position_changed;
}
set set_fraction(fraction = null) {
this.__fraction = [fraction];
return this;
}
set weight(weight = null) {
this.__weight = [weight];
return this;
}
addWeight(weight = null) {
if (this.__weight == null) {
this.__weight = [];
}
this.__weight.append(weight);
return this;
}
removeWeight(weight) {
for( let i = 0; i < this.__weight.length; i++) {
if ( this.__weight[i] === weight) {
this.__weight.splice(i, 1);
}
}
return this.__weight;
}
get weight() {
return this.__weight;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__controlPoint === null) {
} else if (typeof this.__controlPoint.toXMLNode === 'function') {
str += this.__controlPoint.toXMLNode('controlPoint');
} else if (typeof this.__controlPoint === 'string') {
str += ' controlPoint="'+this.__controlPoint+'"';
} else if (Array.isArray( this.__controlPoint)) {
if (typeof this.__controlPoint[0].toXMLNode !== 'function') {
str += ' controlPoint="'+this.__controlPoint.join(' ')+'"';
} else {
for (let i in this.__controlPoint) {
if (typeof this.__controlPoint[i].toXMLNode === 'function') {
str += this.__controlPoint[i].toXMLNode('controlPoint');
}
}
}
} else {
str += ' controlPoint="'+this.__controlPoint+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class NurbsSweptSurface extends X3DParametricGeometryNode {
constructor(kwargs = {}) {
super(kwargs);
var ccw = kwargs["ccw"] || true;
this.__ccw = ccw;
var crossSectionCurve = kwargs["crossSectionCurve"] || null;
this.__crossSectionCurve = crossSectionCurve;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var solid = kwargs["solid"] || true;
this.__solid = solid;
var trajectoryCurve = kwargs["trajectoryCurve"] || null;
this.__trajectoryCurve = trajectoryCurve;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set crossSectionCurve(crossSectionCurve = null) {
this.__crossSectionCurve = [crossSectionCurve];
return this;
}
addCrossSectionCurve(crossSectionCurve = null) {
if (this.__crossSectionCurve == null) {
this.__crossSectionCurve = [];
}
this.__crossSectionCurve.append(crossSectionCurve);
return this;
}
removeCrossSectionCurve(crossSectionCurve) {
for( let i = 0; i < this.__crossSectionCurve.length; i++) {
if ( this.__crossSectionCurve[i] === crossSectionCurve) {
this.__crossSectionCurve.splice(i, 1);
}
}
return this.__crossSectionCurve;
}
get crossSectionCurve() {
return this.__crossSectionCurve;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set trajectoryCurve(trajectoryCurve = null) {
this.__trajectoryCurve = [trajectoryCurve];
return this;
}
addTrajectoryCurve(trajectoryCurve = null) {
if (this.__trajectoryCurve == null) {
this.__trajectoryCurve = [];
}
this.__trajectoryCurve.append(trajectoryCurve);
return this;
}
removeTrajectoryCurve(trajectoryCurve) {
for( let i = 0; i < this.__trajectoryCurve.length; i++) {
if ( this.__trajectoryCurve[i] === trajectoryCurve) {
this.__trajectoryCurve.splice(i, 1);
}
}
return this.__trajectoryCurve;
}
get trajectoryCurve() {
return this.__trajectoryCurve;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__crossSectionCurve === null) {
} else if (typeof this.__crossSectionCurve.toXMLNode === 'function') {
str += this.__crossSectionCurve.toXMLNode('crossSectionCurve');
} else if (typeof this.__crossSectionCurve === 'string') {
str += ' crossSectionCurve="'+this.__crossSectionCurve+'"';
} else if (Array.isArray( this.__crossSectionCurve)) {
if (typeof this.__crossSectionCurve[0].toXMLNode !== 'function') {
str += ' crossSectionCurve="'+this.__crossSectionCurve.join(' ')+'"';
} else {
for (let i in this.__crossSectionCurve) {
if (typeof this.__crossSectionCurve[i].toXMLNode === 'function') {
str += this.__crossSectionCurve[i].toXMLNode('crossSectionCurve');
}
}
}
} else {
str += ' crossSectionCurve="'+this.__crossSectionCurve+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__trajectoryCurve === null) {
} else if (typeof this.__trajectoryCurve.toXMLNode === 'function') {
str += this.__trajectoryCurve.toXMLNode('trajectoryCurve');
} else if (typeof this.__trajectoryCurve === 'string') {
str += ' trajectoryCurve="'+this.__trajectoryCurve+'"';
} else if (Array.isArray( this.__trajectoryCurve)) {
if (typeof this.__trajectoryCurve[0].toXMLNode !== 'function') {
str += ' trajectoryCurve="'+this.__trajectoryCurve.join(' ')+'"';
} else {
for (let i in this.__trajectoryCurve) {
if (typeof this.__trajectoryCurve[i].toXMLNode === 'function') {
str += this.__trajectoryCurve[i].toXMLNode('trajectoryCurve');
}
}
}
} else {
str += ' trajectoryCurve="'+this.__trajectoryCurve+'"';
}
str += ''
return str;
}
}
export class NurbsSwungSurface extends X3DParametricGeometryNode {
constructor(kwargs = {}) {
super(kwargs);
var ccw = kwargs["ccw"] || true;
this.__ccw = ccw;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var profileCurve = kwargs["profileCurve"] || null;
this.__profileCurve = profileCurve;
var solid = kwargs["solid"] || true;
this.__solid = solid;
var trajectoryCurve = kwargs["trajectoryCurve"] || null;
this.__trajectoryCurve = trajectoryCurve;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set profileCurve(profileCurve = null) {
this.__profileCurve = [profileCurve];
return this;
}
addProfileCurve(profileCurve = null) {
if (this.__profileCurve == null) {
this.__profileCurve = [];
}
this.__profileCurve.append(profileCurve);
return this;
}
removeProfileCurve(profileCurve) {
for( let i = 0; i < this.__profileCurve.length; i++) {
if ( this.__profileCurve[i] === profileCurve) {
this.__profileCurve.splice(i, 1);
}
}
return this.__profileCurve;
}
get profileCurve() {
return this.__profileCurve;
}
set trajectoryCurve(trajectoryCurve = null) {
this.__trajectoryCurve = [trajectoryCurve];
return this;
}
addTrajectoryCurve(trajectoryCurve = null) {
if (this.__trajectoryCurve == null) {
this.__trajectoryCurve = [];
}
this.__trajectoryCurve.append(trajectoryCurve);
return this;
}
removeTrajectoryCurve(trajectoryCurve) {
for( let i = 0; i < this.__trajectoryCurve.length; i++) {
if ( this.__trajectoryCurve[i] === trajectoryCurve) {
this.__trajectoryCurve.splice(i, 1);
}
}
return this.__trajectoryCurve;
}
get trajectoryCurve() {
return this.__trajectoryCurve;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__profileCurve === null) {
} else if (typeof this.__profileCurve.toXMLNode === 'function') {
str += this.__profileCurve.toXMLNode('profileCurve');
} else if (typeof this.__profileCurve === 'string') {
str += ' profileCurve="'+this.__profileCurve+'"';
} else if (Array.isArray( this.__profileCurve)) {
if (typeof this.__profileCurve[0].toXMLNode !== 'function') {
str += ' profileCurve="'+this.__profileCurve.join(' ')+'"';
} else {
for (let i in this.__profileCurve) {
if (typeof this.__profileCurve[i].toXMLNode === 'function') {
str += this.__profileCurve[i].toXMLNode('profileCurve');
}
}
}
} else {
str += ' profileCurve="'+this.__profileCurve+'"';
}
if (this.__trajectoryCurve === null) {
} else if (typeof this.__trajectoryCurve.toXMLNode === 'function') {
str += this.__trajectoryCurve.toXMLNode('trajectoryCurve');
} else if (typeof this.__trajectoryCurve === 'string') {
str += ' trajectoryCurve="'+this.__trajectoryCurve+'"';
} else if (Array.isArray( this.__trajectoryCurve)) {
if (typeof this.__trajectoryCurve[0].toXMLNode !== 'function') {
str += ' trajectoryCurve="'+this.__trajectoryCurve.join(' ')+'"';
} else {
for (let i in this.__trajectoryCurve) {
if (typeof this.__trajectoryCurve[i].toXMLNode === 'function') {
str += this.__trajectoryCurve[i].toXMLNode('trajectoryCurve');
}
}
}
} else {
str += ' trajectoryCurve="'+this.__trajectoryCurve+'"';
}
str += ''
return str;
}
}
export class NurbsTextureCoordinate extends X3DNode {
constructor(kwargs = {}) {
super(kwargs);
var controlPoint = kwargs["controlPoint"] || null;
this.__controlPoint = controlPoint;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var uDimension = kwargs["uDimension"] || 0;
if (uDimension == null || uDimension < 0) {
return null;
}
this.__uDimension = uDimension;
var uKnot = kwargs["uKnot"] || null;
this.__uKnot = uKnot;
var uOrder = kwargs["uOrder"] || 3;
if (uOrder == null || uOrder < 2) {
return null;
}
this.__uOrder = uOrder;
var vDimension = kwargs["vDimension"] || 0;
if (vDimension == null || vDimension < 0) {
return null;
}
this.__vDimension = vDimension;
var vKnot = kwargs["vKnot"] || null;
this.__vKnot = vKnot;
var vOrder = kwargs["vOrder"] || 3;
if (vOrder == null || vOrder < 2) {
return null;
}
this.__vOrder = vOrder;
var weight = kwargs["weight"] || null;
if (weight == null || weight.length <= 0 || Math.min(weight) <= 0) {
return null;
}
this.__weight = weight;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set controlPoint(controlPoint = null) {
this.__controlPoint = [controlPoint];
return this;
}
addControlPoint(controlPoint = null) {
if (this.__controlPoint == null) {
this.__controlPoint = [];
}
this.__controlPoint.append(controlPoint);
return this;
}
removeControlPoint(controlPoint) {
for( let i = 0; i < this.__controlPoint.length; i++) {
if ( this.__controlPoint[i] === controlPoint) {
this.__controlPoint.splice(i, 1);
}
}
return this.__controlPoint;
}
get controlPoint() {
return this.__controlPoint;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set weight(weight = null) {
if (weight == null || weight.length <= 0 || Math.min(weight) <= 0) {
return null;
}
this.__weight = [weight];
return this;
}
addWeight(weight = null) {
if (weight == null || weight.length <= 0 || Math.min(weight) <= 0) {
return null;
}
if (this.__weight == null) {
this.__weight = [];
}
this.__weight.append(weight);
return this;
}
removeWeight(weight) {
for( let i = 0; i < this.__weight.length; i++) {
if ( this.__weight[i] === weight) {
this.__weight.splice(i, 1);
}
}
return this.__weight;
}
get weight() {
return this.__weight;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class NurbsTrimmedSurface extends X3DNurbsSurfaceGeometryNode {
constructor(kwargs = {}) {
super(kwargs);
var TrimmingContour = kwargs["TrimmingContour"] || null;
this.__TrimmingContour = TrimmingContour;
var controlPoint = kwargs["controlPoint"] || null;
this.__controlPoint = controlPoint;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var TrimmingContour = kwargs["TrimmingContour"] || null;
this.__TrimmingContour = TrimmingContour;
var solid = kwargs["solid"] || true;
this.__solid = solid;
var texCoord = kwargs["texCoord"] || null;
this.__texCoord = texCoord;
var trimmingContour = kwargs["trimmingContour"] || null;
this.__trimmingContour = trimmingContour;
var uClosed = kwargs["uClosed"] || false;
this.__uClosed = uClosed;
var uDimension = kwargs["uDimension"] || 0;
if (uDimension == null || uDimension < 0) {
return null;
}
this.__uDimension = uDimension;
var uKnot = kwargs["uKnot"] || null;
this.__uKnot = uKnot;
var uOrder = kwargs["uOrder"] || 3;
if (uOrder == null || uOrder < 2) {
return null;
}
this.__uOrder = uOrder;
var uTessellation = kwargs["uTessellation"] || 0;
this.__uTessellation = uTessellation;
var vClosed = kwargs["vClosed"] || false;
this.__vClosed = vClosed;
var vDimension = kwargs["vDimension"] || 0;
if (vDimension == null || vDimension < 0) {
return null;
}
this.__vDimension = vDimension;
var vKnot = kwargs["vKnot"] || null;
this.__vKnot = vKnot;
var vOrder = kwargs["vOrder"] || 3;
if (vOrder == null || vOrder < 2) {
return null;
}
this.__vOrder = vOrder;
var vTessellation = kwargs["vTessellation"] || 0;
this.__vTessellation = vTessellation;
var weight = kwargs["weight"] || null;
if (weight == null || weight.length <= 0 || Math.min(weight) <= 0) {
return null;
}
this.__weight = weight;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
addTrimmingContour(TrimmingContour = null) {
if (this.__TrimmingContour == null) {
this.__TrimmingContour = [];
}
this.__TrimmingContour.append(TrimmingContour);
return this;
}
set controlPoint(controlPoint = null) {
this.__controlPoint = [controlPoint];
return this;
}
addControlPoint(controlPoint = null) {
if (this.__controlPoint == null) {
this.__controlPoint = [];
}
this.__controlPoint.append(controlPoint);
return this;
}
removeControlPoint(controlPoint) {
for( let i = 0; i < this.__controlPoint.length; i++) {
if ( this.__controlPoint[i] === controlPoint) {
this.__controlPoint.splice(i, 1);
}
}
return this.__controlPoint;
}
get controlPoint() {
return this.__controlPoint;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set texCoord(texCoord = null) {
this.__texCoord = [texCoord];
return this;
}
addTexCoord(texCoord = null) {
if (this.__texCoord == null) {
this.__texCoord = [];
}
this.__texCoord.append(texCoord);
return this;
}
removeTexCoord(texCoord) {
for( let i = 0; i < this.__texCoord.length; i++) {
if ( this.__texCoord[i] === texCoord) {
this.__texCoord.splice(i, 1);
}
}
return this.__texCoord;
}
get texCoord() {
return this.__texCoord;
}
set trimmingContour(trimmingContour = null) {
this.__trimmingContour = [trimmingContour];
return this;
}
addTrimmingContour(trimmingContour = null) {
if (this.__trimmingContour == null) {
this.__trimmingContour = [];
}
this.__trimmingContour.append(trimmingContour);
return this;
}
removeTrimmingContour(trimmingContour) {
for( let i = 0; i < this.__trimmingContour.length; i++) {
if ( this.__trimmingContour[i] === trimmingContour) {
this.__trimmingContour.splice(i, 1);
}
}
return this.__trimmingContour;
}
get trimmingContour() {
return this.__trimmingContour;
}
set uTessellation(uTessellation = 0) {
this.__uTessellation = [uTessellation];
return this;
}
addUTessellation(uTessellation = 0) {
if (this.__uTessellation == null) {
this.__uTessellation = [];
}
this.__uTessellation.append(uTessellation);
return this;
}
removeUTessellation(uTessellation) {
for( let i = 0; i < this.__uTessellation.length; i++) {
if ( this.__uTessellation[i] === uTessellation) {
this.__uTessellation.splice(i, 1);
}
}
return this.__uTessellation;
}
get uTessellation() {
return this.__uTessellation;
}
set vTessellation(vTessellation = 0) {
this.__vTessellation = [vTessellation];
return this;
}
addVTessellation(vTessellation = 0) {
if (this.__vTessellation == null) {
this.__vTessellation = [];
}
this.__vTessellation.append(vTessellation);
return this;
}
removeVTessellation(vTessellation) {
for( let i = 0; i < this.__vTessellation.length; i++) {
if ( this.__vTessellation[i] === vTessellation) {
this.__vTessellation.splice(i, 1);
}
}
return this.__vTessellation;
}
get vTessellation() {
return this.__vTessellation;
}
set weight(weight = null) {
if (weight == null || weight.length <= 0 || Math.min(weight) <= 0) {
return null;
}
this.__weight = [weight];
return this;
}
addWeight(weight = null) {
if (weight == null || weight.length <= 0 || Math.min(weight) <= 0) {
return null;
}
if (this.__weight == null) {
this.__weight = [];
}
this.__weight.append(weight);
return this;
}
removeWeight(weight) {
for( let i = 0; i < this.__weight.length; i++) {
if ( this.__weight[i] === weight) {
this.__weight.splice(i, 1);
}
}
return this.__weight;
}
get weight() {
return this.__weight;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__TrimmingContour === null) {
} else if (typeof this.__TrimmingContour.toXMLNode === 'function') {
str += this.__TrimmingContour.toXMLNode('TrimmingContour');
} else if (typeof this.__TrimmingContour === 'string') {
str += ' TrimmingContour="'+this.__TrimmingContour+'"';
} else if (Array.isArray( this.__TrimmingContour)) {
if (typeof this.__TrimmingContour[0].toXMLNode !== 'function') {
str += ' TrimmingContour="'+this.__TrimmingContour.join(' ')+'"';
} else {
for (let i in this.__TrimmingContour) {
if (typeof this.__TrimmingContour[i].toXMLNode === 'function') {
str += this.__TrimmingContour[i].toXMLNode('TrimmingContour');
}
}
}
} else {
str += ' TrimmingContour="'+this.__TrimmingContour+'"';
}
if (this.__controlPoint === null) {
} else if (typeof this.__controlPoint.toXMLNode === 'function') {
str += this.__controlPoint.toXMLNode('controlPoint');
} else if (typeof this.__controlPoint === 'string') {
str += ' controlPoint="'+this.__controlPoint+'"';
} else if (Array.isArray( this.__controlPoint)) {
if (typeof this.__controlPoint[0].toXMLNode !== 'function') {
str += ' controlPoint="'+this.__controlPoint.join(' ')+'"';
} else {
for (let i in this.__controlPoint) {
if (typeof this.__controlPoint[i].toXMLNode === 'function') {
str += this.__controlPoint[i].toXMLNode('controlPoint');
}
}
}
} else {
str += ' controlPoint="'+this.__controlPoint+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__TrimmingContour === null) {
} else if (typeof this.__TrimmingContour.toXMLNode === 'function') {
str += this.__TrimmingContour.toXMLNode('TrimmingContour');
} else if (typeof this.__TrimmingContour === 'string') {
str += ' TrimmingContour="'+this.__TrimmingContour+'"';
} else if (Array.isArray( this.__TrimmingContour)) {
if (typeof this.__TrimmingContour[0].toXMLNode !== 'function') {
str += ' TrimmingContour="'+this.__TrimmingContour.join(' ')+'"';
} else {
for (let i in this.__TrimmingContour) {
if (typeof this.__TrimmingContour[i].toXMLNode === 'function') {
str += this.__TrimmingContour[i].toXMLNode('TrimmingContour');
}
}
}
} else {
str += ' TrimmingContour="'+this.__TrimmingContour+'"';
}
if (this.__texCoord === null) {
} else if (typeof this.__texCoord.toXMLNode === 'function') {
str += this.__texCoord.toXMLNode('texCoord');
} else if (typeof this.__texCoord === 'string') {
str += ' texCoord="'+this.__texCoord+'"';
} else if (Array.isArray( this.__texCoord)) {
if (typeof this.__texCoord[0].toXMLNode !== 'function') {
str += ' texCoord="'+this.__texCoord.join(' ')+'"';
} else {
for (let i in this.__texCoord) {
if (typeof this.__texCoord[i].toXMLNode === 'function') {
str += this.__texCoord[i].toXMLNode('texCoord');
}
}
}
} else {
str += ' texCoord="'+this.__texCoord+'"';
}
if (this.__trimmingContour === null) {
} else if (typeof this.__trimmingContour.toXMLNode === 'function') {
str += this.__trimmingContour.toXMLNode('trimmingContour');
} else if (typeof this.__trimmingContour === 'string') {
str += ' trimmingContour="'+this.__trimmingContour+'"';
} else if (Array.isArray( this.__trimmingContour)) {
if (typeof this.__trimmingContour[0].toXMLNode !== 'function') {
str += ' trimmingContour="'+this.__trimmingContour.join(' ')+'"';
} else {
for (let i in this.__trimmingContour) {
if (typeof this.__trimmingContour[i].toXMLNode === 'function') {
str += this.__trimmingContour[i].toXMLNode('trimmingContour');
}
}
}
} else {
str += ' trimmingContour="'+this.__trimmingContour+'"';
}
str += ''
return str;
}
}
export class OpacityMapVolumeStyle extends X3DComposableVolumeRenderStyleNode {
constructor(kwargs = {}) {
super(kwargs);
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var transferFunction = kwargs["transferFunction"] || null;
this.__transferFunction = transferFunction;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set transferFunction(transferFunction = null) {
this.__transferFunction = [transferFunction];
return this;
}
addTransferFunction(transferFunction = null) {
if (this.__transferFunction == null) {
this.__transferFunction = [];
}
this.__transferFunction.append(transferFunction);
return this;
}
removeTransferFunction(transferFunction) {
for( let i = 0; i < this.__transferFunction.length; i++) {
if ( this.__transferFunction[i] === transferFunction) {
this.__transferFunction.splice(i, 1);
}
}
return this.__transferFunction;
}
get transferFunction() {
return this.__transferFunction;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__transferFunction === null) {
} else if (typeof this.__transferFunction.toXMLNode === 'function') {
str += this.__transferFunction.toXMLNode('transferFunction');
} else if (typeof this.__transferFunction === 'string') {
str += ' transferFunction="'+this.__transferFunction+'"';
} else if (Array.isArray( this.__transferFunction)) {
if (typeof this.__transferFunction[0].toXMLNode !== 'function') {
str += ' transferFunction="'+this.__transferFunction.join(' ')+'"';
} else {
for (let i in this.__transferFunction) {
if (typeof this.__transferFunction[i].toXMLNode === 'function') {
str += this.__transferFunction[i].toXMLNode('transferFunction');
}
}
}
} else {
str += ' transferFunction="'+this.__transferFunction+'"';
}
str += ''
return str;
}
}
export class OrientationChaser extends X3DChaserNode {
constructor(kwargs = {}) {
super(kwargs);
var duration = kwargs["duration"] || 1;
if (duration == null || duration < 0) {
return null;
}
this.__duration = duration;
var initialDestination = kwargs["initialDestination"] || [0, 1, 0, 0];
this.__initialDestination = initialDestination;
var initialValue = kwargs["initialValue"] || [0, 1, 0, 0];
this.__initialValue = initialValue;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var destination = kwargs["destination"] || null;
this.__destination = destination;
var value = kwargs["value"] || null;
this.__value = value;
var value_changed = kwargs["value_changed"] || null;
this.__value_changed = value_changed;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set set_destination(destination = null) {
this.__destination = [destination];
return this;
}
set set_value(value = null) {
this.__value = [value];
return this;
}
removevalue_changed(value_changed) {
for( let i = 0; i < this.__value_changed.length; i++) {
if ( this.__value_changed[i] === value_changed) {
this.__value_changed.splice(i, 1);
}
}
return this.__value_changed;
}
get value_changed() {
return this.__value_changed;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class OrientationDamper extends X3DDamperNode {
constructor(kwargs = {}) {
super(kwargs);
var initialDestination = kwargs["initialDestination"] || [0, 1, 0, 0];
this.__initialDestination = initialDestination;
var initialValue = kwargs["initialValue"] || [0, 1, 0, 0];
this.__initialValue = initialValue;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var order = kwargs["order"] || 3;
if (order == null || order < 0) {
return null;
}
if (order == null || order > 5) {
return null;
}
this.__order = order;
var destination = kwargs["destination"] || null;
this.__destination = destination;
var value = kwargs["value"] || null;
this.__value = value;
var tau = kwargs["tau"] || 0.3;
if (tau == null || tau < 0) {
return null;
}
this.__tau = tau;
var tolerance = kwargs["tolerance"] || -1;
this.__tolerance = tolerance;
var value_changed = kwargs["value_changed"] || null;
this.__value_changed = value_changed;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set set_destination(destination = null) {
this.__destination = [destination];
return this;
}
set set_value(value = null) {
this.__value = [value];
return this;
}
set tau(tau = 0.3) {
if (tau == null || tau < 0) {
return null;
}
this.__tau = [tau];
return this;
}
addTau(tau = 0.3) {
if (tau == null || tau < 0) {
return null;
}
if (this.__tau == null) {
this.__tau = [];
}
this.__tau.append(tau);
return this;
}
removeTau(tau) {
for( let i = 0; i < this.__tau.length; i++) {
if ( this.__tau[i] === tau) {
this.__tau.splice(i, 1);
}
}
return this.__tau;
}
get tau() {
return this.__tau;
}
set tolerance(tolerance = -1) {
this.__tolerance = [tolerance];
return this;
}
addTolerance(tolerance = -1) {
if (this.__tolerance == null) {
this.__tolerance = [];
}
this.__tolerance.append(tolerance);
return this;
}
removeTolerance(tolerance) {
for( let i = 0; i < this.__tolerance.length; i++) {
if ( this.__tolerance[i] === tolerance) {
this.__tolerance.splice(i, 1);
}
}
return this.__tolerance;
}
get tolerance() {
return this.__tolerance;
}
removevalue_changed(value_changed) {
for( let i = 0; i < this.__value_changed.length; i++) {
if ( this.__value_changed[i] === value_changed) {
this.__value_changed.splice(i, 1);
}
}
return this.__value_changed;
}
get value_changed() {
return this.__value_changed;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class OrientationInterpolator extends X3DInterpolatorNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var key = kwargs["key"] || null;
this.__key = key;
var keyValue = kwargs["keyValue"] || null;
this.__keyValue = keyValue;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var fraction = kwargs["fraction"] || null;
this.__fraction = fraction;
var value_changed = kwargs["value_changed"] || null;
this.__value_changed = value_changed;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set key(key = null) {
this.__key = [key];
return this;
}
addKey(key = null) {
if (this.__key == null) {
this.__key = [];
}
this.__key.append(key);
return this;
}
removeKey(key) {
for( let i = 0; i < this.__key.length; i++) {
if ( this.__key[i] === key) {
this.__key.splice(i, 1);
}
}
return this.__key;
}
get key() {
return this.__key;
}
set keyValue(keyValue = null) {
this.__keyValue = [keyValue];
return this;
}
addKeyValue(keyValue = null) {
if (this.__keyValue == null) {
this.__keyValue = [];
}
this.__keyValue.append(keyValue);
return this;
}
removeKeyValue(keyValue) {
for( let i = 0; i < this.__keyValue.length; i++) {
if ( this.__keyValue[i] === keyValue) {
this.__keyValue.splice(i, 1);
}
}
return this.__keyValue;
}
get keyValue() {
return this.__keyValue;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set set_fraction(fraction = null) {
this.__fraction = [fraction];
return this;
}
removevalue_changed(value_changed) {
for( let i = 0; i < this.__value_changed.length; i++) {
if ( this.__value_changed[i] === value_changed) {
this.__value_changed.splice(i, 1);
}
}
return this.__value_changed;
}
get value_changed() {
return this.__value_changed;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class OrthoViewpoint extends X3DViewpointNode {
constructor(kwargs = {}) {
super(kwargs);
var bindTime = kwargs["bindTime"] || null;
this.__bindTime = bindTime;
var centerOfRotation = kwargs["centerOfRotation"] || [0, 0, 0];
this.__centerOfRotation = centerOfRotation;
var description = kwargs["description"] || null;
this.__description = description;
var fieldOfView = kwargs["fieldOfView"] || [-1, -1, 1, 1];
this.__fieldOfView = fieldOfView;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Bound = kwargs["Bound"] || null;
this.__Bound = Bound;
var jump = kwargs["jump"] || true;
this.__jump = jump;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var orientation = kwargs["orientation"] || [0, 0, 1, 0];
this.__orientation = orientation;
var position = kwargs["position"] || [0, 0, 10];
this.__position = position;
var retainUserOffsets = kwargs["retainUserOffsets"] || false;
this.__retainUserOffsets = retainUserOffsets;
var bind = kwargs["bind"] || null;
this.__bind = bind;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
removeBindTime(bindTime) {
for( let i = 0; i < this.__bindTime.length; i++) {
if ( this.__bindTime[i] === bindTime) {
this.__bindTime.splice(i, 1);
}
}
return this.__bindTime;
}
get bindTime() {
return this.__bindTime;
}
set centerOfRotation(centerOfRotation = [0, 0, 0]) {
this.__centerOfRotation = [centerOfRotation];
return this;
}
addCenterOfRotation(centerOfRotation = [0, 0, 0]) {
if (this.__centerOfRotation == null) {
this.__centerOfRotation = [];
}
this.__centerOfRotation.append(centerOfRotation);
return this;
}
removeCenterOfRotation(centerOfRotation) {
for( let i = 0; i < this.__centerOfRotation.length; i++) {
if ( this.__centerOfRotation[i] === centerOfRotation) {
this.__centerOfRotation.splice(i, 1);
}
}
return this.__centerOfRotation;
}
get centerOfRotation() {
return this.__centerOfRotation;
}
set description(description = null) {
this.__description = [description];
return this;
}
addDescription(description = null) {
if (this.__description == null) {
this.__description = [];
}
this.__description.append(description);
return this;
}
removeDescription(description) {
for( let i = 0; i < this.__description.length; i++) {
if ( this.__description[i] === description) {
this.__description.splice(i, 1);
}
}
return this.__description;
}
get description() {
return this.__description;
}
set fieldOfView(fieldOfView = [-1, -1, 1, 1]) {
this.__fieldOfView = [fieldOfView];
return this;
}
addFieldOfView(fieldOfView = [-1, -1, 1, 1]) {
if (this.__fieldOfView == null) {
this.__fieldOfView = [];
}
this.__fieldOfView.append(fieldOfView);
return this;
}
removeFieldOfView(fieldOfView) {
for( let i = 0; i < this.__fieldOfView.length; i++) {
if ( this.__fieldOfView[i] === fieldOfView) {
this.__fieldOfView.splice(i, 1);
}
}
return this.__fieldOfView;
}
get fieldOfView() {
return this.__fieldOfView;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isBound() {
return this.__Bound;
}
set jump(jump = true) {
this.__jump = [jump];
return this;
}
addJump(jump = true) {
if (this.__jump == null) {
this.__jump = [];
}
this.__jump.append(jump);
return this;
}
removeJump(jump) {
for( let i = 0; i < this.__jump.length; i++) {
if ( this.__jump[i] === jump) {
this.__jump.splice(i, 1);
}
}
return this.__jump;
}
get isJump() {
return this.__jump;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set orientation(orientation = [0, 0, 1, 0]) {
this.__orientation = [orientation];
return this;
}
addOrientation(orientation = [0, 0, 1, 0]) {
if (this.__orientation == null) {
this.__orientation = [];
}
this.__orientation.append(orientation);
return this;
}
removeOrientation(orientation) {
for( let i = 0; i < this.__orientation.length; i++) {
if ( this.__orientation[i] === orientation) {
this.__orientation.splice(i, 1);
}
}
return this.__orientation;
}
get orientation() {
return this.__orientation;
}
set position(position = [0, 0, 10]) {
this.__position = [position];
return this;
}
addPosition(position = [0, 0, 10]) {
if (this.__position == null) {
this.__position = [];
}
this.__position.append(position);
return this;
}
removePosition(position) {
for( let i = 0; i < this.__position.length; i++) {
if ( this.__position[i] === position) {
this.__position.splice(i, 1);
}
}
return this.__position;
}
get position() {
return this.__position;
}
set retainUserOffsets(retainUserOffsets = false) {
this.__retainUserOffsets = [retainUserOffsets];
return this;
}
addRetainUserOffsets(retainUserOffsets = false) {
if (this.__retainUserOffsets == null) {
this.__retainUserOffsets = [];
}
this.__retainUserOffsets.append(retainUserOffsets);
return this;
}
removeRetainUserOffsets(retainUserOffsets) {
for( let i = 0; i < this.__retainUserOffsets.length; i++) {
if ( this.__retainUserOffsets[i] === retainUserOffsets) {
this.__retainUserOffsets.splice(i, 1);
}
}
return this.__retainUserOffsets;
}
get isRetainUserOffsets() {
return this.__retainUserOffsets;
}
set set_bind(bind = null) {
this.__bind = [bind];
return this;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class PackagedShader extends X3DShaderNode {
constructor(kwargs = {}) {
super(kwargs);
var activate = kwargs["activate"] || null;
this.__activate = activate;
var field = kwargs["field"] || null;
this.__field = field;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Selected = kwargs["Selected"] || null;
this.__Selected = Selected;
var Valid = kwargs["Valid"] || null;
this.__Valid = Valid;
var language = kwargs["language"] || null;
this.__language = language;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var url = kwargs["url"] || null;
this.__url = url;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set activate(activate = null) {
this.__activate = [activate];
return this;
}
addActivate(activate = null) {
if (this.__activate == null) {
this.__activate = [];
}
this.__activate.append(activate);
return this;
}
set field(field = null) {
this.__field = [field];
return this;
}
addField(field = null) {
if (this.__field == null) {
this.__field = [];
}
this.__field.append(field);
return this;
}
removeField(field) {
for( let i = 0; i < this.__field.length; i++) {
if ( this.__field[i] === field) {
this.__field.splice(i, 1);
}
}
return this.__field;
}
get field() {
return this.__field;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isSelected() {
return this.__Selected;
}
get isValid() {
return this.__Valid;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set url(url = null) {
this.__url = [url];
return this;
}
addUrl(url = null) {
if (this.__url == null) {
this.__url = [];
}
this.__url.append(url);
return this;
}
removeUrl(url) {
for( let i = 0; i < this.__url.length; i++) {
if ( this.__url[i] === url) {
this.__url.splice(i, 1);
}
}
return this.__url;
}
get url() {
return this.__url;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__field === null) {
} else if (typeof this.__field.toXMLNode === 'function') {
str += this.__field.toXMLNode('field');
} else if (typeof this.__field === 'string') {
str += ' field="'+this.__field+'"';
} else if (Array.isArray( this.__field)) {
if (typeof this.__field[0].toXMLNode !== 'function') {
str += ' field="'+this.__field.join(' ')+'"';
} else {
for (let i in this.__field) {
if (typeof this.__field[i].toXMLNode === 'function') {
str += this.__field[i].toXMLNode('field');
}
}
}
} else {
str += ' field="'+this.__field+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class ParticleSystem extends X3DShapeNode {
constructor(kwargs = {}) {
super(kwargs);
var appearance = kwargs["appearance"] || null;
this.__appearance = appearance;
var bboxCenter = kwargs["bboxCenter"] || [0, 0, 0];
this.__bboxCenter = bboxCenter;
var bboxSize = kwargs["bboxSize"] || [-1, -1, -1];
this.__bboxSize = bboxSize;
var colorKey = kwargs["colorKey"] || null;
if (colorKey == null || colorKey.length <= 0 || Math.min(colorKey) < 0) {
return null;
}
this.__colorKey = colorKey;
var colorRamp = kwargs["colorRamp"] || null;
this.__colorRamp = colorRamp;
var createParticles = kwargs["createParticles"] || true;
this.__createParticles = createParticles;
var displayBBox = kwargs["displayBBox"] || false;
this.__displayBBox = displayBBox;
var emitter = kwargs["emitter"] || null;
this.__emitter = emitter;
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var geometry = kwargs["geometry"] || null;
this.__geometry = geometry;
var geometry = kwargs["geometry"] || null;
this.__geometry = geometry;
var geometryType = kwargs["geometryType"] || "QUAD";
this.__geometryType = geometryType;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var lifetimeVariation = kwargs["lifetimeVariation"] || 0.25;
if (lifetimeVariation == null || lifetimeVariation < 0) {
return null;
}
if (lifetimeVariation == null || lifetimeVariation > 1) {
return null;
}
this.__lifetimeVariation = lifetimeVariation;
var maxParticles = kwargs["maxParticles"] || 200;
if (maxParticles == null || maxParticles < 0) {
return null;
}
this.__maxParticles = maxParticles;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var particleLifetime = kwargs["particleLifetime"] || 5;
if (particleLifetime == null || particleLifetime < 0) {
return null;
}
this.__particleLifetime = particleLifetime;
var particleSize = kwargs["particleSize"] || [0.02, 0.02];
if (particleSize == null || particleSize.length <= 0 || Math.min(particleSize) < 0) {
return null;
}
this.__particleSize = particleSize;
var physics = kwargs["physics"] || null;
this.__physics = physics;
var texCoordKey = kwargs["texCoordKey"] || null;
if (texCoordKey == null || texCoordKey.length <= 0 || Math.min(texCoordKey) < 0) {
return null;
}
this.__texCoordKey = texCoordKey;
var texCoordRamp = kwargs["texCoordRamp"] || null;
this.__texCoordRamp = texCoordRamp;
var visible = kwargs["visible"] || true;
this.__visible = visible;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set appearance(appearance = null) {
this.__appearance = [appearance];
return this;
}
addAppearance(appearance = null) {
if (this.__appearance == null) {
this.__appearance = [];
}
this.__appearance.append(appearance);
return this;
}
removeAppearance(appearance) {
for( let i = 0; i < this.__appearance.length; i++) {
if ( this.__appearance[i] === appearance) {
this.__appearance.splice(i, 1);
}
}
return this.__appearance;
}
get appearance() {
return this.__appearance;
}
set createParticles(createParticles = true) {
this.__createParticles = [createParticles];
return this;
}
addCreateParticles(createParticles = true) {
if (this.__createParticles == null) {
this.__createParticles = [];
}
this.__createParticles.append(createParticles);
return this;
}
removeCreateParticles(createParticles) {
for( let i = 0; i < this.__createParticles.length; i++) {
if ( this.__createParticles[i] === createParticles) {
this.__createParticles.splice(i, 1);
}
}
return this.__createParticles;
}
get isCreateParticles() {
return this.__createParticles;
}
set displayBBox(displayBBox = false) {
this.__displayBBox = [displayBBox];
return this;
}
addDisplayBBox(displayBBox = false) {
if (this.__displayBBox == null) {
this.__displayBBox = [];
}
this.__displayBBox.append(displayBBox);
return this;
}
removeDisplayBBox(displayBBox) {
for( let i = 0; i < this.__displayBBox.length; i++) {
if ( this.__displayBBox[i] === displayBBox) {
this.__displayBBox.splice(i, 1);
}
}
return this.__displayBBox;
}
get isDisplayBBox() {
return this.__displayBBox;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
set geometry(geometry = null) {
this.__geometry = [geometry];
return this;
}
addGeometry(geometry = null) {
if (this.__geometry == null) {
this.__geometry = [];
}
this.__geometry.append(geometry);
return this;
}
removeGeometry(geometry) {
for( let i = 0; i < this.__geometry.length; i++) {
if ( this.__geometry[i] === geometry) {
this.__geometry.splice(i, 1);
}
}
return this.__geometry;
}
get geometry() {
return this.__geometry;
}
set geometry(geometry = null) {
this.__geometry = [geometry];
return this;
}
addGeometry(geometry = null) {
if (this.__geometry == null) {
this.__geometry = [];
}
this.__geometry.append(geometry);
return this;
}
removeGeometry(geometry) {
for( let i = 0; i < this.__geometry.length; i++) {
if ( this.__geometry[i] === geometry) {
this.__geometry.splice(i, 1);
}
}
return this.__geometry;
}
get geometry() {
return this.__geometry;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
set lifetimeVariation(lifetimeVariation = 0.25) {
if (lifetimeVariation == null || lifetimeVariation < 0) {
return null;
}
if (lifetimeVariation == null || lifetimeVariation > 1) {
return null;
}
this.__lifetimeVariation = [lifetimeVariation];
return this;
}
addLifetimeVariation(lifetimeVariation = 0.25) {
if (lifetimeVariation == null || lifetimeVariation < 0) {
return null;
}
if (lifetimeVariation == null || lifetimeVariation > 1) {
return null;
}
if (this.__lifetimeVariation == null) {
this.__lifetimeVariation = [];
}
this.__lifetimeVariation.append(lifetimeVariation);
return this;
}
removeLifetimeVariation(lifetimeVariation) {
for( let i = 0; i < this.__lifetimeVariation.length; i++) {
if ( this.__lifetimeVariation[i] === lifetimeVariation) {
this.__lifetimeVariation.splice(i, 1);
}
}
return this.__lifetimeVariation;
}
get lifetimeVariation() {
return this.__lifetimeVariation;
}
set maxParticles(maxParticles = 200) {
if (maxParticles == null || maxParticles < 0) {
return null;
}
this.__maxParticles = [maxParticles];
return this;
}
addMaxParticles(maxParticles = 200) {
if (maxParticles == null || maxParticles < 0) {
return null;
}
if (this.__maxParticles == null) {
this.__maxParticles = [];
}
this.__maxParticles.append(maxParticles);
return this;
}
removeMaxParticles(maxParticles) {
for( let i = 0; i < this.__maxParticles.length; i++) {
if ( this.__maxParticles[i] === maxParticles) {
this.__maxParticles.splice(i, 1);
}
}
return this.__maxParticles;
}
get maxParticles() {
return this.__maxParticles;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set particleLifetime(particleLifetime = 5) {
if (particleLifetime == null || particleLifetime < 0) {
return null;
}
this.__particleLifetime = [particleLifetime];
return this;
}
addParticleLifetime(particleLifetime = 5) {
if (particleLifetime == null || particleLifetime < 0) {
return null;
}
if (this.__particleLifetime == null) {
this.__particleLifetime = [];
}
this.__particleLifetime.append(particleLifetime);
return this;
}
removeParticleLifetime(particleLifetime) {
for( let i = 0; i < this.__particleLifetime.length; i++) {
if ( this.__particleLifetime[i] === particleLifetime) {
this.__particleLifetime.splice(i, 1);
}
}
return this.__particleLifetime;
}
get particleLifetime() {
return this.__particleLifetime;
}
set particleSize(particleSize = [0.02, 0.02]) {
if (particleSize == null || particleSize.length <= 0 || Math.min(particleSize) < 0) {
return null;
}
this.__particleSize = [particleSize];
return this;
}
addParticleSize(particleSize = [0.02, 0.02]) {
if (particleSize == null || particleSize.length <= 0 || Math.min(particleSize) < 0) {
return null;
}
if (this.__particleSize == null) {
this.__particleSize = [];
}
this.__particleSize.append(particleSize);
return this;
}
removeParticleSize(particleSize) {
for( let i = 0; i < this.__particleSize.length; i++) {
if ( this.__particleSize[i] === particleSize) {
this.__particleSize.splice(i, 1);
}
}
return this.__particleSize;
}
get particleSize() {
return this.__particleSize;
}
set visible(visible = true) {
this.__visible = [visible];
return this;
}
addVisible(visible = true) {
if (this.__visible == null) {
this.__visible = [];
}
this.__visible.append(visible);
return this;
}
removeVisible(visible) {
for( let i = 0; i < this.__visible.length; i++) {
if ( this.__visible[i] === visible) {
this.__visible.splice(i, 1);
}
}
return this.__visible;
}
get isVisible() {
return this.__visible;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__appearance === null) {
} else if (typeof this.__appearance.toXMLNode === 'function') {
str += this.__appearance.toXMLNode('appearance');
} else if (typeof this.__appearance === 'string') {
str += ' appearance="'+this.__appearance+'"';
} else if (Array.isArray( this.__appearance)) {
if (typeof this.__appearance[0].toXMLNode !== 'function') {
str += ' appearance="'+this.__appearance.join(' ')+'"';
} else {
for (let i in this.__appearance) {
if (typeof this.__appearance[i].toXMLNode === 'function') {
str += this.__appearance[i].toXMLNode('appearance');
}
}
}
} else {
str += ' appearance="'+this.__appearance+'"';
}
if (this.__colorRamp === null) {
} else if (typeof this.__colorRamp.toXMLNode === 'function') {
str += this.__colorRamp.toXMLNode('colorRamp');
} else if (typeof this.__colorRamp === 'string') {
str += ' colorRamp="'+this.__colorRamp+'"';
} else if (Array.isArray( this.__colorRamp)) {
if (typeof this.__colorRamp[0].toXMLNode !== 'function') {
str += ' colorRamp="'+this.__colorRamp.join(' ')+'"';
} else {
for (let i in this.__colorRamp) {
if (typeof this.__colorRamp[i].toXMLNode === 'function') {
str += this.__colorRamp[i].toXMLNode('colorRamp');
}
}
}
} else {
str += ' colorRamp="'+this.__colorRamp+'"';
}
if (this.__emitter === null) {
} else if (typeof this.__emitter.toXMLNode === 'function') {
str += this.__emitter.toXMLNode('emitter');
} else if (typeof this.__emitter === 'string') {
str += ' emitter="'+this.__emitter+'"';
} else if (Array.isArray( this.__emitter)) {
if (typeof this.__emitter[0].toXMLNode !== 'function') {
str += ' emitter="'+this.__emitter.join(' ')+'"';
} else {
for (let i in this.__emitter) {
if (typeof this.__emitter[i].toXMLNode === 'function') {
str += this.__emitter[i].toXMLNode('emitter');
}
}
}
} else {
str += ' emitter="'+this.__emitter+'"';
}
if (this.__geometry === null) {
} else if (typeof this.__geometry.toXMLNode === 'function') {
str += this.__geometry.toXMLNode('geometry');
} else if (typeof this.__geometry === 'string') {
str += ' geometry="'+this.__geometry+'"';
} else if (Array.isArray( this.__geometry)) {
if (typeof this.__geometry[0].toXMLNode !== 'function') {
str += ' geometry="'+this.__geometry.join(' ')+'"';
} else {
for (let i in this.__geometry) {
if (typeof this.__geometry[i].toXMLNode === 'function') {
str += this.__geometry[i].toXMLNode('geometry');
}
}
}
} else {
str += ' geometry="'+this.__geometry+'"';
}
if (this.__geometry === null) {
} else if (typeof this.__geometry.toXMLNode === 'function') {
str += this.__geometry.toXMLNode('geometry');
} else if (typeof this.__geometry === 'string') {
str += ' geometry="'+this.__geometry+'"';
} else if (Array.isArray( this.__geometry)) {
if (typeof this.__geometry[0].toXMLNode !== 'function') {
str += ' geometry="'+this.__geometry.join(' ')+'"';
} else {
for (let i in this.__geometry) {
if (typeof this.__geometry[i].toXMLNode === 'function') {
str += this.__geometry[i].toXMLNode('geometry');
}
}
}
} else {
str += ' geometry="'+this.__geometry+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__physics === null) {
} else if (typeof this.__physics.toXMLNode === 'function') {
str += this.__physics.toXMLNode('physics');
} else if (typeof this.__physics === 'string') {
str += ' physics="'+this.__physics+'"';
} else if (Array.isArray( this.__physics)) {
if (typeof this.__physics[0].toXMLNode !== 'function') {
str += ' physics="'+this.__physics.join(' ')+'"';
} else {
for (let i in this.__physics) {
if (typeof this.__physics[i].toXMLNode === 'function') {
str += this.__physics[i].toXMLNode('physics');
}
}
}
} else {
str += ' physics="'+this.__physics+'"';
}
if (this.__texCoordRamp === null) {
} else if (typeof this.__texCoordRamp.toXMLNode === 'function') {
str += this.__texCoordRamp.toXMLNode('texCoordRamp');
} else if (typeof this.__texCoordRamp === 'string') {
str += ' texCoordRamp="'+this.__texCoordRamp+'"';
} else if (Array.isArray( this.__texCoordRamp)) {
if (typeof this.__texCoordRamp[0].toXMLNode !== 'function') {
str += ' texCoordRamp="'+this.__texCoordRamp.join(' ')+'"';
} else {
for (let i in this.__texCoordRamp) {
if (typeof this.__texCoordRamp[i].toXMLNode === 'function') {
str += this.__texCoordRamp[i].toXMLNode('texCoordRamp');
}
}
}
} else {
str += ' texCoordRamp="'+this.__texCoordRamp+'"';
}
str += ''
return str;
}
}
export class PickableGroup extends X3DGroupingNode {
constructor(kwargs = {}) {
super(kwargs);
var children_ = kwargs["children_"] || null;
this.__children_ = children_;
var bboxCenter = kwargs["bboxCenter"] || [0, 0, 0];
this.__bboxCenter = bboxCenter;
var bboxSize = kwargs["bboxSize"] || [-1, -1, -1];
this.__bboxSize = bboxSize;
var children = kwargs["children"] || null;
this.__children = children;
var displayBBox = kwargs["displayBBox"] || false;
this.__displayBBox = displayBBox;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var objectType = kwargs["objectType"] || ["ALL"];
this.__objectType = objectType;
var pickable = kwargs["pickable"] || true;
this.__pickable = pickable;
var children_ = kwargs["children_"] || null;
this.__children_ = children_;
var visible = kwargs["visible"] || true;
this.__visible = visible;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
addChildren(children_ = null) {
if (this.__children_ == null) {
this.__children_ = [];
}
this.__children_.append(children_);
return this;
}
set children(children = null) {
this.__children = [children];
return this;
}
addChildren(children = null) {
if (this.__children == null) {
this.__children = [];
}
this.__children.append(children);
return this;
}
removeChildren(children) {
for( let i = 0; i < this.__children.length; i++) {
if ( this.__children[i] === children) {
this.__children.splice(i, 1);
}
}
return this.__children;
}
get children() {
return this.__children;
}
set displayBBox(displayBBox = false) {
this.__displayBBox = [displayBBox];
return this;
}
addDisplayBBox(displayBBox = false) {
if (this.__displayBBox == null) {
this.__displayBBox = [];
}
this.__displayBBox.append(displayBBox);
return this;
}
removeDisplayBBox(displayBBox) {
for( let i = 0; i < this.__displayBBox.length; i++) {
if ( this.__displayBBox[i] === displayBBox) {
this.__displayBBox.splice(i, 1);
}
}
return this.__displayBBox;
}
get isDisplayBBox() {
return this.__displayBBox;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set objectType(objectType = ["ALL"]) {
this.__objectType = [objectType];
return this;
}
addObjectType(objectType = ["ALL"]) {
if (this.__objectType == null) {
this.__objectType = [];
}
this.__objectType.append(objectType);
return this;
}
removeObjectType(objectType) {
for( let i = 0; i < this.__objectType.length; i++) {
if ( this.__objectType[i] === objectType) {
this.__objectType.splice(i, 1);
}
}
return this.__objectType;
}
get objectType() {
return this.__objectType;
}
set pickable(pickable = true) {
this.__pickable = [pickable];
return this;
}
addPickable(pickable = true) {
if (this.__pickable == null) {
this.__pickable = [];
}
this.__pickable.append(pickable);
return this;
}
removePickable(pickable) {
for( let i = 0; i < this.__pickable.length; i++) {
if ( this.__pickable[i] === pickable) {
this.__pickable.splice(i, 1);
}
}
return this.__pickable;
}
get isPickable() {
return this.__pickable;
}
set visible(visible = true) {
this.__visible = [visible];
return this;
}
addVisible(visible = true) {
if (this.__visible == null) {
this.__visible = [];
}
this.__visible.append(visible);
return this;
}
removeVisible(visible) {
for( let i = 0; i < this.__visible.length; i++) {
if ( this.__visible[i] === visible) {
this.__visible.splice(i, 1);
}
}
return this.__visible;
}
get isVisible() {
return this.__visible;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__children_ === null) {
} else if (typeof this.__children_.toXMLNode === 'function') {
str += this.__children_.toXMLNode('children_');
} else if (typeof this.__children_ === 'string') {
str += ' children_="'+this.__children_+'"';
} else if (Array.isArray( this.__children_)) {
if (typeof this.__children_[0].toXMLNode !== 'function') {
str += ' children_="'+this.__children_.join(' ')+'"';
} else {
for (let i in this.__children_) {
if (typeof this.__children_[i].toXMLNode === 'function') {
str += this.__children_[i].toXMLNode('children_');
}
}
}
} else {
str += ' children_="'+this.__children_+'"';
}
if (this.__children === null) {
} else if (typeof this.__children.toXMLNode === 'function') {
str += this.__children.toXMLNode('children');
} else if (typeof this.__children === 'string') {
str += ' children="'+this.__children+'"';
} else if (Array.isArray( this.__children)) {
if (typeof this.__children[0].toXMLNode !== 'function') {
str += ' children="'+this.__children.join(' ')+'"';
} else {
for (let i in this.__children) {
if (typeof this.__children[i].toXMLNode === 'function') {
str += this.__children[i].toXMLNode('children');
}
}
}
} else {
str += ' children="'+this.__children+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__children_ === null) {
} else if (typeof this.__children_.toXMLNode === 'function') {
str += this.__children_.toXMLNode('children_');
} else if (typeof this.__children_ === 'string') {
str += ' children_="'+this.__children_+'"';
} else if (Array.isArray( this.__children_)) {
if (typeof this.__children_[0].toXMLNode !== 'function') {
str += ' children_="'+this.__children_.join(' ')+'"';
} else {
for (let i in this.__children_) {
if (typeof this.__children_[i].toXMLNode === 'function') {
str += this.__children_[i].toXMLNode('children_');
}
}
}
} else {
str += ' children_="'+this.__children_+'"';
}
str += ''
return str;
}
}
export class PixelTexture extends X3DTexture2DNode {
constructor(kwargs = {}) {
super(kwargs);
var image = kwargs["image"] || [0, 0, 0];
this.__image = image;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var repeatS = kwargs["repeatS"] || true;
this.__repeatS = repeatS;
var repeatT = kwargs["repeatT"] || true;
this.__repeatT = repeatT;
var textureProperties = kwargs["textureProperties"] || null;
this.__textureProperties = textureProperties;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set image(image = [0, 0, 0]) {
this.__image = [image];
return this;
}
addImage(image = [0, 0, 0]) {
if (this.__image == null) {
this.__image = [];
}
this.__image.append(image);
return this;
}
removeImage(image) {
for( let i = 0; i < this.__image.length; i++) {
if ( this.__image[i] === image) {
this.__image.splice(i, 1);
}
}
return this.__image;
}
get image() {
return this.__image;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__textureProperties === null) {
} else if (typeof this.__textureProperties.toXMLNode === 'function') {
str += this.__textureProperties.toXMLNode('textureProperties');
} else if (typeof this.__textureProperties === 'string') {
str += ' textureProperties="'+this.__textureProperties+'"';
} else if (Array.isArray( this.__textureProperties)) {
if (typeof this.__textureProperties[0].toXMLNode !== 'function') {
str += ' textureProperties="'+this.__textureProperties.join(' ')+'"';
} else {
for (let i in this.__textureProperties) {
if (typeof this.__textureProperties[i].toXMLNode === 'function') {
str += this.__textureProperties[i].toXMLNode('textureProperties');
}
}
}
} else {
str += ' textureProperties="'+this.__textureProperties+'"';
}
str += ''
return str;
}
}
export class PixelTexture3D extends X3DTexture3DNode {
constructor(kwargs = {}) {
super(kwargs);
var image = kwargs["image"] || [0, 0, 0, 0];
this.__image = image;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var repeatR = kwargs["repeatR"] || false;
this.__repeatR = repeatR;
var repeatS = kwargs["repeatS"] || false;
this.__repeatS = repeatS;
var repeatT = kwargs["repeatT"] || false;
this.__repeatT = repeatT;
var textureProperties = kwargs["textureProperties"] || null;
this.__textureProperties = textureProperties;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set image(image = [0, 0, 0, 0]) {
this.__image = [image];
return this;
}
addImage(image = [0, 0, 0, 0]) {
if (this.__image == null) {
this.__image = [];
}
this.__image.append(image);
return this;
}
removeImage(image) {
for( let i = 0; i < this.__image.length; i++) {
if ( this.__image[i] === image) {
this.__image.splice(i, 1);
}
}
return this.__image;
}
get image() {
return this.__image;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__textureProperties === null) {
} else if (typeof this.__textureProperties.toXMLNode === 'function') {
str += this.__textureProperties.toXMLNode('textureProperties');
} else if (typeof this.__textureProperties === 'string') {
str += ' textureProperties="'+this.__textureProperties+'"';
} else if (Array.isArray( this.__textureProperties)) {
if (typeof this.__textureProperties[0].toXMLNode !== 'function') {
str += ' textureProperties="'+this.__textureProperties.join(' ')+'"';
} else {
for (let i in this.__textureProperties) {
if (typeof this.__textureProperties[i].toXMLNode === 'function') {
str += this.__textureProperties[i].toXMLNode('textureProperties');
}
}
}
} else {
str += ' textureProperties="'+this.__textureProperties+'"';
}
str += ''
return str;
}
}
export class PlaneSensor extends X3DDragSensorNode {
constructor(kwargs = {}) {
super(kwargs);
var autoOffset = kwargs["autoOffset"] || true;
this.__autoOffset = autoOffset;
var axisRotation = kwargs["axisRotation"] || [0, 1, 0, 0];
this.__axisRotation = axisRotation;
var description = kwargs["description"] || null;
this.__description = description;
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var Over = kwargs["Over"] || null;
this.__Over = Over;
var maxPosition = kwargs["maxPosition"] || [-1, -1];
this.__maxPosition = maxPosition;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var minPosition = kwargs["minPosition"] || [0, 0];
this.__minPosition = minPosition;
var offset = kwargs["offset"] || [0, 0, 0];
this.__offset = offset;
var trackPoint_changed = kwargs["trackPoint_changed"] || null;
this.__trackPoint_changed = trackPoint_changed;
var translation_changed = kwargs["translation_changed"] || null;
this.__translation_changed = translation_changed;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set autoOffset(autoOffset = true) {
this.__autoOffset = [autoOffset];
return this;
}
addAutoOffset(autoOffset = true) {
if (this.__autoOffset == null) {
this.__autoOffset = [];
}
this.__autoOffset.append(autoOffset);
return this;
}
removeAutoOffset(autoOffset) {
for( let i = 0; i < this.__autoOffset.length; i++) {
if ( this.__autoOffset[i] === autoOffset) {
this.__autoOffset.splice(i, 1);
}
}
return this.__autoOffset;
}
get isAutoOffset() {
return this.__autoOffset;
}
set axisRotation(axisRotation = [0, 1, 0, 0]) {
this.__axisRotation = [axisRotation];
return this;
}
addAxisRotation(axisRotation = [0, 1, 0, 0]) {
if (this.__axisRotation == null) {
this.__axisRotation = [];
}
this.__axisRotation.append(axisRotation);
return this;
}
removeAxisRotation(axisRotation) {
for( let i = 0; i < this.__axisRotation.length; i++) {
if ( this.__axisRotation[i] === axisRotation) {
this.__axisRotation.splice(i, 1);
}
}
return this.__axisRotation;
}
get axisRotation() {
return this.__axisRotation;
}
set description(description = null) {
this.__description = [description];
return this;
}
addDescription(description = null) {
if (this.__description == null) {
this.__description = [];
}
this.__description.append(description);
return this;
}
removeDescription(description) {
for( let i = 0; i < this.__description.length; i++) {
if ( this.__description[i] === description) {
this.__description.splice(i, 1);
}
}
return this.__description;
}
get description() {
return this.__description;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
get isOver() {
return this.__Over;
}
set maxPosition(maxPosition = [-1, -1]) {
this.__maxPosition = [maxPosition];
return this;
}
addMaxPosition(maxPosition = [-1, -1]) {
if (this.__maxPosition == null) {
this.__maxPosition = [];
}
this.__maxPosition.append(maxPosition);
return this;
}
removeMaxPosition(maxPosition) {
for( let i = 0; i < this.__maxPosition.length; i++) {
if ( this.__maxPosition[i] === maxPosition) {
this.__maxPosition.splice(i, 1);
}
}
return this.__maxPosition;
}
get maxPosition() {
return this.__maxPosition;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set minPosition(minPosition = [0, 0]) {
this.__minPosition = [minPosition];
return this;
}
addMinPosition(minPosition = [0, 0]) {
if (this.__minPosition == null) {
this.__minPosition = [];
}
this.__minPosition.append(minPosition);
return this;
}
removeMinPosition(minPosition) {
for( let i = 0; i < this.__minPosition.length; i++) {
if ( this.__minPosition[i] === minPosition) {
this.__minPosition.splice(i, 1);
}
}
return this.__minPosition;
}
get minPosition() {
return this.__minPosition;
}
set offset(offset = [0, 0, 0]) {
this.__offset = [offset];
return this;
}
addOffset(offset = [0, 0, 0]) {
if (this.__offset == null) {
this.__offset = [];
}
this.__offset.append(offset);
return this;
}
removeOffset(offset) {
for( let i = 0; i < this.__offset.length; i++) {
if ( this.__offset[i] === offset) {
this.__offset.splice(i, 1);
}
}
return this.__offset;
}
get offset() {
return this.__offset;
}
removetrackPoint_changed(trackPoint_changed) {
for( let i = 0; i < this.__trackPoint_changed.length; i++) {
if ( this.__trackPoint_changed[i] === trackPoint_changed) {
this.__trackPoint_changed.splice(i, 1);
}
}
return this.__trackPoint_changed;
}
get trackPoint_changed() {
return this.__trackPoint_changed;
}
removetranslation_changed(translation_changed) {
for( let i = 0; i < this.__translation_changed.length; i++) {
if ( this.__translation_changed[i] === translation_changed) {
this.__translation_changed.splice(i, 1);
}
}
return this.__translation_changed;
}
get translation_changed() {
return this.__translation_changed;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class PointEmitter extends X3DParticleEmitterNode {
constructor(kwargs = {}) {
super(kwargs);
var direction = kwargs["direction"] || [0, 1, 0];
this.__direction = direction;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var mass = kwargs["mass"] || 0;
if (mass == null || mass < 0) {
return null;
}
this.__mass = mass;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var position = kwargs["position"] || [0, 0, 0];
this.__position = position;
var speed = kwargs["speed"] || 0;
if (speed == null || speed < 0) {
return null;
}
this.__speed = speed;
var surfaceArea = kwargs["surfaceArea"] || 0;
if (surfaceArea == null || surfaceArea < 0) {
return null;
}
this.__surfaceArea = surfaceArea;
var variation = kwargs["variation"] || 0.25;
if (variation == null || variation < 0) {
return null;
}
this.__variation = variation;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set direction(direction = [0, 1, 0]) {
this.__direction = [direction];
return this;
}
addDirection(direction = [0, 1, 0]) {
if (this.__direction == null) {
this.__direction = [];
}
this.__direction.append(direction);
return this;
}
removeDirection(direction) {
for( let i = 0; i < this.__direction.length; i++) {
if ( this.__direction[i] === direction) {
this.__direction.splice(i, 1);
}
}
return this.__direction;
}
get direction() {
return this.__direction;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set mass(mass = 0) {
if (mass == null || mass < 0) {
return null;
}
this.__mass = [mass];
return this;
}
addMass(mass = 0) {
if (mass == null || mass < 0) {
return null;
}
if (this.__mass == null) {
this.__mass = [];
}
this.__mass.append(mass);
return this;
}
removeMass(mass) {
for( let i = 0; i < this.__mass.length; i++) {
if ( this.__mass[i] === mass) {
this.__mass.splice(i, 1);
}
}
return this.__mass;
}
get mass() {
return this.__mass;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set position(position = [0, 0, 0]) {
this.__position = [position];
return this;
}
addPosition(position = [0, 0, 0]) {
if (this.__position == null) {
this.__position = [];
}
this.__position.append(position);
return this;
}
removePosition(position) {
for( let i = 0; i < this.__position.length; i++) {
if ( this.__position[i] === position) {
this.__position.splice(i, 1);
}
}
return this.__position;
}
get position() {
return this.__position;
}
set speed(speed = 0) {
if (speed == null || speed < 0) {
return null;
}
this.__speed = [speed];
return this;
}
addSpeed(speed = 0) {
if (speed == null || speed < 0) {
return null;
}
if (this.__speed == null) {
this.__speed = [];
}
this.__speed.append(speed);
return this;
}
removeSpeed(speed) {
for( let i = 0; i < this.__speed.length; i++) {
if ( this.__speed[i] === speed) {
this.__speed.splice(i, 1);
}
}
return this.__speed;
}
get speed() {
return this.__speed;
}
set variation(variation = 0.25) {
if (variation == null || variation < 0) {
return null;
}
this.__variation = [variation];
return this;
}
addVariation(variation = 0.25) {
if (variation == null || variation < 0) {
return null;
}
if (this.__variation == null) {
this.__variation = [];
}
this.__variation.append(variation);
return this;
}
removeVariation(variation) {
for( let i = 0; i < this.__variation.length; i++) {
if ( this.__variation[i] === variation) {
this.__variation.splice(i, 1);
}
}
return this.__variation;
}
get variation() {
return this.__variation;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class PointLight extends X3DLightNode {
constructor(kwargs = {}) {
super(kwargs);
var ambientIntensity = kwargs["ambientIntensity"] || 0;
if (ambientIntensity == null || ambientIntensity < 0) {
return null;
}
if (ambientIntensity == null || ambientIntensity > 1) {
return null;
}
this.__ambientIntensity = ambientIntensity;
var attenuation = kwargs["attenuation"] || [1, 0, 0];
if (attenuation == null || attenuation.length <= 0 || Math.min(attenuation) < 0) {
return null;
}
this.__attenuation = attenuation;
var color = kwargs["color"] || [1, 1, 1];
if (color == null || color.length <= 0 || Math.min(color) < 0) {
return null;
}
if (color == null || color.length <= 0 || Math.max(color) > 1) {
return null;
}
this.__color = color;
var global_ = kwargs["global_"] || true;
this.__global_ = global_;
var intensity = kwargs["intensity"] || 1;
if (intensity == null || intensity < 0) {
return null;
}
if (intensity == null || intensity > 1) {
return null;
}
this.__intensity = intensity;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var location = kwargs["location"] || [0, 0, 0];
this.__location = location;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var on = kwargs["on"] || true;
this.__on = on;
var radius = kwargs["radius"] || 100;
if (radius == null || radius < 0) {
return null;
}
this.__radius = radius;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set ambientIntensity(ambientIntensity = 0) {
if (ambientIntensity == null || ambientIntensity < 0) {
return null;
}
if (ambientIntensity == null || ambientIntensity > 1) {
return null;
}
this.__ambientIntensity = [ambientIntensity];
return this;
}
addAmbientIntensity(ambientIntensity = 0) {
if (ambientIntensity == null || ambientIntensity < 0) {
return null;
}
if (ambientIntensity == null || ambientIntensity > 1) {
return null;
}
if (this.__ambientIntensity == null) {
this.__ambientIntensity = [];
}
this.__ambientIntensity.append(ambientIntensity);
return this;
}
removeAmbientIntensity(ambientIntensity) {
for( let i = 0; i < this.__ambientIntensity.length; i++) {
if ( this.__ambientIntensity[i] === ambientIntensity) {
this.__ambientIntensity.splice(i, 1);
}
}
return this.__ambientIntensity;
}
get ambientIntensity() {
return this.__ambientIntensity;
}
set attenuation(attenuation = [1, 0, 0]) {
if (attenuation == null || attenuation.length <= 0 || Math.min(attenuation) < 0) {
return null;
}
this.__attenuation = [attenuation];
return this;
}
addAttenuation(attenuation = [1, 0, 0]) {
if (attenuation == null || attenuation.length <= 0 || Math.min(attenuation) < 0) {
return null;
}
if (this.__attenuation == null) {
this.__attenuation = [];
}
this.__attenuation.append(attenuation);
return this;
}
removeAttenuation(attenuation) {
for( let i = 0; i < this.__attenuation.length; i++) {
if ( this.__attenuation[i] === attenuation) {
this.__attenuation.splice(i, 1);
}
}
return this.__attenuation;
}
get attenuation() {
return this.__attenuation;
}
set color(color = [1, 1, 1]) {
if (color == null || color.length <= 0 || Math.min(color) < 0) {
return null;
}
if (color == null || color.length <= 0 || Math.max(color) > 1) {
return null;
}
this.__color = [color];
return this;
}
addColor(color = [1, 1, 1]) {
if (color == null || color.length <= 0 || Math.min(color) < 0) {
return null;
}
if (color == null || color.length <= 0 || Math.max(color) > 1) {
return null;
}
if (this.__color == null) {
this.__color = [];
}
this.__color.append(color);
return this;
}
removeColor(color) {
for( let i = 0; i < this.__color.length; i++) {
if ( this.__color[i] === color) {
this.__color.splice(i, 1);
}
}
return this.__color;
}
get color() {
return this.__color;
}
set global(global_ = true) {
this.__global_ = [global_];
return this;
}
addGlobal(global_ = true) {
if (this.__global_ == null) {
this.__global_ = [];
}
this.__global_.append(global_);
return this;
}
removeGlobal(global_) {
for( let i = 0; i < this.__global_.length; i++) {
if ( this.__global_[i] === global_) {
this.__global_.splice(i, 1);
}
}
return this.__global_;
}
get isGlobal() {
return this.__global_;
}
set intensity(intensity = 1) {
if (intensity == null || intensity < 0) {
return null;
}
if (intensity == null || intensity > 1) {
return null;
}
this.__intensity = [intensity];
return this;
}
addIntensity(intensity = 1) {
if (intensity == null || intensity < 0) {
return null;
}
if (intensity == null || intensity > 1) {
return null;
}
if (this.__intensity == null) {
this.__intensity = [];
}
this.__intensity.append(intensity);
return this;
}
removeIntensity(intensity) {
for( let i = 0; i < this.__intensity.length; i++) {
if ( this.__intensity[i] === intensity) {
this.__intensity.splice(i, 1);
}
}
return this.__intensity;
}
get intensity() {
return this.__intensity;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set location(location = [0, 0, 0]) {
this.__location = [location];
return this;
}
addLocation(location = [0, 0, 0]) {
if (this.__location == null) {
this.__location = [];
}
this.__location.append(location);
return this;
}
removeLocation(location) {
for( let i = 0; i < this.__location.length; i++) {
if ( this.__location[i] === location) {
this.__location.splice(i, 1);
}
}
return this.__location;
}
get location() {
return this.__location;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set on(on = true) {
this.__on = [on];
return this;
}
addOn(on = true) {
if (this.__on == null) {
this.__on = [];
}
this.__on.append(on);
return this;
}
removeOn(on) {
for( let i = 0; i < this.__on.length; i++) {
if ( this.__on[i] === on) {
this.__on.splice(i, 1);
}
}
return this.__on;
}
get isOn() {
return this.__on;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class PointPickSensor extends X3DPickSensorNode {
constructor(kwargs = {}) {
super(kwargs);
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var intersectionType = kwargs["intersectionType"] || "BOUNDS";
this.__intersectionType = intersectionType;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var matchCriterion = kwargs["matchCriterion"] || "MATCH_ANY";
if ('MATCH_ANY' === matchCriterion) {
} else if ('MATCH_EVERY' === matchCriterion) {
} else if ('MATCH_ONLY_ONE' === matchCriterion) {
} else {
return null;
}
this.__matchCriterion = matchCriterion;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var objectType = kwargs["objectType"] || ["ALL"];
this.__objectType = objectType;
var pickedGeometry = kwargs["pickedGeometry"] || null;
this.__pickedGeometry = pickedGeometry;
var pickedPoint = kwargs["pickedPoint"] || null;
this.__pickedPoint = pickedPoint;
var pickingGeometry = kwargs["pickingGeometry"] || null;
this.__pickingGeometry = pickingGeometry;
var pickTarget = kwargs["pickTarget"] || null;
this.__pickTarget = pickTarget;
var sortOrder = kwargs["sortOrder"] || "CLOSEST";
this.__sortOrder = sortOrder;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
set matchCriterion(matchCriterion = "MATCH_ANY") {
if ('MATCH_ANY' === matchCriterion) {
} else if ('MATCH_EVERY' === matchCriterion) {
} else if ('MATCH_ONLY_ONE' === matchCriterion) {
} else {
return null;
}
this.__matchCriterion = [matchCriterion];
return this;
}
addMatchCriterion(matchCriterion = "MATCH_ANY") {
if ('MATCH_ANY' === matchCriterion) {
} else if ('MATCH_EVERY' === matchCriterion) {
} else if ('MATCH_ONLY_ONE' === matchCriterion) {
} else {
return null;
}
if (this.__matchCriterion == null) {
this.__matchCriterion = [];
}
this.__matchCriterion.append(matchCriterion);
return this;
}
removeMatchCriterion(matchCriterion) {
for( let i = 0; i < this.__matchCriterion.length; i++) {
if ( this.__matchCriterion[i] === matchCriterion) {
this.__matchCriterion.splice(i, 1);
}
}
return this.__matchCriterion;
}
get matchCriterion() {
return this.__matchCriterion;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set objectType(objectType = ["ALL"]) {
this.__objectType = [objectType];
return this;
}
addObjectType(objectType = ["ALL"]) {
if (this.__objectType == null) {
this.__objectType = [];
}
this.__objectType.append(objectType);
return this;
}
removeObjectType(objectType) {
for( let i = 0; i < this.__objectType.length; i++) {
if ( this.__objectType[i] === objectType) {
this.__objectType.splice(i, 1);
}
}
return this.__objectType;
}
get objectType() {
return this.__objectType;
}
removePickedGeometry(pickedGeometry) {
for( let i = 0; i < this.__pickedGeometry.length; i++) {
if ( this.__pickedGeometry[i] === pickedGeometry) {
this.__pickedGeometry.splice(i, 1);
}
}
return this.__pickedGeometry;
}
get pickedGeometry() {
return this.__pickedGeometry;
}
removePickedPoint(pickedPoint) {
for( let i = 0; i < this.__pickedPoint.length; i++) {
if ( this.__pickedPoint[i] === pickedPoint) {
this.__pickedPoint.splice(i, 1);
}
}
return this.__pickedPoint;
}
get pickedPoint() {
return this.__pickedPoint;
}
set pickingGeometry(pickingGeometry = null) {
this.__pickingGeometry = [pickingGeometry];
return this;
}
addPickingGeometry(pickingGeometry = null) {
if (this.__pickingGeometry == null) {
this.__pickingGeometry = [];
}
this.__pickingGeometry.append(pickingGeometry);
return this;
}
removePickingGeometry(pickingGeometry) {
for( let i = 0; i < this.__pickingGeometry.length; i++) {
if ( this.__pickingGeometry[i] === pickingGeometry) {
this.__pickingGeometry.splice(i, 1);
}
}
return this.__pickingGeometry;
}
get pickingGeometry() {
return this.__pickingGeometry;
}
set pickTarget(pickTarget = null) {
this.__pickTarget = [pickTarget];
return this;
}
addPickTarget(pickTarget = null) {
if (this.__pickTarget == null) {
this.__pickTarget = [];
}
this.__pickTarget.append(pickTarget);
return this;
}
removePickTarget(pickTarget) {
for( let i = 0; i < this.__pickTarget.length; i++) {
if ( this.__pickTarget[i] === pickTarget) {
this.__pickTarget.splice(i, 1);
}
}
return this.__pickTarget;
}
get pickTarget() {
return this.__pickTarget;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__pickedGeometry === null) {
} else if (typeof this.__pickedGeometry.toXMLNode === 'function') {
str += this.__pickedGeometry.toXMLNode('pickedGeometry');
} else if (typeof this.__pickedGeometry === 'string') {
str += ' pickedGeometry="'+this.__pickedGeometry+'"';
} else if (Array.isArray( this.__pickedGeometry)) {
if (typeof this.__pickedGeometry[0].toXMLNode !== 'function') {
str += ' pickedGeometry="'+this.__pickedGeometry.join(' ')+'"';
} else {
for (let i in this.__pickedGeometry) {
if (typeof this.__pickedGeometry[i].toXMLNode === 'function') {
str += this.__pickedGeometry[i].toXMLNode('pickedGeometry');
}
}
}
} else {
str += ' pickedGeometry="'+this.__pickedGeometry+'"';
}
if (this.__pickingGeometry === null) {
} else if (typeof this.__pickingGeometry.toXMLNode === 'function') {
str += this.__pickingGeometry.toXMLNode('pickingGeometry');
} else if (typeof this.__pickingGeometry === 'string') {
str += ' pickingGeometry="'+this.__pickingGeometry+'"';
} else if (Array.isArray( this.__pickingGeometry)) {
if (typeof this.__pickingGeometry[0].toXMLNode !== 'function') {
str += ' pickingGeometry="'+this.__pickingGeometry.join(' ')+'"';
} else {
for (let i in this.__pickingGeometry) {
if (typeof this.__pickingGeometry[i].toXMLNode === 'function') {
str += this.__pickingGeometry[i].toXMLNode('pickingGeometry');
}
}
}
} else {
str += ' pickingGeometry="'+this.__pickingGeometry+'"';
}
if (this.__pickTarget === null) {
} else if (typeof this.__pickTarget.toXMLNode === 'function') {
str += this.__pickTarget.toXMLNode('pickTarget');
} else if (typeof this.__pickTarget === 'string') {
str += ' pickTarget="'+this.__pickTarget+'"';
} else if (Array.isArray( this.__pickTarget)) {
if (typeof this.__pickTarget[0].toXMLNode !== 'function') {
str += ' pickTarget="'+this.__pickTarget.join(' ')+'"';
} else {
for (let i in this.__pickTarget) {
if (typeof this.__pickTarget[i].toXMLNode === 'function') {
str += this.__pickTarget[i].toXMLNode('pickTarget');
}
}
}
} else {
str += ' pickTarget="'+this.__pickTarget+'"';
}
str += ''
return str;
}
}
export class PointProperties extends X3DAppearanceChildNode {
constructor(kwargs = {}) {
super(kwargs);
var colorMode = kwargs["colorMode"] || "TEXTURE_AND_POINT_COLOR";
if ('POINT_COLOR' === colorMode) {
} else if ('TEXTURE_COLOR' === colorMode) {
} else if ('TEXTURE_AND_POINT_COLOR' === colorMode) {
} else {
return null;
}
this.__colorMode = colorMode;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var pointSizeAttenuation = kwargs["pointSizeAttenuation"] || [1, 0, 0];
this.__pointSizeAttenuation = pointSizeAttenuation;
var pointSizeMaxValue = kwargs["pointSizeMaxValue"] || 1;
if (pointSizeMaxValue == null || pointSizeMaxValue < 0) {
return null;
}
this.__pointSizeMaxValue = pointSizeMaxValue;
var pointSizeMinValue = kwargs["pointSizeMinValue"] || 1;
if (pointSizeMinValue == null || pointSizeMinValue < 0) {
return null;
}
this.__pointSizeMinValue = pointSizeMinValue;
var pointSizeScaleFactor = kwargs["pointSizeScaleFactor"] || 1;
if (pointSizeScaleFactor == null || pointSizeScaleFactor < 1) {
return null;
}
this.__pointSizeScaleFactor = pointSizeScaleFactor;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set colorMode(colorMode = "TEXTURE_AND_POINT_COLOR") {
if ('POINT_COLOR' === colorMode) {
} else if ('TEXTURE_COLOR' === colorMode) {
} else if ('TEXTURE_AND_POINT_COLOR' === colorMode) {
} else {
return null;
}
this.__colorMode = [colorMode];
return this;
}
addColorMode(colorMode = "TEXTURE_AND_POINT_COLOR") {
if ('POINT_COLOR' === colorMode) {
} else if ('TEXTURE_COLOR' === colorMode) {
} else if ('TEXTURE_AND_POINT_COLOR' === colorMode) {
} else {
return null;
}
if (this.__colorMode == null) {
this.__colorMode = [];
}
this.__colorMode.append(colorMode);
return this;
}
removeColorMode(colorMode) {
for( let i = 0; i < this.__colorMode.length; i++) {
if ( this.__colorMode[i] === colorMode) {
this.__colorMode.splice(i, 1);
}
}
return this.__colorMode;
}
get colorMode() {
return this.__colorMode;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set pointSizeAttenuation(pointSizeAttenuation = [1, 0, 0]) {
this.__pointSizeAttenuation = [pointSizeAttenuation];
return this;
}
addPointSizeAttenuation(pointSizeAttenuation = [1, 0, 0]) {
if (this.__pointSizeAttenuation == null) {
this.__pointSizeAttenuation = [];
}
this.__pointSizeAttenuation.append(pointSizeAttenuation);
return this;
}
removePointSizeAttenuation(pointSizeAttenuation) {
for( let i = 0; i < this.__pointSizeAttenuation.length; i++) {
if ( this.__pointSizeAttenuation[i] === pointSizeAttenuation) {
this.__pointSizeAttenuation.splice(i, 1);
}
}
return this.__pointSizeAttenuation;
}
get pointSizeAttenuation() {
return this.__pointSizeAttenuation;
}
set pointSizeMaxValue(pointSizeMaxValue = 1) {
if (pointSizeMaxValue == null || pointSizeMaxValue < 0) {
return null;
}
this.__pointSizeMaxValue = [pointSizeMaxValue];
return this;
}
addPointSizeMaxValue(pointSizeMaxValue = 1) {
if (pointSizeMaxValue == null || pointSizeMaxValue < 0) {
return null;
}
if (this.__pointSizeMaxValue == null) {
this.__pointSizeMaxValue = [];
}
this.__pointSizeMaxValue.append(pointSizeMaxValue);
return this;
}
removePointSizeMaxValue(pointSizeMaxValue) {
for( let i = 0; i < this.__pointSizeMaxValue.length; i++) {
if ( this.__pointSizeMaxValue[i] === pointSizeMaxValue) {
this.__pointSizeMaxValue.splice(i, 1);
}
}
return this.__pointSizeMaxValue;
}
get pointSizeMaxValue() {
return this.__pointSizeMaxValue;
}
set pointSizeMinValue(pointSizeMinValue = 1) {
if (pointSizeMinValue == null || pointSizeMinValue < 0) {
return null;
}
this.__pointSizeMinValue = [pointSizeMinValue];
return this;
}
addPointSizeMinValue(pointSizeMinValue = 1) {
if (pointSizeMinValue == null || pointSizeMinValue < 0) {
return null;
}
if (this.__pointSizeMinValue == null) {
this.__pointSizeMinValue = [];
}
this.__pointSizeMinValue.append(pointSizeMinValue);
return this;
}
removePointSizeMinValue(pointSizeMinValue) {
for( let i = 0; i < this.__pointSizeMinValue.length; i++) {
if ( this.__pointSizeMinValue[i] === pointSizeMinValue) {
this.__pointSizeMinValue.splice(i, 1);
}
}
return this.__pointSizeMinValue;
}
get pointSizeMinValue() {
return this.__pointSizeMinValue;
}
set pointSizeScaleFactor(pointSizeScaleFactor = 1) {
if (pointSizeScaleFactor == null || pointSizeScaleFactor < 1) {
return null;
}
this.__pointSizeScaleFactor = [pointSizeScaleFactor];
return this;
}
addPointSizeScaleFactor(pointSizeScaleFactor = 1) {
if (pointSizeScaleFactor == null || pointSizeScaleFactor < 1) {
return null;
}
if (this.__pointSizeScaleFactor == null) {
this.__pointSizeScaleFactor = [];
}
this.__pointSizeScaleFactor.append(pointSizeScaleFactor);
return this;
}
removePointSizeScaleFactor(pointSizeScaleFactor) {
for( let i = 0; i < this.__pointSizeScaleFactor.length; i++) {
if ( this.__pointSizeScaleFactor[i] === pointSizeScaleFactor) {
this.__pointSizeScaleFactor.splice(i, 1);
}
}
return this.__pointSizeScaleFactor;
}
get pointSizeScaleFactor() {
return this.__pointSizeScaleFactor;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class PointSet extends X3DGeometryNode {
constructor(kwargs = {}) {
super(kwargs);
var attrib = kwargs["attrib"] || null;
this.__attrib = attrib;
var color = kwargs["color"] || null;
this.__color = color;
var coord = kwargs["coord"] || null;
this.__coord = coord;
var fogCoord = kwargs["fogCoord"] || null;
this.__fogCoord = fogCoord;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set attrib(attrib = null) {
this.__attrib = [attrib];
return this;
}
addAttrib(attrib = null) {
if (this.__attrib == null) {
this.__attrib = [];
}
this.__attrib.append(attrib);
return this;
}
removeAttrib(attrib) {
for( let i = 0; i < this.__attrib.length; i++) {
if ( this.__attrib[i] === attrib) {
this.__attrib.splice(i, 1);
}
}
return this.__attrib;
}
get attrib() {
return this.__attrib;
}
set color(color = null) {
this.__color = [color];
return this;
}
addColor(color = null) {
if (this.__color == null) {
this.__color = [];
}
this.__color.append(color);
return this;
}
removeColor(color) {
for( let i = 0; i < this.__color.length; i++) {
if ( this.__color[i] === color) {
this.__color.splice(i, 1);
}
}
return this.__color;
}
get color() {
return this.__color;
}
set coord(coord = null) {
this.__coord = [coord];
return this;
}
addCoord(coord = null) {
if (this.__coord == null) {
this.__coord = [];
}
this.__coord.append(coord);
return this;
}
removeCoord(coord) {
for( let i = 0; i < this.__coord.length; i++) {
if ( this.__coord[i] === coord) {
this.__coord.splice(i, 1);
}
}
return this.__coord;
}
get coord() {
return this.__coord;
}
set fogCoord(fogCoord = null) {
this.__fogCoord = [fogCoord];
return this;
}
addFogCoord(fogCoord = null) {
if (this.__fogCoord == null) {
this.__fogCoord = [];
}
this.__fogCoord.append(fogCoord);
return this;
}
removeFogCoord(fogCoord) {
for( let i = 0; i < this.__fogCoord.length; i++) {
if ( this.__fogCoord[i] === fogCoord) {
this.__fogCoord.splice(i, 1);
}
}
return this.__fogCoord;
}
get fogCoord() {
return this.__fogCoord;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__attrib === null) {
} else if (typeof this.__attrib.toXMLNode === 'function') {
str += this.__attrib.toXMLNode('attrib');
} else if (typeof this.__attrib === 'string') {
str += ' attrib="'+this.__attrib+'"';
} else if (Array.isArray( this.__attrib)) {
if (typeof this.__attrib[0].toXMLNode !== 'function') {
str += ' attrib="'+this.__attrib.join(' ')+'"';
} else {
for (let i in this.__attrib) {
if (typeof this.__attrib[i].toXMLNode === 'function') {
str += this.__attrib[i].toXMLNode('attrib');
}
}
}
} else {
str += ' attrib="'+this.__attrib+'"';
}
if (this.__color === null) {
} else if (typeof this.__color.toXMLNode === 'function') {
str += this.__color.toXMLNode('color');
} else if (typeof this.__color === 'string') {
str += ' color="'+this.__color+'"';
} else if (Array.isArray( this.__color)) {
if (typeof this.__color[0].toXMLNode !== 'function') {
str += ' color="'+this.__color.join(' ')+'"';
} else {
for (let i in this.__color) {
if (typeof this.__color[i].toXMLNode === 'function') {
str += this.__color[i].toXMLNode('color');
}
}
}
} else {
str += ' color="'+this.__color+'"';
}
if (this.__coord === null) {
} else if (typeof this.__coord.toXMLNode === 'function') {
str += this.__coord.toXMLNode('coord');
} else if (typeof this.__coord === 'string') {
str += ' coord="'+this.__coord+'"';
} else if (Array.isArray( this.__coord)) {
if (typeof this.__coord[0].toXMLNode !== 'function') {
str += ' coord="'+this.__coord.join(' ')+'"';
} else {
for (let i in this.__coord) {
if (typeof this.__coord[i].toXMLNode === 'function') {
str += this.__coord[i].toXMLNode('coord');
}
}
}
} else {
str += ' coord="'+this.__coord+'"';
}
if (this.__fogCoord === null) {
} else if (typeof this.__fogCoord.toXMLNode === 'function') {
str += this.__fogCoord.toXMLNode('fogCoord');
} else if (typeof this.__fogCoord === 'string') {
str += ' fogCoord="'+this.__fogCoord+'"';
} else if (Array.isArray( this.__fogCoord)) {
if (typeof this.__fogCoord[0].toXMLNode !== 'function') {
str += ' fogCoord="'+this.__fogCoord.join(' ')+'"';
} else {
for (let i in this.__fogCoord) {
if (typeof this.__fogCoord[i].toXMLNode === 'function') {
str += this.__fogCoord[i].toXMLNode('fogCoord');
}
}
}
} else {
str += ' fogCoord="'+this.__fogCoord+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class Polyline2D extends X3DGeometryNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var lineSegments = kwargs["lineSegments"] || null;
this.__lineSegments = lineSegments;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class PolylineEmitter extends X3DParticleEmitterNode {
constructor(kwargs = {}) {
super(kwargs);
var coord = kwargs["coord"] || null;
this.__coord = coord;
var coordIndex = kwargs["coordIndex"] || [-1];
if (coordIndex == null || coordIndex.length <= 0 || Math.min(coordIndex) < -1) {
return null;
}
this.__coordIndex = coordIndex;
var direction = kwargs["direction"] || [0, 1, 0];
if (direction == null || direction.length <= 0 || Math.min(direction) < -1) {
return null;
}
if (direction == null || direction.length <= 0 || Math.max(direction) > 1) {
return null;
}
this.__direction = direction;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var mass = kwargs["mass"] || 0;
if (mass == null || mass < 0) {
return null;
}
this.__mass = mass;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var coordIndex = kwargs["coordIndex"] || null;
if (coordIndex == null || coordIndex.length <= 0 || Math.min(coordIndex) < -1) {
return null;
}
this.__coordIndex = coordIndex;
var speed = kwargs["speed"] || 0;
if (speed == null || speed < 0) {
return null;
}
this.__speed = speed;
var surfaceArea = kwargs["surfaceArea"] || 0;
if (surfaceArea == null || surfaceArea < 0) {
return null;
}
this.__surfaceArea = surfaceArea;
var variation = kwargs["variation"] || 0.25;
if (variation == null || variation < 0) {
return null;
}
this.__variation = variation;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set coord(coord = null) {
this.__coord = [coord];
return this;
}
addCoord(coord = null) {
if (this.__coord == null) {
this.__coord = [];
}
this.__coord.append(coord);
return this;
}
removeCoord(coord) {
for( let i = 0; i < this.__coord.length; i++) {
if ( this.__coord[i] === coord) {
this.__coord.splice(i, 1);
}
}
return this.__coord;
}
get coord() {
return this.__coord;
}
set direction(direction = [0, 1, 0]) {
if (direction == null || direction.length <= 0 || Math.min(direction) < -1) {
return null;
}
if (direction == null || direction.length <= 0 || Math.max(direction) > 1) {
return null;
}
this.__direction = [direction];
return this;
}
addDirection(direction = [0, 1, 0]) {
if (direction == null || direction.length <= 0 || Math.min(direction) < -1) {
return null;
}
if (direction == null || direction.length <= 0 || Math.max(direction) > 1) {
return null;
}
if (this.__direction == null) {
this.__direction = [];
}
this.__direction.append(direction);
return this;
}
removeDirection(direction) {
for( let i = 0; i < this.__direction.length; i++) {
if ( this.__direction[i] === direction) {
this.__direction.splice(i, 1);
}
}
return this.__direction;
}
get direction() {
return this.__direction;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set mass(mass = 0) {
if (mass == null || mass < 0) {
return null;
}
this.__mass = [mass];
return this;
}
addMass(mass = 0) {
if (mass == null || mass < 0) {
return null;
}
if (this.__mass == null) {
this.__mass = [];
}
this.__mass.append(mass);
return this;
}
removeMass(mass) {
for( let i = 0; i < this.__mass.length; i++) {
if ( this.__mass[i] === mass) {
this.__mass.splice(i, 1);
}
}
return this.__mass;
}
get mass() {
return this.__mass;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set set_coordIndex(coordIndex = null) {
if (coordIndex == null || coordIndex.length <= 0 || Math.min(coordIndex) < -1) {
return null;
}
this.__coordIndex = [coordIndex];
return this;
}
set speed(speed = 0) {
if (speed == null || speed < 0) {
return null;
}
this.__speed = [speed];
return this;
}
addSpeed(speed = 0) {
if (speed == null || speed < 0) {
return null;
}
if (this.__speed == null) {
this.__speed = [];
}
this.__speed.append(speed);
return this;
}
removeSpeed(speed) {
for( let i = 0; i < this.__speed.length; i++) {
if ( this.__speed[i] === speed) {
this.__speed.splice(i, 1);
}
}
return this.__speed;
}
get speed() {
return this.__speed;
}
set variation(variation = 0.25) {
if (variation == null || variation < 0) {
return null;
}
this.__variation = [variation];
return this;
}
addVariation(variation = 0.25) {
if (variation == null || variation < 0) {
return null;
}
if (this.__variation == null) {
this.__variation = [];
}
this.__variation.append(variation);
return this;
}
removeVariation(variation) {
for( let i = 0; i < this.__variation.length; i++) {
if ( this.__variation[i] === variation) {
this.__variation.splice(i, 1);
}
}
return this.__variation;
}
get variation() {
return this.__variation;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__coord === null) {
} else if (typeof this.__coord.toXMLNode === 'function') {
str += this.__coord.toXMLNode('coord');
} else if (typeof this.__coord === 'string') {
str += ' coord="'+this.__coord+'"';
} else if (Array.isArray( this.__coord)) {
if (typeof this.__coord[0].toXMLNode !== 'function') {
str += ' coord="'+this.__coord.join(' ')+'"';
} else {
for (let i in this.__coord) {
if (typeof this.__coord[i].toXMLNode === 'function') {
str += this.__coord[i].toXMLNode('coord');
}
}
}
} else {
str += ' coord="'+this.__coord+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class Polypoint2D extends X3DGeometryNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var point = kwargs["point"] || null;
this.__point = point;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set point(point = null) {
this.__point = [point];
return this;
}
addPoint(point = null) {
if (this.__point == null) {
this.__point = [];
}
this.__point.append(point);
return this;
}
removePoint(point) {
for( let i = 0; i < this.__point.length; i++) {
if ( this.__point[i] === point) {
this.__point.splice(i, 1);
}
}
return this.__point;
}
get point() {
return this.__point;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class PositionChaser extends X3DChaserNode {
constructor(kwargs = {}) {
super(kwargs);
var duration = kwargs["duration"] || 1;
if (duration == null || duration < 0) {
return null;
}
this.__duration = duration;
var initialDestination = kwargs["initialDestination"] || [0, 0, 0];
this.__initialDestination = initialDestination;
var initialValue = kwargs["initialValue"] || [0, 0, 0];
this.__initialValue = initialValue;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var destination = kwargs["destination"] || null;
this.__destination = destination;
var value = kwargs["value"] || null;
this.__value = value;
var value_changed = kwargs["value_changed"] || null;
this.__value_changed = value_changed;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set set_destination(destination = null) {
this.__destination = [destination];
return this;
}
set set_value(value = null) {
this.__value = [value];
return this;
}
removevalue_changed(value_changed) {
for( let i = 0; i < this.__value_changed.length; i++) {
if ( this.__value_changed[i] === value_changed) {
this.__value_changed.splice(i, 1);
}
}
return this.__value_changed;
}
get value_changed() {
return this.__value_changed;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class PositionChaser2D extends X3DChaserNode {
constructor(kwargs = {}) {
super(kwargs);
var duration = kwargs["duration"] || 1;
if (duration == null || duration < 0) {
return null;
}
this.__duration = duration;
var initialDestination = kwargs["initialDestination"] || [0, 0];
this.__initialDestination = initialDestination;
var initialValue = kwargs["initialValue"] || [0, 0];
this.__initialValue = initialValue;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var destination = kwargs["destination"] || null;
this.__destination = destination;
var value = kwargs["value"] || null;
this.__value = value;
var value_changed = kwargs["value_changed"] || null;
this.__value_changed = value_changed;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set set_destination(destination = null) {
this.__destination = [destination];
return this;
}
set set_value(value = null) {
this.__value = [value];
return this;
}
removevalue_changed(value_changed) {
for( let i = 0; i < this.__value_changed.length; i++) {
if ( this.__value_changed[i] === value_changed) {
this.__value_changed.splice(i, 1);
}
}
return this.__value_changed;
}
get value_changed() {
return this.__value_changed;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class PositionDamper extends X3DDamperNode {
constructor(kwargs = {}) {
super(kwargs);
var initialDestination = kwargs["initialDestination"] || [0, 0, 0];
this.__initialDestination = initialDestination;
var initialValue = kwargs["initialValue"] || [0, 0, 0];
this.__initialValue = initialValue;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var order = kwargs["order"] || 3;
if (order == null || order < 0) {
return null;
}
if (order == null || order > 5) {
return null;
}
this.__order = order;
var destination = kwargs["destination"] || null;
this.__destination = destination;
var value = kwargs["value"] || null;
this.__value = value;
var tau = kwargs["tau"] || 0.3;
if (tau == null || tau < 0) {
return null;
}
this.__tau = tau;
var tolerance = kwargs["tolerance"] || -1;
this.__tolerance = tolerance;
var value_changed = kwargs["value_changed"] || null;
this.__value_changed = value_changed;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set set_destination(destination = null) {
this.__destination = [destination];
return this;
}
set set_value(value = null) {
this.__value = [value];
return this;
}
set tau(tau = 0.3) {
if (tau == null || tau < 0) {
return null;
}
this.__tau = [tau];
return this;
}
addTau(tau = 0.3) {
if (tau == null || tau < 0) {
return null;
}
if (this.__tau == null) {
this.__tau = [];
}
this.__tau.append(tau);
return this;
}
removeTau(tau) {
for( let i = 0; i < this.__tau.length; i++) {
if ( this.__tau[i] === tau) {
this.__tau.splice(i, 1);
}
}
return this.__tau;
}
get tau() {
return this.__tau;
}
set tolerance(tolerance = -1) {
this.__tolerance = [tolerance];
return this;
}
addTolerance(tolerance = -1) {
if (this.__tolerance == null) {
this.__tolerance = [];
}
this.__tolerance.append(tolerance);
return this;
}
removeTolerance(tolerance) {
for( let i = 0; i < this.__tolerance.length; i++) {
if ( this.__tolerance[i] === tolerance) {
this.__tolerance.splice(i, 1);
}
}
return this.__tolerance;
}
get tolerance() {
return this.__tolerance;
}
removevalue_changed(value_changed) {
for( let i = 0; i < this.__value_changed.length; i++) {
if ( this.__value_changed[i] === value_changed) {
this.__value_changed.splice(i, 1);
}
}
return this.__value_changed;
}
get value_changed() {
return this.__value_changed;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class PositionDamper2D extends X3DDamperNode {
constructor(kwargs = {}) {
super(kwargs);
var initialDestination = kwargs["initialDestination"] || [0, 0];
this.__initialDestination = initialDestination;
var initialValue = kwargs["initialValue"] || [0, 0];
this.__initialValue = initialValue;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var order = kwargs["order"] || 3;
if (order == null || order < 0) {
return null;
}
if (order == null || order > 5) {
return null;
}
this.__order = order;
var destination = kwargs["destination"] || null;
this.__destination = destination;
var value = kwargs["value"] || null;
this.__value = value;
var tau = kwargs["tau"] || 0.3;
if (tau == null || tau < 0) {
return null;
}
this.__tau = tau;
var tolerance = kwargs["tolerance"] || -1;
this.__tolerance = tolerance;
var value_changed = kwargs["value_changed"] || null;
this.__value_changed = value_changed;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set set_destination(destination = null) {
this.__destination = [destination];
return this;
}
set set_value(value = null) {
this.__value = [value];
return this;
}
set tau(tau = 0.3) {
if (tau == null || tau < 0) {
return null;
}
this.__tau = [tau];
return this;
}
addTau(tau = 0.3) {
if (tau == null || tau < 0) {
return null;
}
if (this.__tau == null) {
this.__tau = [];
}
this.__tau.append(tau);
return this;
}
removeTau(tau) {
for( let i = 0; i < this.__tau.length; i++) {
if ( this.__tau[i] === tau) {
this.__tau.splice(i, 1);
}
}
return this.__tau;
}
get tau() {
return this.__tau;
}
set tolerance(tolerance = -1) {
this.__tolerance = [tolerance];
return this;
}
addTolerance(tolerance = -1) {
if (this.__tolerance == null) {
this.__tolerance = [];
}
this.__tolerance.append(tolerance);
return this;
}
removeTolerance(tolerance) {
for( let i = 0; i < this.__tolerance.length; i++) {
if ( this.__tolerance[i] === tolerance) {
this.__tolerance.splice(i, 1);
}
}
return this.__tolerance;
}
get tolerance() {
return this.__tolerance;
}
removevalue_changed(value_changed) {
for( let i = 0; i < this.__value_changed.length; i++) {
if ( this.__value_changed[i] === value_changed) {
this.__value_changed.splice(i, 1);
}
}
return this.__value_changed;
}
get value_changed() {
return this.__value_changed;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class PositionInterpolator extends X3DInterpolatorNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var key = kwargs["key"] || null;
this.__key = key;
var keyValue = kwargs["keyValue"] || null;
this.__keyValue = keyValue;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var fraction = kwargs["fraction"] || null;
this.__fraction = fraction;
var value_changed = kwargs["value_changed"] || null;
this.__value_changed = value_changed;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set key(key = null) {
this.__key = [key];
return this;
}
addKey(key = null) {
if (this.__key == null) {
this.__key = [];
}
this.__key.append(key);
return this;
}
removeKey(key) {
for( let i = 0; i < this.__key.length; i++) {
if ( this.__key[i] === key) {
this.__key.splice(i, 1);
}
}
return this.__key;
}
get key() {
return this.__key;
}
set keyValue(keyValue = null) {
this.__keyValue = [keyValue];
return this;
}
addKeyValue(keyValue = null) {
if (this.__keyValue == null) {
this.__keyValue = [];
}
this.__keyValue.append(keyValue);
return this;
}
removeKeyValue(keyValue) {
for( let i = 0; i < this.__keyValue.length; i++) {
if ( this.__keyValue[i] === keyValue) {
this.__keyValue.splice(i, 1);
}
}
return this.__keyValue;
}
get keyValue() {
return this.__keyValue;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set set_fraction(fraction = null) {
this.__fraction = [fraction];
return this;
}
removevalue_changed(value_changed) {
for( let i = 0; i < this.__value_changed.length; i++) {
if ( this.__value_changed[i] === value_changed) {
this.__value_changed.splice(i, 1);
}
}
return this.__value_changed;
}
get value_changed() {
return this.__value_changed;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class PositionInterpolator2D extends X3DInterpolatorNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var key = kwargs["key"] || null;
this.__key = key;
var keyValue = kwargs["keyValue"] || null;
this.__keyValue = keyValue;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var fraction = kwargs["fraction"] || null;
this.__fraction = fraction;
var value_changed = kwargs["value_changed"] || null;
this.__value_changed = value_changed;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set key(key = null) {
this.__key = [key];
return this;
}
addKey(key = null) {
if (this.__key == null) {
this.__key = [];
}
this.__key.append(key);
return this;
}
removeKey(key) {
for( let i = 0; i < this.__key.length; i++) {
if ( this.__key[i] === key) {
this.__key.splice(i, 1);
}
}
return this.__key;
}
get key() {
return this.__key;
}
set keyValue(keyValue = null) {
this.__keyValue = [keyValue];
return this;
}
addKeyValue(keyValue = null) {
if (this.__keyValue == null) {
this.__keyValue = [];
}
this.__keyValue.append(keyValue);
return this;
}
removeKeyValue(keyValue) {
for( let i = 0; i < this.__keyValue.length; i++) {
if ( this.__keyValue[i] === keyValue) {
this.__keyValue.splice(i, 1);
}
}
return this.__keyValue;
}
get keyValue() {
return this.__keyValue;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set set_fraction(fraction = null) {
this.__fraction = [fraction];
return this;
}
removevalue_changed(value_changed) {
for( let i = 0; i < this.__value_changed.length; i++) {
if ( this.__value_changed[i] === value_changed) {
this.__value_changed.splice(i, 1);
}
}
return this.__value_changed;
}
get value_changed() {
return this.__value_changed;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class PrimitivePickSensor extends X3DPickSensorNode {
constructor(kwargs = {}) {
super(kwargs);
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var intersectionType = kwargs["intersectionType"] || "BOUNDS";
this.__intersectionType = intersectionType;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var matchCriterion = kwargs["matchCriterion"] || "MATCH_ANY";
if ('MATCH_ANY' === matchCriterion) {
} else if ('MATCH_EVERY' === matchCriterion) {
} else if ('MATCH_ONLY_ONE' === matchCriterion) {
} else {
return null;
}
this.__matchCriterion = matchCriterion;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var objectType = kwargs["objectType"] || ["ALL"];
this.__objectType = objectType;
var pickedGeometry = kwargs["pickedGeometry"] || null;
this.__pickedGeometry = pickedGeometry;
var pickingGeometry = kwargs["pickingGeometry"] || null;
this.__pickingGeometry = pickingGeometry;
var pickTarget = kwargs["pickTarget"] || null;
this.__pickTarget = pickTarget;
var sortOrder = kwargs["sortOrder"] || "CLOSEST";
this.__sortOrder = sortOrder;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
set matchCriterion(matchCriterion = "MATCH_ANY") {
if ('MATCH_ANY' === matchCriterion) {
} else if ('MATCH_EVERY' === matchCriterion) {
} else if ('MATCH_ONLY_ONE' === matchCriterion) {
} else {
return null;
}
this.__matchCriterion = [matchCriterion];
return this;
}
addMatchCriterion(matchCriterion = "MATCH_ANY") {
if ('MATCH_ANY' === matchCriterion) {
} else if ('MATCH_EVERY' === matchCriterion) {
} else if ('MATCH_ONLY_ONE' === matchCriterion) {
} else {
return null;
}
if (this.__matchCriterion == null) {
this.__matchCriterion = [];
}
this.__matchCriterion.append(matchCriterion);
return this;
}
removeMatchCriterion(matchCriterion) {
for( let i = 0; i < this.__matchCriterion.length; i++) {
if ( this.__matchCriterion[i] === matchCriterion) {
this.__matchCriterion.splice(i, 1);
}
}
return this.__matchCriterion;
}
get matchCriterion() {
return this.__matchCriterion;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set objectType(objectType = ["ALL"]) {
this.__objectType = [objectType];
return this;
}
addObjectType(objectType = ["ALL"]) {
if (this.__objectType == null) {
this.__objectType = [];
}
this.__objectType.append(objectType);
return this;
}
removeObjectType(objectType) {
for( let i = 0; i < this.__objectType.length; i++) {
if ( this.__objectType[i] === objectType) {
this.__objectType.splice(i, 1);
}
}
return this.__objectType;
}
get objectType() {
return this.__objectType;
}
removePickedGeometry(pickedGeometry) {
for( let i = 0; i < this.__pickedGeometry.length; i++) {
if ( this.__pickedGeometry[i] === pickedGeometry) {
this.__pickedGeometry.splice(i, 1);
}
}
return this.__pickedGeometry;
}
get pickedGeometry() {
return this.__pickedGeometry;
}
set pickingGeometry(pickingGeometry = null) {
this.__pickingGeometry = [pickingGeometry];
return this;
}
addPickingGeometry(pickingGeometry = null) {
if (this.__pickingGeometry == null) {
this.__pickingGeometry = [];
}
this.__pickingGeometry.append(pickingGeometry);
return this;
}
removePickingGeometry(pickingGeometry) {
for( let i = 0; i < this.__pickingGeometry.length; i++) {
if ( this.__pickingGeometry[i] === pickingGeometry) {
this.__pickingGeometry.splice(i, 1);
}
}
return this.__pickingGeometry;
}
get pickingGeometry() {
return this.__pickingGeometry;
}
set pickTarget(pickTarget = null) {
this.__pickTarget = [pickTarget];
return this;
}
addPickTarget(pickTarget = null) {
if (this.__pickTarget == null) {
this.__pickTarget = [];
}
this.__pickTarget.append(pickTarget);
return this;
}
removePickTarget(pickTarget) {
for( let i = 0; i < this.__pickTarget.length; i++) {
if ( this.__pickTarget[i] === pickTarget) {
this.__pickTarget.splice(i, 1);
}
}
return this.__pickTarget;
}
get pickTarget() {
return this.__pickTarget;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__pickedGeometry === null) {
} else if (typeof this.__pickedGeometry.toXMLNode === 'function') {
str += this.__pickedGeometry.toXMLNode('pickedGeometry');
} else if (typeof this.__pickedGeometry === 'string') {
str += ' pickedGeometry="'+this.__pickedGeometry+'"';
} else if (Array.isArray( this.__pickedGeometry)) {
if (typeof this.__pickedGeometry[0].toXMLNode !== 'function') {
str += ' pickedGeometry="'+this.__pickedGeometry.join(' ')+'"';
} else {
for (let i in this.__pickedGeometry) {
if (typeof this.__pickedGeometry[i].toXMLNode === 'function') {
str += this.__pickedGeometry[i].toXMLNode('pickedGeometry');
}
}
}
} else {
str += ' pickedGeometry="'+this.__pickedGeometry+'"';
}
if (this.__pickingGeometry === null) {
} else if (typeof this.__pickingGeometry.toXMLNode === 'function') {
str += this.__pickingGeometry.toXMLNode('pickingGeometry');
} else if (typeof this.__pickingGeometry === 'string') {
str += ' pickingGeometry="'+this.__pickingGeometry+'"';
} else if (Array.isArray( this.__pickingGeometry)) {
if (typeof this.__pickingGeometry[0].toXMLNode !== 'function') {
str += ' pickingGeometry="'+this.__pickingGeometry.join(' ')+'"';
} else {
for (let i in this.__pickingGeometry) {
if (typeof this.__pickingGeometry[i].toXMLNode === 'function') {
str += this.__pickingGeometry[i].toXMLNode('pickingGeometry');
}
}
}
} else {
str += ' pickingGeometry="'+this.__pickingGeometry+'"';
}
if (this.__pickTarget === null) {
} else if (typeof this.__pickTarget.toXMLNode === 'function') {
str += this.__pickTarget.toXMLNode('pickTarget');
} else if (typeof this.__pickTarget === 'string') {
str += ' pickTarget="'+this.__pickTarget+'"';
} else if (Array.isArray( this.__pickTarget)) {
if (typeof this.__pickTarget[0].toXMLNode !== 'function') {
str += ' pickTarget="'+this.__pickTarget.join(' ')+'"';
} else {
for (let i in this.__pickTarget) {
if (typeof this.__pickTarget[i].toXMLNode === 'function') {
str += this.__pickTarget[i].toXMLNode('pickTarget');
}
}
}
} else {
str += ' pickTarget="'+this.__pickTarget+'"';
}
str += ''
return str;
}
}
export class ProgramShader extends X3DShaderNode {
constructor(kwargs = {}) {
super(kwargs);
var activate = kwargs["activate"] || null;
this.__activate = activate;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Selected = kwargs["Selected"] || null;
this.__Selected = Selected;
var Valid = kwargs["Valid"] || null;
this.__Valid = Valid;
var language = kwargs["language"] || null;
this.__language = language;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var programs = kwargs["programs"] || null;
this.__programs = programs;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set activate(activate = null) {
this.__activate = [activate];
return this;
}
addActivate(activate = null) {
if (this.__activate == null) {
this.__activate = [];
}
this.__activate.append(activate);
return this;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isSelected() {
return this.__Selected;
}
get isValid() {
return this.__Valid;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set programs(programs = null) {
this.__programs = [programs];
return this;
}
addPrograms(programs = null) {
if (this.__programs == null) {
this.__programs = [];
}
this.__programs.append(programs);
return this;
}
removePrograms(programs) {
for( let i = 0; i < this.__programs.length; i++) {
if ( this.__programs[i] === programs) {
this.__programs.splice(i, 1);
}
}
return this.__programs;
}
get programs() {
return this.__programs;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__programs === null) {
} else if (typeof this.__programs.toXMLNode === 'function') {
str += this.__programs.toXMLNode('programs');
} else if (typeof this.__programs === 'string') {
str += ' programs="'+this.__programs+'"';
} else if (Array.isArray( this.__programs)) {
if (typeof this.__programs[0].toXMLNode !== 'function') {
str += ' programs="'+this.__programs.join(' ')+'"';
} else {
for (let i in this.__programs) {
if (typeof this.__programs[i].toXMLNode === 'function') {
str += this.__programs[i].toXMLNode('programs');
}
}
}
} else {
str += ' programs="'+this.__programs+'"';
}
str += ''
return str;
}
}
export class ProjectionVolumeStyle extends X3DVolumeRenderStyleNode {
constructor(kwargs = {}) {
super(kwargs);
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var intensityThreshold = kwargs["intensityThreshold"] || 0;
if (intensityThreshold == null || intensityThreshold < 0) {
return null;
}
if (intensityThreshold == null || intensityThreshold > 1) {
return null;
}
this.__intensityThreshold = intensityThreshold;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var type = kwargs["type"] || "MAX";
if ('MAX' === type) {
} else if ('MIN' === type) {
} else if ('AVERAGE' === type) {
} else {
return null;
}
this.__type = type;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
set intensityThreshold(intensityThreshold = 0) {
if (intensityThreshold == null || intensityThreshold < 0) {
return null;
}
if (intensityThreshold == null || intensityThreshold > 1) {
return null;
}
this.__intensityThreshold = [intensityThreshold];
return this;
}
addIntensityThreshold(intensityThreshold = 0) {
if (intensityThreshold == null || intensityThreshold < 0) {
return null;
}
if (intensityThreshold == null || intensityThreshold > 1) {
return null;
}
if (this.__intensityThreshold == null) {
this.__intensityThreshold = [];
}
this.__intensityThreshold.append(intensityThreshold);
return this;
}
removeIntensityThreshold(intensityThreshold) {
for( let i = 0; i < this.__intensityThreshold.length; i++) {
if ( this.__intensityThreshold[i] === intensityThreshold) {
this.__intensityThreshold.splice(i, 1);
}
}
return this.__intensityThreshold;
}
get intensityThreshold() {
return this.__intensityThreshold;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set type(type = "MAX") {
if ('MAX' === type) {
} else if ('MIN' === type) {
} else if ('AVERAGE' === type) {
} else {
return null;
}
this.__type = [type];
return this;
}
addType(type = "MAX") {
if ('MAX' === type) {
} else if ('MIN' === type) {
} else if ('AVERAGE' === type) {
} else {
return null;
}
if (this.__type == null) {
this.__type = [];
}
this.__type.append(type);
return this;
}
removeType(type) {
for( let i = 0; i < this.__type.length; i++) {
if ( this.__type[i] === type) {
this.__type.splice(i, 1);
}
}
return this.__type;
}
get type() {
return this.__type;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class ProtoInstance extends X3DPrototypeInstance {
constructor(kwargs = {}) {
super(kwargs);
var fieldValue = kwargs["fieldValue"] || null;
this.__fieldValue = fieldValue;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var name = kwargs["name"] || null;
this.__name = name;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set fieldValue(fieldValue = null) {
this.__fieldValue = [fieldValue];
return this;
}
addFieldValue(fieldValue = null) {
if (this.__fieldValue == null) {
this.__fieldValue = [];
}
this.__fieldValue.append(fieldValue);
return this;
}
removeFieldValue(fieldValue) {
for( let i = 0; i < this.__fieldValue.length; i++) {
if ( this.__fieldValue[i] === fieldValue) {
this.__fieldValue.splice(i, 1);
}
}
return this.__fieldValue;
}
get fieldValue() {
return this.__fieldValue;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set name(name = null) {
this.__name = [name];
return this;
}
addName(name = null) {
if (this.__name == null) {
this.__name = [];
}
this.__name.append(name);
return this;
}
removeName(name) {
for( let i = 0; i < this.__name.length; i++) {
if ( this.__name[i] === name) {
this.__name.splice(i, 1);
}
}
return this.__name;
}
get name() {
return this.__name;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__fieldValue === null) {
} else if (typeof this.__fieldValue.toXMLNode === 'function') {
str += this.__fieldValue.toXMLNode('fieldValue');
} else if (typeof this.__fieldValue === 'string') {
str += ' fieldValue="'+this.__fieldValue+'"';
} else if (Array.isArray( this.__fieldValue)) {
if (typeof this.__fieldValue[0].toXMLNode !== 'function') {
str += ' fieldValue="'+this.__fieldValue.join(' ')+'"';
} else {
for (let i in this.__fieldValue) {
if (typeof this.__fieldValue[i].toXMLNode === 'function') {
str += this.__fieldValue[i].toXMLNode('fieldValue');
}
}
}
} else {
str += ' fieldValue="'+this.__fieldValue+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class ProximitySensor extends X3DEnvironmentalSensorNode {
constructor(kwargs = {}) {
super(kwargs);
var center = kwargs["center"] || [0, 0, 0];
this.__center = center;
var centerOfRotation_changed = kwargs["centerOfRotation_changed"] || null;
this.__centerOfRotation_changed = centerOfRotation_changed;
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var enterTime = kwargs["enterTime"] || null;
this.__enterTime = enterTime;
var exitTime = kwargs["exitTime"] || null;
this.__exitTime = exitTime;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var orientation_changed = kwargs["orientation_changed"] || null;
this.__orientation_changed = orientation_changed;
var position_changed = kwargs["position_changed"] || null;
this.__position_changed = position_changed;
var size = kwargs["size"] || [0, 0, 0];
if (size == null || size.length <= 0 || Math.min(size) < 0) {
return null;
}
this.__size = size;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set center(center = [0, 0, 0]) {
this.__center = [center];
return this;
}
addCenter(center = [0, 0, 0]) {
if (this.__center == null) {
this.__center = [];
}
this.__center.append(center);
return this;
}
removeCenter(center) {
for( let i = 0; i < this.__center.length; i++) {
if ( this.__center[i] === center) {
this.__center.splice(i, 1);
}
}
return this.__center;
}
get center() {
return this.__center;
}
removecenterOfRotation_changed(centerOfRotation_changed) {
for( let i = 0; i < this.__centerOfRotation_changed.length; i++) {
if ( this.__centerOfRotation_changed[i] === centerOfRotation_changed) {
this.__centerOfRotation_changed.splice(i, 1);
}
}
return this.__centerOfRotation_changed;
}
get centerOfRotation_changed() {
return this.__centerOfRotation_changed;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
removeEnterTime(enterTime) {
for( let i = 0; i < this.__enterTime.length; i++) {
if ( this.__enterTime[i] === enterTime) {
this.__enterTime.splice(i, 1);
}
}
return this.__enterTime;
}
get enterTime() {
return this.__enterTime;
}
removeExitTime(exitTime) {
for( let i = 0; i < this.__exitTime.length; i++) {
if ( this.__exitTime[i] === exitTime) {
this.__exitTime.splice(i, 1);
}
}
return this.__exitTime;
}
get exitTime() {
return this.__exitTime;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
removeorientation_changed(orientation_changed) {
for( let i = 0; i < this.__orientation_changed.length; i++) {
if ( this.__orientation_changed[i] === orientation_changed) {
this.__orientation_changed.splice(i, 1);
}
}
return this.__orientation_changed;
}
get orientation_changed() {
return this.__orientation_changed;
}
removeposition_changed(position_changed) {
for( let i = 0; i < this.__position_changed.length; i++) {
if ( this.__position_changed[i] === position_changed) {
this.__position_changed.splice(i, 1);
}
}
return this.__position_changed;
}
get position_changed() {
return this.__position_changed;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class QuadSet extends X3DComposedGeometryNode {
constructor(kwargs = {}) {
super(kwargs);
var attrib = kwargs["attrib"] || null;
this.__attrib = attrib;
var ccw = kwargs["ccw"] || true;
this.__ccw = ccw;
var color = kwargs["color"] || null;
this.__color = color;
var colorPerVertex = kwargs["colorPerVertex"] || true;
this.__colorPerVertex = colorPerVertex;
var coord = kwargs["coord"] || null;
this.__coord = coord;
var fogCoord = kwargs["fogCoord"] || null;
this.__fogCoord = fogCoord;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var normal = kwargs["normal"] || null;
this.__normal = normal;
var normalPerVertex = kwargs["normalPerVertex"] || true;
this.__normalPerVertex = normalPerVertex;
var solid = kwargs["solid"] || true;
this.__solid = solid;
var texCoord = kwargs["texCoord"] || null;
this.__texCoord = texCoord;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set attrib(attrib = null) {
this.__attrib = [attrib];
return this;
}
addAttrib(attrib = null) {
if (this.__attrib == null) {
this.__attrib = [];
}
this.__attrib.append(attrib);
return this;
}
removeAttrib(attrib) {
for( let i = 0; i < this.__attrib.length; i++) {
if ( this.__attrib[i] === attrib) {
this.__attrib.splice(i, 1);
}
}
return this.__attrib;
}
get attrib() {
return this.__attrib;
}
set color(color = null) {
this.__color = [color];
return this;
}
addColor(color = null) {
if (this.__color == null) {
this.__color = [];
}
this.__color.append(color);
return this;
}
removeColor(color) {
for( let i = 0; i < this.__color.length; i++) {
if ( this.__color[i] === color) {
this.__color.splice(i, 1);
}
}
return this.__color;
}
get color() {
return this.__color;
}
set coord(coord = null) {
this.__coord = [coord];
return this;
}
addCoord(coord = null) {
if (this.__coord == null) {
this.__coord = [];
}
this.__coord.append(coord);
return this;
}
removeCoord(coord) {
for( let i = 0; i < this.__coord.length; i++) {
if ( this.__coord[i] === coord) {
this.__coord.splice(i, 1);
}
}
return this.__coord;
}
get coord() {
return this.__coord;
}
set fogCoord(fogCoord = null) {
this.__fogCoord = [fogCoord];
return this;
}
addFogCoord(fogCoord = null) {
if (this.__fogCoord == null) {
this.__fogCoord = [];
}
this.__fogCoord.append(fogCoord);
return this;
}
removeFogCoord(fogCoord) {
for( let i = 0; i < this.__fogCoord.length; i++) {
if ( this.__fogCoord[i] === fogCoord) {
this.__fogCoord.splice(i, 1);
}
}
return this.__fogCoord;
}
get fogCoord() {
return this.__fogCoord;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set normal(normal = null) {
this.__normal = [normal];
return this;
}
addNormal(normal = null) {
if (this.__normal == null) {
this.__normal = [];
}
this.__normal.append(normal);
return this;
}
removeNormal(normal) {
for( let i = 0; i < this.__normal.length; i++) {
if ( this.__normal[i] === normal) {
this.__normal.splice(i, 1);
}
}
return this.__normal;
}
get normal() {
return this.__normal;
}
set texCoord(texCoord = null) {
this.__texCoord = [texCoord];
return this;
}
addTexCoord(texCoord = null) {
if (this.__texCoord == null) {
this.__texCoord = [];
}
this.__texCoord.append(texCoord);
return this;
}
removeTexCoord(texCoord) {
for( let i = 0; i < this.__texCoord.length; i++) {
if ( this.__texCoord[i] === texCoord) {
this.__texCoord.splice(i, 1);
}
}
return this.__texCoord;
}
get texCoord() {
return this.__texCoord;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__attrib === null) {
} else if (typeof this.__attrib.toXMLNode === 'function') {
str += this.__attrib.toXMLNode('attrib');
} else if (typeof this.__attrib === 'string') {
str += ' attrib="'+this.__attrib+'"';
} else if (Array.isArray( this.__attrib)) {
if (typeof this.__attrib[0].toXMLNode !== 'function') {
str += ' attrib="'+this.__attrib.join(' ')+'"';
} else {
for (let i in this.__attrib) {
if (typeof this.__attrib[i].toXMLNode === 'function') {
str += this.__attrib[i].toXMLNode('attrib');
}
}
}
} else {
str += ' attrib="'+this.__attrib+'"';
}
if (this.__color === null) {
} else if (typeof this.__color.toXMLNode === 'function') {
str += this.__color.toXMLNode('color');
} else if (typeof this.__color === 'string') {
str += ' color="'+this.__color+'"';
} else if (Array.isArray( this.__color)) {
if (typeof this.__color[0].toXMLNode !== 'function') {
str += ' color="'+this.__color.join(' ')+'"';
} else {
for (let i in this.__color) {
if (typeof this.__color[i].toXMLNode === 'function') {
str += this.__color[i].toXMLNode('color');
}
}
}
} else {
str += ' color="'+this.__color+'"';
}
if (this.__coord === null) {
} else if (typeof this.__coord.toXMLNode === 'function') {
str += this.__coord.toXMLNode('coord');
} else if (typeof this.__coord === 'string') {
str += ' coord="'+this.__coord+'"';
} else if (Array.isArray( this.__coord)) {
if (typeof this.__coord[0].toXMLNode !== 'function') {
str += ' coord="'+this.__coord.join(' ')+'"';
} else {
for (let i in this.__coord) {
if (typeof this.__coord[i].toXMLNode === 'function') {
str += this.__coord[i].toXMLNode('coord');
}
}
}
} else {
str += ' coord="'+this.__coord+'"';
}
if (this.__fogCoord === null) {
} else if (typeof this.__fogCoord.toXMLNode === 'function') {
str += this.__fogCoord.toXMLNode('fogCoord');
} else if (typeof this.__fogCoord === 'string') {
str += ' fogCoord="'+this.__fogCoord+'"';
} else if (Array.isArray( this.__fogCoord)) {
if (typeof this.__fogCoord[0].toXMLNode !== 'function') {
str += ' fogCoord="'+this.__fogCoord.join(' ')+'"';
} else {
for (let i in this.__fogCoord) {
if (typeof this.__fogCoord[i].toXMLNode === 'function') {
str += this.__fogCoord[i].toXMLNode('fogCoord');
}
}
}
} else {
str += ' fogCoord="'+this.__fogCoord+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__normal === null) {
} else if (typeof this.__normal.toXMLNode === 'function') {
str += this.__normal.toXMLNode('normal');
} else if (typeof this.__normal === 'string') {
str += ' normal="'+this.__normal+'"';
} else if (Array.isArray( this.__normal)) {
if (typeof this.__normal[0].toXMLNode !== 'function') {
str += ' normal="'+this.__normal.join(' ')+'"';
} else {
for (let i in this.__normal) {
if (typeof this.__normal[i].toXMLNode === 'function') {
str += this.__normal[i].toXMLNode('normal');
}
}
}
} else {
str += ' normal="'+this.__normal+'"';
}
if (this.__texCoord === null) {
} else if (typeof this.__texCoord.toXMLNode === 'function') {
str += this.__texCoord.toXMLNode('texCoord');
} else if (typeof this.__texCoord === 'string') {
str += ' texCoord="'+this.__texCoord+'"';
} else if (Array.isArray( this.__texCoord)) {
if (typeof this.__texCoord[0].toXMLNode !== 'function') {
str += ' texCoord="'+this.__texCoord.join(' ')+'"';
} else {
for (let i in this.__texCoord) {
if (typeof this.__texCoord[i].toXMLNode === 'function') {
str += this.__texCoord[i].toXMLNode('texCoord');
}
}
}
} else {
str += ' texCoord="'+this.__texCoord+'"';
}
str += ''
return str;
}
}
export class ReceiverPdu extends X3DNetworkSensorNode {
constructor(kwargs = {}) {
super(kwargs);
var address = kwargs["address"] || "localhost";
this.__address = address;
var applicationID = kwargs["applicationID"] || 0;
this.__applicationID = applicationID;
var bboxCenter = kwargs["bboxCenter"] || [0, 0, 0];
this.__bboxCenter = bboxCenter;
var bboxSize = kwargs["bboxSize"] || [-1, -1, -1];
this.__bboxSize = bboxSize;
var displayBBox = kwargs["displayBBox"] || false;
this.__displayBBox = displayBBox;
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var entityID = kwargs["entityID"] || 0;
this.__entityID = entityID;
var geoCoords = kwargs["geoCoords"] || [0, 0, 0];
this.__geoCoords = geoCoords;
var geoSystem = kwargs["geoSystem"] || ["GD", "WE"];
this.__geoSystem = geoSystem;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var NetworkReader = kwargs["NetworkReader"] || null;
this.__NetworkReader = NetworkReader;
var NetworkWriter = kwargs["NetworkWriter"] || null;
this.__NetworkWriter = NetworkWriter;
var RtpHeaderHeard = kwargs["RtpHeaderHeard"] || null;
this.__RtpHeaderHeard = RtpHeaderHeard;
var StandAlone = kwargs["StandAlone"] || null;
this.__StandAlone = StandAlone;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var multicastRelayHost = kwargs["multicastRelayHost"] || null;
this.__multicastRelayHost = multicastRelayHost;
var multicastRelayPort = kwargs["multicastRelayPort"] || 0;
this.__multicastRelayPort = multicastRelayPort;
var networkMode = kwargs["networkMode"] || "standAlone";
if ('standAlone' === networkMode) {
} else if ('networkReader' === networkMode) {
} else if ('networkWriter' === networkMode) {
} else {
return null;
}
this.__networkMode = networkMode;
var port = kwargs["port"] || 0;
this.__port = port;
var radioID = kwargs["radioID"] || 0;
this.__radioID = radioID;
var readInterval = kwargs["readInterval"] || 0.1;
if (readInterval == null || readInterval < 0) {
return null;
}
this.__readInterval = readInterval;
var receivedPower = kwargs["receivedPower"] || 0.0;
this.__receivedPower = receivedPower;
var receiverState = kwargs["receiverState"] || 0;
this.__receiverState = receiverState;
var rtpHeaderExpected = kwargs["rtpHeaderExpected"] || false;
this.__rtpHeaderExpected = rtpHeaderExpected;
var siteID = kwargs["siteID"] || 0;
this.__siteID = siteID;
var timestamp = kwargs["timestamp"] || null;
if (timestamp == null || timestamp < 0) {
return null;
}
this.__timestamp = timestamp;
var transmitterApplicationID = kwargs["transmitterApplicationID"] || 0;
this.__transmitterApplicationID = transmitterApplicationID;
var transmitterEntityID = kwargs["transmitterEntityID"] || 0;
this.__transmitterEntityID = transmitterEntityID;
var transmitterRadioID = kwargs["transmitterRadioID"] || 0;
this.__transmitterRadioID = transmitterRadioID;
var transmitterSiteID = kwargs["transmitterSiteID"] || 0;
this.__transmitterSiteID = transmitterSiteID;
var visible = kwargs["visible"] || true;
this.__visible = visible;
var whichGeometry = kwargs["whichGeometry"] || 1;
this.__whichGeometry = whichGeometry;
var writeInterval = kwargs["writeInterval"] || 1.0;
if (writeInterval == null || writeInterval < 0) {
return null;
}
this.__writeInterval = writeInterval;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
address(address = "localhost") {
if (this.__address == null) {
this.__address = [];
}
this.__address.append(address);
return this;
}
removeAddress(address) {
for( let i = 0; i < this.__address.length; i++) {
if ( this.__address[i] === address) {
this.__address.splice(i, 1);
}
}
return this.__address;
}
get address() {
return this.__address;
}
set applicationID(applicationID = 0) {
this.__applicationID = [applicationID];
return this;
}
addApplicationID(applicationID = 0) {
if (this.__applicationID == null) {
this.__applicationID = [];
}
this.__applicationID.append(applicationID);
return this;
}
removeApplicationID(applicationID) {
for( let i = 0; i < this.__applicationID.length; i++) {
if ( this.__applicationID[i] === applicationID) {
this.__applicationID.splice(i, 1);
}
}
return this.__applicationID;
}
get applicationID() {
return this.__applicationID;
}
set displayBBox(displayBBox = false) {
this.__displayBBox = [displayBBox];
return this;
}
addDisplayBBox(displayBBox = false) {
if (this.__displayBBox == null) {
this.__displayBBox = [];
}
this.__displayBBox.append(displayBBox);
return this;
}
removeDisplayBBox(displayBBox) {
for( let i = 0; i < this.__displayBBox.length; i++) {
if ( this.__displayBBox[i] === displayBBox) {
this.__displayBBox.splice(i, 1);
}
}
return this.__displayBBox;
}
get isDisplayBBox() {
return this.__displayBBox;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
set entityID(entityID = 0) {
this.__entityID = [entityID];
return this;
}
addEntityID(entityID = 0) {
if (this.__entityID == null) {
this.__entityID = [];
}
this.__entityID.append(entityID);
return this;
}
removeEntityID(entityID) {
for( let i = 0; i < this.__entityID.length; i++) {
if ( this.__entityID[i] === entityID) {
this.__entityID.splice(i, 1);
}
}
return this.__entityID;
}
get entityID() {
return this.__entityID;
}
set geoCoords(geoCoords = [0, 0, 0]) {
this.__geoCoords = [geoCoords];
return this;
}
addGeoCoords(geoCoords = [0, 0, 0]) {
if (this.__geoCoords == null) {
this.__geoCoords = [];
}
this.__geoCoords.append(geoCoords);
return this;
}
removeGeoCoords(geoCoords) {
for( let i = 0; i < this.__geoCoords.length; i++) {
if ( this.__geoCoords[i] === geoCoords) {
this.__geoCoords.splice(i, 1);
}
}
return this.__geoCoords;
}
get geoCoords() {
return this.__geoCoords;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
get isNetworkReader() {
return this.__NetworkReader;
}
get isNetworkWriter() {
return this.__NetworkWriter;
}
get isRtpHeaderHeard() {
return this.__RtpHeaderHeard;
}
get isStandAlone() {
return this.__StandAlone;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set multicastRelayHost(multicastRelayHost = null) {
this.__multicastRelayHost = [multicastRelayHost];
return this;
}
addMulticastRelayHost(multicastRelayHost = null) {
if (this.__multicastRelayHost == null) {
this.__multicastRelayHost = [];
}
this.__multicastRelayHost.append(multicastRelayHost);
return this;
}
removeMulticastRelayHost(multicastRelayHost) {
for( let i = 0; i < this.__multicastRelayHost.length; i++) {
if ( this.__multicastRelayHost[i] === multicastRelayHost) {
this.__multicastRelayHost.splice(i, 1);
}
}
return this.__multicastRelayHost;
}
get multicastRelayHost() {
return this.__multicastRelayHost;
}
set multicastRelayPort(multicastRelayPort = 0) {
this.__multicastRelayPort = [multicastRelayPort];
return this;
}
addMulticastRelayPort(multicastRelayPort = 0) {
if (this.__multicastRelayPort == null) {
this.__multicastRelayPort = [];
}
this.__multicastRelayPort.append(multicastRelayPort);
return this;
}
removeMulticastRelayPort(multicastRelayPort) {
for( let i = 0; i < this.__multicastRelayPort.length; i++) {
if ( this.__multicastRelayPort[i] === multicastRelayPort) {
this.__multicastRelayPort.splice(i, 1);
}
}
return this.__multicastRelayPort;
}
get multicastRelayPort() {
return this.__multicastRelayPort;
}
set networkMode(networkMode = "standAlone") {
if ('standAlone' === networkMode) {
} else if ('networkReader' === networkMode) {
} else if ('networkWriter' === networkMode) {
} else {
return null;
}
this.__networkMode = [networkMode];
return this;
}
addNetworkMode(networkMode = "standAlone") {
if ('standAlone' === networkMode) {
} else if ('networkReader' === networkMode) {
} else if ('networkWriter' === networkMode) {
} else {
return null;
}
if (this.__networkMode == null) {
this.__networkMode = [];
}
this.__networkMode.append(networkMode);
return this;
}
removeNetworkMode(networkMode) {
for( let i = 0; i < this.__networkMode.length; i++) {
if ( this.__networkMode[i] === networkMode) {
this.__networkMode.splice(i, 1);
}
}
return this.__networkMode;
}
get networkMode() {
return this.__networkMode;
}
set port(port = 0) {
this.__port = [port];
return this;
}
addPort(port = 0) {
if (this.__port == null) {
this.__port = [];
}
this.__port.append(port);
return this;
}
removePort(port) {
for( let i = 0; i < this.__port.length; i++) {
if ( this.__port[i] === port) {
this.__port.splice(i, 1);
}
}
return this.__port;
}
get port() {
return this.__port;
}
set radioID(radioID = 0) {
this.__radioID = [radioID];
return this;
}
addRadioID(radioID = 0) {
if (this.__radioID == null) {
this.__radioID = [];
}
this.__radioID.append(radioID);
return this;
}
removeRadioID(radioID) {
for( let i = 0; i < this.__radioID.length; i++) {
if ( this.__radioID[i] === radioID) {
this.__radioID.splice(i, 1);
}
}
return this.__radioID;
}
get radioID() {
return this.__radioID;
}
set readInterval(readInterval = 0.1) {
if (readInterval == null || readInterval < 0) {
return null;
}
this.__readInterval = [readInterval];
return this;
}
addReadInterval(readInterval = 0.1) {
if (readInterval == null || readInterval < 0) {
return null;
}
if (this.__readInterval == null) {
this.__readInterval = [];
}
this.__readInterval.append(readInterval);
return this;
}
removeReadInterval(readInterval) {
for( let i = 0; i < this.__readInterval.length; i++) {
if ( this.__readInterval[i] === readInterval) {
this.__readInterval.splice(i, 1);
}
}
return this.__readInterval;
}
get readInterval() {
return this.__readInterval;
}
set receivedPower(receivedPower = 0.0) {
this.__receivedPower = [receivedPower];
return this;
}
addReceivedPower(receivedPower = 0.0) {
if (this.__receivedPower == null) {
this.__receivedPower = [];
}
this.__receivedPower.append(receivedPower);
return this;
}
removeReceivedPower(receivedPower) {
for( let i = 0; i < this.__receivedPower.length; i++) {
if ( this.__receivedPower[i] === receivedPower) {
this.__receivedPower.splice(i, 1);
}
}
return this.__receivedPower;
}
get receivedPower() {
return this.__receivedPower;
}
set receiverState(receiverState = 0) {
this.__receiverState = [receiverState];
return this;
}
addReceiverState(receiverState = 0) {
if (this.__receiverState == null) {
this.__receiverState = [];
}
this.__receiverState.append(receiverState);
return this;
}
removeReceiverState(receiverState) {
for( let i = 0; i < this.__receiverState.length; i++) {
if ( this.__receiverState[i] === receiverState) {
this.__receiverState.splice(i, 1);
}
}
return this.__receiverState;
}
get receiverState() {
return this.__receiverState;
}
set siteID(siteID = 0) {
this.__siteID = [siteID];
return this;
}
addSiteID(siteID = 0) {
if (this.__siteID == null) {
this.__siteID = [];
}
this.__siteID.append(siteID);
return this;
}
removeSiteID(siteID) {
for( let i = 0; i < this.__siteID.length; i++) {
if ( this.__siteID[i] === siteID) {
this.__siteID.splice(i, 1);
}
}
return this.__siteID;
}
get siteID() {
return this.__siteID;
}
removeTimestamp(timestamp) {
for( let i = 0; i < this.__timestamp.length; i++) {
if ( this.__timestamp[i] === timestamp) {
this.__timestamp.splice(i, 1);
}
}
return this.__timestamp;
}
get timestamp() {
return this.__timestamp;
}
set transmitterApplicationID(transmitterApplicationID = 0) {
this.__transmitterApplicationID = [transmitterApplicationID];
return this;
}
addTransmitterApplicationID(transmitterApplicationID = 0) {
if (this.__transmitterApplicationID == null) {
this.__transmitterApplicationID = [];
}
this.__transmitterApplicationID.append(transmitterApplicationID);
return this;
}
removeTransmitterApplicationID(transmitterApplicationID) {
for( let i = 0; i < this.__transmitterApplicationID.length; i++) {
if ( this.__transmitterApplicationID[i] === transmitterApplicationID) {
this.__transmitterApplicationID.splice(i, 1);
}
}
return this.__transmitterApplicationID;
}
get transmitterApplicationID() {
return this.__transmitterApplicationID;
}
set transmitterEntityID(transmitterEntityID = 0) {
this.__transmitterEntityID = [transmitterEntityID];
return this;
}
addTransmitterEntityID(transmitterEntityID = 0) {
if (this.__transmitterEntityID == null) {
this.__transmitterEntityID = [];
}
this.__transmitterEntityID.append(transmitterEntityID);
return this;
}
removeTransmitterEntityID(transmitterEntityID) {
for( let i = 0; i < this.__transmitterEntityID.length; i++) {
if ( this.__transmitterEntityID[i] === transmitterEntityID) {
this.__transmitterEntityID.splice(i, 1);
}
}
return this.__transmitterEntityID;
}
get transmitterEntityID() {
return this.__transmitterEntityID;
}
set transmitterRadioID(transmitterRadioID = 0) {
this.__transmitterRadioID = [transmitterRadioID];
return this;
}
addTransmitterRadioID(transmitterRadioID = 0) {
if (this.__transmitterRadioID == null) {
this.__transmitterRadioID = [];
}
this.__transmitterRadioID.append(transmitterRadioID);
return this;
}
removeTransmitterRadioID(transmitterRadioID) {
for( let i = 0; i < this.__transmitterRadioID.length; i++) {
if ( this.__transmitterRadioID[i] === transmitterRadioID) {
this.__transmitterRadioID.splice(i, 1);
}
}
return this.__transmitterRadioID;
}
get transmitterRadioID() {
return this.__transmitterRadioID;
}
set transmitterSiteID(transmitterSiteID = 0) {
this.__transmitterSiteID = [transmitterSiteID];
return this;
}
addTransmitterSiteID(transmitterSiteID = 0) {
if (this.__transmitterSiteID == null) {
this.__transmitterSiteID = [];
}
this.__transmitterSiteID.append(transmitterSiteID);
return this;
}
removeTransmitterSiteID(transmitterSiteID) {
for( let i = 0; i < this.__transmitterSiteID.length; i++) {
if ( this.__transmitterSiteID[i] === transmitterSiteID) {
this.__transmitterSiteID.splice(i, 1);
}
}
return this.__transmitterSiteID;
}
get transmitterSiteID() {
return this.__transmitterSiteID;
}
set visible(visible = true) {
this.__visible = [visible];
return this;
}
addVisible(visible = true) {
if (this.__visible == null) {
this.__visible = [];
}
this.__visible.append(visible);
return this;
}
removeVisible(visible) {
for( let i = 0; i < this.__visible.length; i++) {
if ( this.__visible[i] === visible) {
this.__visible.splice(i, 1);
}
}
return this.__visible;
}
get isVisible() {
return this.__visible;
}
set whichGeometry(whichGeometry = 1) {
this.__whichGeometry = [whichGeometry];
return this;
}
addWhichGeometry(whichGeometry = 1) {
if (this.__whichGeometry == null) {
this.__whichGeometry = [];
}
this.__whichGeometry.append(whichGeometry);
return this;
}
removeWhichGeometry(whichGeometry) {
for( let i = 0; i < this.__whichGeometry.length; i++) {
if ( this.__whichGeometry[i] === whichGeometry) {
this.__whichGeometry.splice(i, 1);
}
}
return this.__whichGeometry;
}
get whichGeometry() {
return this.__whichGeometry;
}
set writeInterval(writeInterval = 1.0) {
if (writeInterval == null || writeInterval < 0) {
return null;
}
this.__writeInterval = [writeInterval];
return this;
}
addWriteInterval(writeInterval = 1.0) {
if (writeInterval == null || writeInterval < 0) {
return null;
}
if (this.__writeInterval == null) {
this.__writeInterval = [];
}
this.__writeInterval.append(writeInterval);
return this;
}
removeWriteInterval(writeInterval) {
for( let i = 0; i < this.__writeInterval.length; i++) {
if ( this.__writeInterval[i] === writeInterval) {
this.__writeInterval.splice(i, 1);
}
}
return this.__writeInterval;
}
get writeInterval() {
return this.__writeInterval;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class Rectangle2D extends X3DGeometryNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var size = kwargs["size"] || [2, 2];
if (size == null || size.length <= 0 || Math.min(size) <= 0) {
return null;
}
this.__size = size;
var solid = kwargs["solid"] || false;
this.__solid = solid;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class RigidBody extends X3DNode {
constructor(kwargs = {}) {
super(kwargs);
var angularDampingFactor = kwargs["angularDampingFactor"] || 0.001;
this.__angularDampingFactor = angularDampingFactor;
var angularVelocity = kwargs["angularVelocity"] || [0, 0, 0];
this.__angularVelocity = angularVelocity;
var autoDamp = kwargs["autoDamp"] || false;
this.__autoDamp = autoDamp;
var autoDisable = kwargs["autoDisable"] || false;
this.__autoDisable = autoDisable;
var centerOfMass = kwargs["centerOfMass"] || [0, 0, 0];
this.__centerOfMass = centerOfMass;
var disableAngularSpeed = kwargs["disableAngularSpeed"] || 0;
this.__disableAngularSpeed = disableAngularSpeed;
var disableLinearSpeed = kwargs["disableLinearSpeed"] || 0;
this.__disableLinearSpeed = disableLinearSpeed;
var disableTime = kwargs["disableTime"] || 0;
if (disableTime == null || disableTime < 0) {
return null;
}
this.__disableTime = disableTime;
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var finiteRotationAxis = kwargs["finiteRotationAxis"] || [0, 1, 0];
this.__finiteRotationAxis = finiteRotationAxis;
var fixed = kwargs["fixed"] || false;
this.__fixed = fixed;
var forces = kwargs["forces"] || null;
this.__forces = forces;
var geometry = kwargs["geometry"] || null;
this.__geometry = geometry;
var inertia = kwargs["inertia"] || [1, 0, 0, 0, 1, 0, 0, 0, 1];
this.__inertia = inertia;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var linearDampingFactor = kwargs["linearDampingFactor"] || 0.001;
this.__linearDampingFactor = linearDampingFactor;
var linearVelocity = kwargs["linearVelocity"] || [0, 0, 0];
this.__linearVelocity = linearVelocity;
var mass = kwargs["mass"] || 1;
this.__mass = mass;
var massDensityModel = kwargs["massDensityModel"] || null;
this.__massDensityModel = massDensityModel;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var orientation = kwargs["orientation"] || [0, 0, 1, 0];
this.__orientation = orientation;
var position = kwargs["position"] || [0, 0, 0];
this.__position = position;
var torques = kwargs["torques"] || null;
this.__torques = torques;
var useFiniteRotation = kwargs["useFiniteRotation"] || false;
this.__useFiniteRotation = useFiniteRotation;
var useGlobalGravity = kwargs["useGlobalGravity"] || true;
this.__useGlobalGravity = useGlobalGravity;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set angularDampingFactor(angularDampingFactor = 0.001) {
this.__angularDampingFactor = [angularDampingFactor];
return this;
}
addAngularDampingFactor(angularDampingFactor = 0.001) {
if (this.__angularDampingFactor == null) {
this.__angularDampingFactor = [];
}
this.__angularDampingFactor.append(angularDampingFactor);
return this;
}
removeAngularDampingFactor(angularDampingFactor) {
for( let i = 0; i < this.__angularDampingFactor.length; i++) {
if ( this.__angularDampingFactor[i] === angularDampingFactor) {
this.__angularDampingFactor.splice(i, 1);
}
}
return this.__angularDampingFactor;
}
get angularDampingFactor() {
return this.__angularDampingFactor;
}
set angularVelocity(angularVelocity = [0, 0, 0]) {
this.__angularVelocity = [angularVelocity];
return this;
}
addAngularVelocity(angularVelocity = [0, 0, 0]) {
if (this.__angularVelocity == null) {
this.__angularVelocity = [];
}
this.__angularVelocity.append(angularVelocity);
return this;
}
removeAngularVelocity(angularVelocity) {
for( let i = 0; i < this.__angularVelocity.length; i++) {
if ( this.__angularVelocity[i] === angularVelocity) {
this.__angularVelocity.splice(i, 1);
}
}
return this.__angularVelocity;
}
get angularVelocity() {
return this.__angularVelocity;
}
set autoDamp(autoDamp = false) {
this.__autoDamp = [autoDamp];
return this;
}
addAutoDamp(autoDamp = false) {
if (this.__autoDamp == null) {
this.__autoDamp = [];
}
this.__autoDamp.append(autoDamp);
return this;
}
removeAutoDamp(autoDamp) {
for( let i = 0; i < this.__autoDamp.length; i++) {
if ( this.__autoDamp[i] === autoDamp) {
this.__autoDamp.splice(i, 1);
}
}
return this.__autoDamp;
}
get isAutoDamp() {
return this.__autoDamp;
}
set autoDisable(autoDisable = false) {
this.__autoDisable = [autoDisable];
return this;
}
addAutoDisable(autoDisable = false) {
if (this.__autoDisable == null) {
this.__autoDisable = [];
}
this.__autoDisable.append(autoDisable);
return this;
}
removeAutoDisable(autoDisable) {
for( let i = 0; i < this.__autoDisable.length; i++) {
if ( this.__autoDisable[i] === autoDisable) {
this.__autoDisable.splice(i, 1);
}
}
return this.__autoDisable;
}
get isAutoDisable() {
return this.__autoDisable;
}
set centerOfMass(centerOfMass = [0, 0, 0]) {
this.__centerOfMass = [centerOfMass];
return this;
}
addCenterOfMass(centerOfMass = [0, 0, 0]) {
if (this.__centerOfMass == null) {
this.__centerOfMass = [];
}
this.__centerOfMass.append(centerOfMass);
return this;
}
removeCenterOfMass(centerOfMass) {
for( let i = 0; i < this.__centerOfMass.length; i++) {
if ( this.__centerOfMass[i] === centerOfMass) {
this.__centerOfMass.splice(i, 1);
}
}
return this.__centerOfMass;
}
get centerOfMass() {
return this.__centerOfMass;
}
set disableAngularSpeed(disableAngularSpeed = 0) {
this.__disableAngularSpeed = [disableAngularSpeed];
return this;
}
addDisableAngularSpeed(disableAngularSpeed = 0) {
if (this.__disableAngularSpeed == null) {
this.__disableAngularSpeed = [];
}
this.__disableAngularSpeed.append(disableAngularSpeed);
return this;
}
removeDisableAngularSpeed(disableAngularSpeed) {
for( let i = 0; i < this.__disableAngularSpeed.length; i++) {
if ( this.__disableAngularSpeed[i] === disableAngularSpeed) {
this.__disableAngularSpeed.splice(i, 1);
}
}
return this.__disableAngularSpeed;
}
get disableAngularSpeed() {
return this.__disableAngularSpeed;
}
set disableLinearSpeed(disableLinearSpeed = 0) {
this.__disableLinearSpeed = [disableLinearSpeed];
return this;
}
addDisableLinearSpeed(disableLinearSpeed = 0) {
if (this.__disableLinearSpeed == null) {
this.__disableLinearSpeed = [];
}
this.__disableLinearSpeed.append(disableLinearSpeed);
return this;
}
removeDisableLinearSpeed(disableLinearSpeed) {
for( let i = 0; i < this.__disableLinearSpeed.length; i++) {
if ( this.__disableLinearSpeed[i] === disableLinearSpeed) {
this.__disableLinearSpeed.splice(i, 1);
}
}
return this.__disableLinearSpeed;
}
get disableLinearSpeed() {
return this.__disableLinearSpeed;
}
set disableTime(disableTime = 0) {
if (disableTime == null || disableTime < 0) {
return null;
}
this.__disableTime = [disableTime];
return this;
}
addDisableTime(disableTime = 0) {
if (disableTime == null || disableTime < 0) {
return null;
}
if (this.__disableTime == null) {
this.__disableTime = [];
}
this.__disableTime.append(disableTime);
return this;
}
removeDisableTime(disableTime) {
for( let i = 0; i < this.__disableTime.length; i++) {
if ( this.__disableTime[i] === disableTime) {
this.__disableTime.splice(i, 1);
}
}
return this.__disableTime;
}
get disableTime() {
return this.__disableTime;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
set finiteRotationAxis(finiteRotationAxis = [0, 1, 0]) {
this.__finiteRotationAxis = [finiteRotationAxis];
return this;
}
addFiniteRotationAxis(finiteRotationAxis = [0, 1, 0]) {
if (this.__finiteRotationAxis == null) {
this.__finiteRotationAxis = [];
}
this.__finiteRotationAxis.append(finiteRotationAxis);
return this;
}
removeFiniteRotationAxis(finiteRotationAxis) {
for( let i = 0; i < this.__finiteRotationAxis.length; i++) {
if ( this.__finiteRotationAxis[i] === finiteRotationAxis) {
this.__finiteRotationAxis.splice(i, 1);
}
}
return this.__finiteRotationAxis;
}
get finiteRotationAxis() {
return this.__finiteRotationAxis;
}
set fixed(fixed = false) {
this.__fixed = [fixed];
return this;
}
addFixed(fixed = false) {
if (this.__fixed == null) {
this.__fixed = [];
}
this.__fixed.append(fixed);
return this;
}
removeFixed(fixed) {
for( let i = 0; i < this.__fixed.length; i++) {
if ( this.__fixed[i] === fixed) {
this.__fixed.splice(i, 1);
}
}
return this.__fixed;
}
get isFixed() {
return this.__fixed;
}
set forces(forces = null) {
this.__forces = [forces];
return this;
}
addForces(forces = null) {
if (this.__forces == null) {
this.__forces = [];
}
this.__forces.append(forces);
return this;
}
removeForces(forces) {
for( let i = 0; i < this.__forces.length; i++) {
if ( this.__forces[i] === forces) {
this.__forces.splice(i, 1);
}
}
return this.__forces;
}
get forces() {
return this.__forces;
}
set geometry(geometry = null) {
this.__geometry = [geometry];
return this;
}
addGeometry(geometry = null) {
if (this.__geometry == null) {
this.__geometry = [];
}
this.__geometry.append(geometry);
return this;
}
removeGeometry(geometry) {
for( let i = 0; i < this.__geometry.length; i++) {
if ( this.__geometry[i] === geometry) {
this.__geometry.splice(i, 1);
}
}
return this.__geometry;
}
get geometry() {
return this.__geometry;
}
set inertia(inertia = [1, 0, 0, 0, 1, 0, 0, 0, 1]) {
this.__inertia = [inertia];
return this;
}
addInertia(inertia = [1, 0, 0, 0, 1, 0, 0, 0, 1]) {
if (this.__inertia == null) {
this.__inertia = [];
}
this.__inertia.append(inertia);
return this;
}
removeInertia(inertia) {
for( let i = 0; i < this.__inertia.length; i++) {
if ( this.__inertia[i] === inertia) {
this.__inertia.splice(i, 1);
}
}
return this.__inertia;
}
get inertia() {
return this.__inertia;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set linearDampingFactor(linearDampingFactor = 0.001) {
this.__linearDampingFactor = [linearDampingFactor];
return this;
}
addLinearDampingFactor(linearDampingFactor = 0.001) {
if (this.__linearDampingFactor == null) {
this.__linearDampingFactor = [];
}
this.__linearDampingFactor.append(linearDampingFactor);
return this;
}
removeLinearDampingFactor(linearDampingFactor) {
for( let i = 0; i < this.__linearDampingFactor.length; i++) {
if ( this.__linearDampingFactor[i] === linearDampingFactor) {
this.__linearDampingFactor.splice(i, 1);
}
}
return this.__linearDampingFactor;
}
get linearDampingFactor() {
return this.__linearDampingFactor;
}
set linearVelocity(linearVelocity = [0, 0, 0]) {
this.__linearVelocity = [linearVelocity];
return this;
}
addLinearVelocity(linearVelocity = [0, 0, 0]) {
if (this.__linearVelocity == null) {
this.__linearVelocity = [];
}
this.__linearVelocity.append(linearVelocity);
return this;
}
removeLinearVelocity(linearVelocity) {
for( let i = 0; i < this.__linearVelocity.length; i++) {
if ( this.__linearVelocity[i] === linearVelocity) {
this.__linearVelocity.splice(i, 1);
}
}
return this.__linearVelocity;
}
get linearVelocity() {
return this.__linearVelocity;
}
set mass(mass = 1) {
this.__mass = [mass];
return this;
}
addMass(mass = 1) {
if (this.__mass == null) {
this.__mass = [];
}
this.__mass.append(mass);
return this;
}
removeMass(mass) {
for( let i = 0; i < this.__mass.length; i++) {
if ( this.__mass[i] === mass) {
this.__mass.splice(i, 1);
}
}
return this.__mass;
}
get mass() {
return this.__mass;
}
set massDensityModel(massDensityModel = null) {
this.__massDensityModel = [massDensityModel];
return this;
}
addMassDensityModel(massDensityModel = null) {
if (this.__massDensityModel == null) {
this.__massDensityModel = [];
}
this.__massDensityModel.append(massDensityModel);
return this;
}
removeMassDensityModel(massDensityModel) {
for( let i = 0; i < this.__massDensityModel.length; i++) {
if ( this.__massDensityModel[i] === massDensityModel) {
this.__massDensityModel.splice(i, 1);
}
}
return this.__massDensityModel;
}
get massDensityModel() {
return this.__massDensityModel;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set orientation(orientation = [0, 0, 1, 0]) {
this.__orientation = [orientation];
return this;
}
addOrientation(orientation = [0, 0, 1, 0]) {
if (this.__orientation == null) {
this.__orientation = [];
}
this.__orientation.append(orientation);
return this;
}
removeOrientation(orientation) {
for( let i = 0; i < this.__orientation.length; i++) {
if ( this.__orientation[i] === orientation) {
this.__orientation.splice(i, 1);
}
}
return this.__orientation;
}
get orientation() {
return this.__orientation;
}
set position(position = [0, 0, 0]) {
this.__position = [position];
return this;
}
addPosition(position = [0, 0, 0]) {
if (this.__position == null) {
this.__position = [];
}
this.__position.append(position);
return this;
}
removePosition(position) {
for( let i = 0; i < this.__position.length; i++) {
if ( this.__position[i] === position) {
this.__position.splice(i, 1);
}
}
return this.__position;
}
get position() {
return this.__position;
}
set torques(torques = null) {
this.__torques = [torques];
return this;
}
addTorques(torques = null) {
if (this.__torques == null) {
this.__torques = [];
}
this.__torques.append(torques);
return this;
}
removeTorques(torques) {
for( let i = 0; i < this.__torques.length; i++) {
if ( this.__torques[i] === torques) {
this.__torques.splice(i, 1);
}
}
return this.__torques;
}
get torques() {
return this.__torques;
}
set useFiniteRotation(useFiniteRotation = false) {
this.__useFiniteRotation = [useFiniteRotation];
return this;
}
addUseFiniteRotation(useFiniteRotation = false) {
if (this.__useFiniteRotation == null) {
this.__useFiniteRotation = [];
}
this.__useFiniteRotation.append(useFiniteRotation);
return this;
}
removeUseFiniteRotation(useFiniteRotation) {
for( let i = 0; i < this.__useFiniteRotation.length; i++) {
if ( this.__useFiniteRotation[i] === useFiniteRotation) {
this.__useFiniteRotation.splice(i, 1);
}
}
return this.__useFiniteRotation;
}
get isUseFiniteRotation() {
return this.__useFiniteRotation;
}
set useGlobalGravity(useGlobalGravity = true) {
this.__useGlobalGravity = [useGlobalGravity];
return this;
}
addUseGlobalGravity(useGlobalGravity = true) {
if (this.__useGlobalGravity == null) {
this.__useGlobalGravity = [];
}
this.__useGlobalGravity.append(useGlobalGravity);
return this;
}
removeUseGlobalGravity(useGlobalGravity) {
for( let i = 0; i < this.__useGlobalGravity.length; i++) {
if ( this.__useGlobalGravity[i] === useGlobalGravity) {
this.__useGlobalGravity.splice(i, 1);
}
}
return this.__useGlobalGravity;
}
get isUseGlobalGravity() {
return this.__useGlobalGravity;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__geometry === null) {
} else if (typeof this.__geometry.toXMLNode === 'function') {
str += this.__geometry.toXMLNode('geometry');
} else if (typeof this.__geometry === 'string') {
str += ' geometry="'+this.__geometry+'"';
} else if (Array.isArray( this.__geometry)) {
if (typeof this.__geometry[0].toXMLNode !== 'function') {
str += ' geometry="'+this.__geometry.join(' ')+'"';
} else {
for (let i in this.__geometry) {
if (typeof this.__geometry[i].toXMLNode === 'function') {
str += this.__geometry[i].toXMLNode('geometry');
}
}
}
} else {
str += ' geometry="'+this.__geometry+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__massDensityModel === null) {
} else if (typeof this.__massDensityModel.toXMLNode === 'function') {
str += this.__massDensityModel.toXMLNode('massDensityModel');
} else if (typeof this.__massDensityModel === 'string') {
str += ' massDensityModel="'+this.__massDensityModel+'"';
} else if (Array.isArray( this.__massDensityModel)) {
if (typeof this.__massDensityModel[0].toXMLNode !== 'function') {
str += ' massDensityModel="'+this.__massDensityModel.join(' ')+'"';
} else {
for (let i in this.__massDensityModel) {
if (typeof this.__massDensityModel[i].toXMLNode === 'function') {
str += this.__massDensityModel[i].toXMLNode('massDensityModel');
}
}
}
} else {
str += ' massDensityModel="'+this.__massDensityModel+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class RigidBodyCollection extends X3DChildNode {
constructor(kwargs = {}) {
super(kwargs);
var autoDisable = kwargs["autoDisable"] || false;
this.__autoDisable = autoDisable;
var bodies = kwargs["bodies"] || null;
this.__bodies = bodies;
var collider = kwargs["collider"] || null;
this.__collider = collider;
var constantForceMix = kwargs["constantForceMix"] || 0.0001;
this.__constantForceMix = constantForceMix;
var contactSurfaceThickness = kwargs["contactSurfaceThickness"] || 0;
this.__contactSurfaceThickness = contactSurfaceThickness;
var disableAngularSpeed = kwargs["disableAngularSpeed"] || 0;
this.__disableAngularSpeed = disableAngularSpeed;
var disableLinearSpeed = kwargs["disableLinearSpeed"] || 0;
this.__disableLinearSpeed = disableLinearSpeed;
var disableTime = kwargs["disableTime"] || 0;
if (disableTime == null || disableTime < 0) {
return null;
}
this.__disableTime = disableTime;
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var errorCorrection = kwargs["errorCorrection"] || 0.8;
this.__errorCorrection = errorCorrection;
var gravity = kwargs["gravity"] || [0, -9.8, 0];
this.__gravity = gravity;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var iterations = kwargs["iterations"] || 10;
this.__iterations = iterations;
var joints = kwargs["joints"] || null;
this.__joints = joints;
var maxCorrectionSpeed = kwargs["maxCorrectionSpeed"] || -1;
this.__maxCorrectionSpeed = maxCorrectionSpeed;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var preferAccuracy = kwargs["preferAccuracy"] || false;
this.__preferAccuracy = preferAccuracy;
var contacts = kwargs["contacts"] || null;
this.__contacts = contacts;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set autoDisable(autoDisable = false) {
this.__autoDisable = [autoDisable];
return this;
}
addAutoDisable(autoDisable = false) {
if (this.__autoDisable == null) {
this.__autoDisable = [];
}
this.__autoDisable.append(autoDisable);
return this;
}
removeAutoDisable(autoDisable) {
for( let i = 0; i < this.__autoDisable.length; i++) {
if ( this.__autoDisable[i] === autoDisable) {
this.__autoDisable.splice(i, 1);
}
}
return this.__autoDisable;
}
get isAutoDisable() {
return this.__autoDisable;
}
set bodies(bodies = null) {
this.__bodies = [bodies];
return this;
}
addBodies(bodies = null) {
if (this.__bodies == null) {
this.__bodies = [];
}
this.__bodies.append(bodies);
return this;
}
removeBodies(bodies) {
for( let i = 0; i < this.__bodies.length; i++) {
if ( this.__bodies[i] === bodies) {
this.__bodies.splice(i, 1);
}
}
return this.__bodies;
}
get bodies() {
return this.__bodies;
}
set constantForceMix(constantForceMix = 0.0001) {
this.__constantForceMix = [constantForceMix];
return this;
}
addConstantForceMix(constantForceMix = 0.0001) {
if (this.__constantForceMix == null) {
this.__constantForceMix = [];
}
this.__constantForceMix.append(constantForceMix);
return this;
}
removeConstantForceMix(constantForceMix) {
for( let i = 0; i < this.__constantForceMix.length; i++) {
if ( this.__constantForceMix[i] === constantForceMix) {
this.__constantForceMix.splice(i, 1);
}
}
return this.__constantForceMix;
}
get constantForceMix() {
return this.__constantForceMix;
}
set contactSurfaceThickness(contactSurfaceThickness = 0) {
this.__contactSurfaceThickness = [contactSurfaceThickness];
return this;
}
addContactSurfaceThickness(contactSurfaceThickness = 0) {
if (this.__contactSurfaceThickness == null) {
this.__contactSurfaceThickness = [];
}
this.__contactSurfaceThickness.append(contactSurfaceThickness);
return this;
}
removeContactSurfaceThickness(contactSurfaceThickness) {
for( let i = 0; i < this.__contactSurfaceThickness.length; i++) {
if ( this.__contactSurfaceThickness[i] === contactSurfaceThickness) {
this.__contactSurfaceThickness.splice(i, 1);
}
}
return this.__contactSurfaceThickness;
}
get contactSurfaceThickness() {
return this.__contactSurfaceThickness;
}
set disableAngularSpeed(disableAngularSpeed = 0) {
this.__disableAngularSpeed = [disableAngularSpeed];
return this;
}
addDisableAngularSpeed(disableAngularSpeed = 0) {
if (this.__disableAngularSpeed == null) {
this.__disableAngularSpeed = [];
}
this.__disableAngularSpeed.append(disableAngularSpeed);
return this;
}
removeDisableAngularSpeed(disableAngularSpeed) {
for( let i = 0; i < this.__disableAngularSpeed.length; i++) {
if ( this.__disableAngularSpeed[i] === disableAngularSpeed) {
this.__disableAngularSpeed.splice(i, 1);
}
}
return this.__disableAngularSpeed;
}
get disableAngularSpeed() {
return this.__disableAngularSpeed;
}
set disableLinearSpeed(disableLinearSpeed = 0) {
this.__disableLinearSpeed = [disableLinearSpeed];
return this;
}
addDisableLinearSpeed(disableLinearSpeed = 0) {
if (this.__disableLinearSpeed == null) {
this.__disableLinearSpeed = [];
}
this.__disableLinearSpeed.append(disableLinearSpeed);
return this;
}
removeDisableLinearSpeed(disableLinearSpeed) {
for( let i = 0; i < this.__disableLinearSpeed.length; i++) {
if ( this.__disableLinearSpeed[i] === disableLinearSpeed) {
this.__disableLinearSpeed.splice(i, 1);
}
}
return this.__disableLinearSpeed;
}
get disableLinearSpeed() {
return this.__disableLinearSpeed;
}
set disableTime(disableTime = 0) {
if (disableTime == null || disableTime < 0) {
return null;
}
this.__disableTime = [disableTime];
return this;
}
addDisableTime(disableTime = 0) {
if (disableTime == null || disableTime < 0) {
return null;
}
if (this.__disableTime == null) {
this.__disableTime = [];
}
this.__disableTime.append(disableTime);
return this;
}
removeDisableTime(disableTime) {
for( let i = 0; i < this.__disableTime.length; i++) {
if ( this.__disableTime[i] === disableTime) {
this.__disableTime.splice(i, 1);
}
}
return this.__disableTime;
}
get disableTime() {
return this.__disableTime;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
set errorCorrection(errorCorrection = 0.8) {
this.__errorCorrection = [errorCorrection];
return this;
}
addErrorCorrection(errorCorrection = 0.8) {
if (this.__errorCorrection == null) {
this.__errorCorrection = [];
}
this.__errorCorrection.append(errorCorrection);
return this;
}
removeErrorCorrection(errorCorrection) {
for( let i = 0; i < this.__errorCorrection.length; i++) {
if ( this.__errorCorrection[i] === errorCorrection) {
this.__errorCorrection.splice(i, 1);
}
}
return this.__errorCorrection;
}
get errorCorrection() {
return this.__errorCorrection;
}
set gravity(gravity = [0, -9.8, 0]) {
this.__gravity = [gravity];
return this;
}
addGravity(gravity = [0, -9.8, 0]) {
if (this.__gravity == null) {
this.__gravity = [];
}
this.__gravity.append(gravity);
return this;
}
removeGravity(gravity) {
for( let i = 0; i < this.__gravity.length; i++) {
if ( this.__gravity[i] === gravity) {
this.__gravity.splice(i, 1);
}
}
return this.__gravity;
}
get gravity() {
return this.__gravity;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set iterations(iterations = 10) {
this.__iterations = [iterations];
return this;
}
addIterations(iterations = 10) {
if (this.__iterations == null) {
this.__iterations = [];
}
this.__iterations.append(iterations);
return this;
}
removeIterations(iterations) {
for( let i = 0; i < this.__iterations.length; i++) {
if ( this.__iterations[i] === iterations) {
this.__iterations.splice(i, 1);
}
}
return this.__iterations;
}
get iterations() {
return this.__iterations;
}
set joints(joints = null) {
this.__joints = [joints];
return this;
}
addJoints(joints = null) {
if (this.__joints == null) {
this.__joints = [];
}
this.__joints.append(joints);
return this;
}
removeJoints(joints) {
for( let i = 0; i < this.__joints.length; i++) {
if ( this.__joints[i] === joints) {
this.__joints.splice(i, 1);
}
}
return this.__joints;
}
get joints() {
return this.__joints;
}
set maxCorrectionSpeed(maxCorrectionSpeed = -1) {
this.__maxCorrectionSpeed = [maxCorrectionSpeed];
return this;
}
addMaxCorrectionSpeed(maxCorrectionSpeed = -1) {
if (this.__maxCorrectionSpeed == null) {
this.__maxCorrectionSpeed = [];
}
this.__maxCorrectionSpeed.append(maxCorrectionSpeed);
return this;
}
removeMaxCorrectionSpeed(maxCorrectionSpeed) {
for( let i = 0; i < this.__maxCorrectionSpeed.length; i++) {
if ( this.__maxCorrectionSpeed[i] === maxCorrectionSpeed) {
this.__maxCorrectionSpeed.splice(i, 1);
}
}
return this.__maxCorrectionSpeed;
}
get maxCorrectionSpeed() {
return this.__maxCorrectionSpeed;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set preferAccuracy(preferAccuracy = false) {
this.__preferAccuracy = [preferAccuracy];
return this;
}
addPreferAccuracy(preferAccuracy = false) {
if (this.__preferAccuracy == null) {
this.__preferAccuracy = [];
}
this.__preferAccuracy.append(preferAccuracy);
return this;
}
removePreferAccuracy(preferAccuracy) {
for( let i = 0; i < this.__preferAccuracy.length; i++) {
if ( this.__preferAccuracy[i] === preferAccuracy) {
this.__preferAccuracy.splice(i, 1);
}
}
return this.__preferAccuracy;
}
get isPreferAccuracy() {
return this.__preferAccuracy;
}
set set_contacts(contacts = null) {
this.__contacts = [contacts];
return this;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__bodies === null) {
} else if (typeof this.__bodies.toXMLNode === 'function') {
str += this.__bodies.toXMLNode('bodies');
} else if (typeof this.__bodies === 'string') {
str += ' bodies="'+this.__bodies+'"';
} else if (Array.isArray( this.__bodies)) {
if (typeof this.__bodies[0].toXMLNode !== 'function') {
str += ' bodies="'+this.__bodies.join(' ')+'"';
} else {
for (let i in this.__bodies) {
if (typeof this.__bodies[i].toXMLNode === 'function') {
str += this.__bodies[i].toXMLNode('bodies');
}
}
}
} else {
str += ' bodies="'+this.__bodies+'"';
}
if (this.__collider === null) {
} else if (typeof this.__collider.toXMLNode === 'function') {
str += this.__collider.toXMLNode('collider');
} else if (typeof this.__collider === 'string') {
str += ' collider="'+this.__collider+'"';
} else if (Array.isArray( this.__collider)) {
if (typeof this.__collider[0].toXMLNode !== 'function') {
str += ' collider="'+this.__collider.join(' ')+'"';
} else {
for (let i in this.__collider) {
if (typeof this.__collider[i].toXMLNode === 'function') {
str += this.__collider[i].toXMLNode('collider');
}
}
}
} else {
str += ' collider="'+this.__collider+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__joints === null) {
} else if (typeof this.__joints.toXMLNode === 'function') {
str += this.__joints.toXMLNode('joints');
} else if (typeof this.__joints === 'string') {
str += ' joints="'+this.__joints+'"';
} else if (Array.isArray( this.__joints)) {
if (typeof this.__joints[0].toXMLNode !== 'function') {
str += ' joints="'+this.__joints.join(' ')+'"';
} else {
for (let i in this.__joints) {
if (typeof this.__joints[i].toXMLNode === 'function') {
str += this.__joints[i].toXMLNode('joints');
}
}
}
} else {
str += ' joints="'+this.__joints+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__contacts === null) {
} else if (typeof this.__contacts.toXMLNode === 'function') {
str += this.__contacts.toXMLNode('contacts');
} else if (typeof this.__contacts === 'string') {
str += ' contacts="'+this.__contacts+'"';
} else if (Array.isArray( this.__contacts)) {
if (typeof this.__contacts[0].toXMLNode !== 'function') {
str += ' contacts="'+this.__contacts.join(' ')+'"';
} else {
for (let i in this.__contacts) {
if (typeof this.__contacts[i].toXMLNode === 'function') {
str += this.__contacts[i].toXMLNode('contacts');
}
}
}
} else {
str += ' contacts="'+this.__contacts+'"';
}
str += ''
return str;
}
}
export class ScalarChaser extends X3DChaserNode {
constructor(kwargs = {}) {
super(kwargs);
var duration = kwargs["duration"] || 1;
if (duration == null || duration < 0) {
return null;
}
this.__duration = duration;
var initialDestination = kwargs["initialDestination"] || 0;
this.__initialDestination = initialDestination;
var initialValue = kwargs["initialValue"] || 0;
this.__initialValue = initialValue;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var destination = kwargs["destination"] || null;
this.__destination = destination;
var value = kwargs["value"] || null;
this.__value = value;
var value_changed = kwargs["value_changed"] || null;
this.__value_changed = value_changed;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set set_destination(destination = null) {
this.__destination = [destination];
return this;
}
set set_value(value = null) {
this.__value = [value];
return this;
}
removevalue_changed(value_changed) {
for( let i = 0; i < this.__value_changed.length; i++) {
if ( this.__value_changed[i] === value_changed) {
this.__value_changed.splice(i, 1);
}
}
return this.__value_changed;
}
get value_changed() {
return this.__value_changed;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class ScalarDamper extends X3DDamperNode {
constructor(kwargs = {}) {
super(kwargs);
var initialDestination = kwargs["initialDestination"] || 0;
this.__initialDestination = initialDestination;
var initialValue = kwargs["initialValue"] || 0;
this.__initialValue = initialValue;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var order = kwargs["order"] || 3;
if (order == null || order < 0) {
return null;
}
if (order == null || order > 5) {
return null;
}
this.__order = order;
var destination = kwargs["destination"] || null;
this.__destination = destination;
var value = kwargs["value"] || null;
this.__value = value;
var tau = kwargs["tau"] || 0.3;
if (tau == null || tau < 0) {
return null;
}
this.__tau = tau;
var tolerance = kwargs["tolerance"] || -1;
this.__tolerance = tolerance;
var value_changed = kwargs["value_changed"] || null;
this.__value_changed = value_changed;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set set_destination(destination = null) {
this.__destination = [destination];
return this;
}
set set_value(value = null) {
this.__value = [value];
return this;
}
set tau(tau = 0.3) {
if (tau == null || tau < 0) {
return null;
}
this.__tau = [tau];
return this;
}
addTau(tau = 0.3) {
if (tau == null || tau < 0) {
return null;
}
if (this.__tau == null) {
this.__tau = [];
}
this.__tau.append(tau);
return this;
}
removeTau(tau) {
for( let i = 0; i < this.__tau.length; i++) {
if ( this.__tau[i] === tau) {
this.__tau.splice(i, 1);
}
}
return this.__tau;
}
get tau() {
return this.__tau;
}
set tolerance(tolerance = -1) {
this.__tolerance = [tolerance];
return this;
}
addTolerance(tolerance = -1) {
if (this.__tolerance == null) {
this.__tolerance = [];
}
this.__tolerance.append(tolerance);
return this;
}
removeTolerance(tolerance) {
for( let i = 0; i < this.__tolerance.length; i++) {
if ( this.__tolerance[i] === tolerance) {
this.__tolerance.splice(i, 1);
}
}
return this.__tolerance;
}
get tolerance() {
return this.__tolerance;
}
removevalue_changed(value_changed) {
for( let i = 0; i < this.__value_changed.length; i++) {
if ( this.__value_changed[i] === value_changed) {
this.__value_changed.splice(i, 1);
}
}
return this.__value_changed;
}
get value_changed() {
return this.__value_changed;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class ScalarInterpolator extends X3DInterpolatorNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var key = kwargs["key"] || null;
this.__key = key;
var keyValue = kwargs["keyValue"] || null;
this.__keyValue = keyValue;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var fraction = kwargs["fraction"] || null;
this.__fraction = fraction;
var value_changed = kwargs["value_changed"] || null;
this.__value_changed = value_changed;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set key(key = null) {
this.__key = [key];
return this;
}
addKey(key = null) {
if (this.__key == null) {
this.__key = [];
}
this.__key.append(key);
return this;
}
removeKey(key) {
for( let i = 0; i < this.__key.length; i++) {
if ( this.__key[i] === key) {
this.__key.splice(i, 1);
}
}
return this.__key;
}
get key() {
return this.__key;
}
set keyValue(keyValue = null) {
this.__keyValue = [keyValue];
return this;
}
addKeyValue(keyValue = null) {
if (this.__keyValue == null) {
this.__keyValue = [];
}
this.__keyValue.append(keyValue);
return this;
}
removeKeyValue(keyValue) {
for( let i = 0; i < this.__keyValue.length; i++) {
if ( this.__keyValue[i] === keyValue) {
this.__keyValue.splice(i, 1);
}
}
return this.__keyValue;
}
get keyValue() {
return this.__keyValue;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set set_fraction(fraction = null) {
this.__fraction = [fraction];
return this;
}
removevalue_changed(value_changed) {
for( let i = 0; i < this.__value_changed.length; i++) {
if ( this.__value_changed[i] === value_changed) {
this.__value_changed.splice(i, 1);
}
}
return this.__value_changed;
}
get value_changed() {
return this.__value_changed;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class ScreenFontStyle extends X3DFontStyleNode {
constructor(kwargs = {}) {
super(kwargs);
var family = kwargs["family"] || ["SERIF"];
this.__family = family;
var horizontal = kwargs["horizontal"] || true;
this.__horizontal = horizontal;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var justify = kwargs["justify"] || ["BEGIN"];
if ('"MIDDLE"' === justify) {
} else if ('"MIDDLE" "BEGIN"' === justify) {
} else if ('"MIDDLE" "END"' === justify) {
} else if ('"MIDDLE" "FIRST"' === justify) {
} else if ('"MIDDLE" "MIDDLE"' === justify) {
} else if ('"BEGIN"' === justify) {
} else if ('"BEGIN" "BEGIN"' === justify) {
} else if ('"BEGIN" "END"' === justify) {
} else if ('"BEGIN" "FIRST"' === justify) {
} else if ('"BEGIN" "MIDDLE"' === justify) {
} else if ('"END"' === justify) {
} else if ('"END" "BEGIN"' === justify) {
} else if ('"END" "END"' === justify) {
} else if ('"END" "FIRST"' === justify) {
} else if ('"END" "MIDDLE"' === justify) {
} else if ('"FIRST"' === justify) {
} else if ('"FIRST" "BEGIN"' === justify) {
} else if ('"FIRST" "END"' === justify) {
} else if ('"FIRST" "FIRST"' === justify) {
} else if ('"FIRST" "MIDDLE"' === justify) {
} else {
return null;
}
this.__justify = justify;
var language = kwargs["language"] || null;
this.__language = language;
var leftToRight = kwargs["leftToRight"] || true;
this.__leftToRight = leftToRight;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var pointSize = kwargs["pointSize"] || 12.0;
if (pointSize == null || pointSize <= 0) {
return null;
}
this.__pointSize = pointSize;
var spacing = kwargs["spacing"] || 1.0;
if (spacing == null || spacing < 0) {
return null;
}
this.__spacing = spacing;
var style = kwargs["style"] || "PLAIN";
if ('PLAIN' === style) {
} else if ('BOLD' === style) {
} else if ('ITALIC' === style) {
} else if ('BOLDITALIC' === style) {
} else {
return null;
}
this.__style = style;
var topToBottom = kwargs["topToBottom"] || true;
this.__topToBottom = topToBottom;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class ScreenGroup extends X3DGroupingNode {
constructor(kwargs = {}) {
super(kwargs);
var children_ = kwargs["children_"] || null;
this.__children_ = children_;
var bboxCenter = kwargs["bboxCenter"] || [0, 0, 0];
this.__bboxCenter = bboxCenter;
var bboxSize = kwargs["bboxSize"] || [-1, -1, -1];
this.__bboxSize = bboxSize;
var children = kwargs["children"] || null;
this.__children = children;
var displayBBox = kwargs["displayBBox"] || false;
this.__displayBBox = displayBBox;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var children_ = kwargs["children_"] || null;
this.__children_ = children_;
var visible = kwargs["visible"] || true;
this.__visible = visible;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
addChildren(children_ = null) {
if (this.__children_ == null) {
this.__children_ = [];
}
this.__children_.append(children_);
return this;
}
set children(children = null) {
this.__children = [children];
return this;
}
addChildren(children = null) {
if (this.__children == null) {
this.__children = [];
}
this.__children.append(children);
return this;
}
removeChildren(children) {
for( let i = 0; i < this.__children.length; i++) {
if ( this.__children[i] === children) {
this.__children.splice(i, 1);
}
}
return this.__children;
}
get children() {
return this.__children;
}
set displayBBox(displayBBox = false) {
this.__displayBBox = [displayBBox];
return this;
}
addDisplayBBox(displayBBox = false) {
if (this.__displayBBox == null) {
this.__displayBBox = [];
}
this.__displayBBox.append(displayBBox);
return this;
}
removeDisplayBBox(displayBBox) {
for( let i = 0; i < this.__displayBBox.length; i++) {
if ( this.__displayBBox[i] === displayBBox) {
this.__displayBBox.splice(i, 1);
}
}
return this.__displayBBox;
}
get isDisplayBBox() {
return this.__displayBBox;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set visible(visible = true) {
this.__visible = [visible];
return this;
}
addVisible(visible = true) {
if (this.__visible == null) {
this.__visible = [];
}
this.__visible.append(visible);
return this;
}
removeVisible(visible) {
for( let i = 0; i < this.__visible.length; i++) {
if ( this.__visible[i] === visible) {
this.__visible.splice(i, 1);
}
}
return this.__visible;
}
get isVisible() {
return this.__visible;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__children_ === null) {
} else if (typeof this.__children_.toXMLNode === 'function') {
str += this.__children_.toXMLNode('children_');
} else if (typeof this.__children_ === 'string') {
str += ' children_="'+this.__children_+'"';
} else if (Array.isArray( this.__children_)) {
if (typeof this.__children_[0].toXMLNode !== 'function') {
str += ' children_="'+this.__children_.join(' ')+'"';
} else {
for (let i in this.__children_) {
if (typeof this.__children_[i].toXMLNode === 'function') {
str += this.__children_[i].toXMLNode('children_');
}
}
}
} else {
str += ' children_="'+this.__children_+'"';
}
if (this.__children === null) {
} else if (typeof this.__children.toXMLNode === 'function') {
str += this.__children.toXMLNode('children');
} else if (typeof this.__children === 'string') {
str += ' children="'+this.__children+'"';
} else if (Array.isArray( this.__children)) {
if (typeof this.__children[0].toXMLNode !== 'function') {
str += ' children="'+this.__children.join(' ')+'"';
} else {
for (let i in this.__children) {
if (typeof this.__children[i].toXMLNode === 'function') {
str += this.__children[i].toXMLNode('children');
}
}
}
} else {
str += ' children="'+this.__children+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__children_ === null) {
} else if (typeof this.__children_.toXMLNode === 'function') {
str += this.__children_.toXMLNode('children_');
} else if (typeof this.__children_ === 'string') {
str += ' children_="'+this.__children_+'"';
} else if (Array.isArray( this.__children_)) {
if (typeof this.__children_[0].toXMLNode !== 'function') {
str += ' children_="'+this.__children_.join(' ')+'"';
} else {
for (let i in this.__children_) {
if (typeof this.__children_[i].toXMLNode === 'function') {
str += this.__children_[i].toXMLNode('children_');
}
}
}
} else {
str += ' children_="'+this.__children_+'"';
}
str += ''
return str;
}
}
export class Script extends X3DScriptNode {
constructor(kwargs = {}) {
super(kwargs);
var directOutput = kwargs["directOutput"] || false;
this.__directOutput = directOutput;
var field = kwargs["field"] || null;
this.__field = field;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var mustEvaluate = kwargs["mustEvaluate"] || false;
this.__mustEvaluate = mustEvaluate;
var url = kwargs["url"] || null;
this.__url = url;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
var field = kwargs["field"] || null;
this.__field = field;
var IS = kwargs["IS"] || null;
this.__IS = IS;
}
set field(field = null) {
this.__field = [field];
return this;
}
addField(field = null) {
if (this.__field == null) {
this.__field = [];
}
this.__field.append(field);
return this;
}
removeField(field) {
for( let i = 0; i < this.__field.length; i++) {
if ( this.__field[i] === field) {
this.__field.splice(i, 1);
}
}
return this.__field;
}
get field() {
return this.__field;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set url(url = null) {
this.__url = [url];
return this;
}
addUrl(url = null) {
if (this.__url == null) {
this.__url = [];
}
this.__url.append(url);
return this;
}
removeUrl(url) {
for( let i = 0; i < this.__url.length; i++) {
if ( this.__url[i] === url) {
this.__url.splice(i, 1);
}
}
return this.__url;
}
get url() {
return this.__url;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
set sourceCode(sourceCode = null) {
this.__sourceCode = [sourceCode];
return this;
}
addSourceCode(sourceCode = null) {
if (this.__sourceCode == null) {
this.__sourceCode = [];
}
this.__sourceCode.append(sourceCode);
return this;
}
set field(field = null) {
this.__field = [field];
return this;
}
addField(field = null) {
if (this.__field == null) {
this.__field = [];
}
this.__field.append(field);
return this;
}
removeField(field) {
for( let i = 0; i < this.__field.length; i++) {
if ( this.__field[i] === field) {
this.__field.splice(i, 1);
}
}
return this.__field;
}
get field() {
return this.__field;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
toXMLNode(attrName) {
let str = ''
str += ''
return str;
}
}
export class SegmentedVolumeData extends X3DVolumeDataNode {
constructor(kwargs = {}) {
super(kwargs);
var bboxCenter = kwargs["bboxCenter"] || [0, 0, 0];
this.__bboxCenter = bboxCenter;
var bboxSize = kwargs["bboxSize"] || [-1, -1, -1];
this.__bboxSize = bboxSize;
var dimensions = kwargs["dimensions"] || [1, 1, 1];
if (dimensions == null || dimensions.length <= 0 || Math.min(dimensions) <= 0) {
return null;
}
this.__dimensions = dimensions;
var displayBBox = kwargs["displayBBox"] || false;
this.__displayBBox = displayBBox;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var renderStyle = kwargs["renderStyle"] || null;
this.__renderStyle = renderStyle;
var segmentEnabled = kwargs["segmentEnabled"] || null;
this.__segmentEnabled = segmentEnabled;
var segmentIdentifiers = kwargs["segmentIdentifiers"] || null;
this.__segmentIdentifiers = segmentIdentifiers;
var visible = kwargs["visible"] || true;
this.__visible = visible;
var voxels = kwargs["voxels"] || null;
this.__voxels = voxels;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set dimensions(dimensions = [1, 1, 1]) {
if (dimensions == null || dimensions.length <= 0 || Math.min(dimensions) <= 0) {
return null;
}
this.__dimensions = [dimensions];
return this;
}
addDimensions(dimensions = [1, 1, 1]) {
if (dimensions == null || dimensions.length <= 0 || Math.min(dimensions) <= 0) {
return null;
}
if (this.__dimensions == null) {
this.__dimensions = [];
}
this.__dimensions.append(dimensions);
return this;
}
removeDimensions(dimensions) {
for( let i = 0; i < this.__dimensions.length; i++) {
if ( this.__dimensions[i] === dimensions) {
this.__dimensions.splice(i, 1);
}
}
return this.__dimensions;
}
get dimensions() {
return this.__dimensions;
}
set displayBBox(displayBBox = false) {
this.__displayBBox = [displayBBox];
return this;
}
addDisplayBBox(displayBBox = false) {
if (this.__displayBBox == null) {
this.__displayBBox = [];
}
this.__displayBBox.append(displayBBox);
return this;
}
removeDisplayBBox(displayBBox) {
for( let i = 0; i < this.__displayBBox.length; i++) {
if ( this.__displayBBox[i] === displayBBox) {
this.__displayBBox.splice(i, 1);
}
}
return this.__displayBBox;
}
get isDisplayBBox() {
return this.__displayBBox;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set renderStyle(renderStyle = null) {
this.__renderStyle = [renderStyle];
return this;
}
addRenderStyle(renderStyle = null) {
if (this.__renderStyle == null) {
this.__renderStyle = [];
}
this.__renderStyle.append(renderStyle);
return this;
}
removeRenderStyle(renderStyle) {
for( let i = 0; i < this.__renderStyle.length; i++) {
if ( this.__renderStyle[i] === renderStyle) {
this.__renderStyle.splice(i, 1);
}
}
return this.__renderStyle;
}
get renderStyle() {
return this.__renderStyle;
}
set segmentEnabled(segmentEnabled = null) {
this.__segmentEnabled = [segmentEnabled];
return this;
}
addSegmentEnabled(segmentEnabled = null) {
if (this.__segmentEnabled == null) {
this.__segmentEnabled = [];
}
this.__segmentEnabled.append(segmentEnabled);
return this;
}
removeSegmentEnabled(segmentEnabled) {
for( let i = 0; i < this.__segmentEnabled.length; i++) {
if ( this.__segmentEnabled[i] === segmentEnabled) {
this.__segmentEnabled.splice(i, 1);
}
}
return this.__segmentEnabled;
}
get segmentEnabled() {
return this.__segmentEnabled;
}
set segmentIdentifiers(segmentIdentifiers = null) {
this.__segmentIdentifiers = [segmentIdentifiers];
return this;
}
addSegmentIdentifiers(segmentIdentifiers = null) {
if (this.__segmentIdentifiers == null) {
this.__segmentIdentifiers = [];
}
this.__segmentIdentifiers.append(segmentIdentifiers);
return this;
}
removeSegmentIdentifiers(segmentIdentifiers) {
for( let i = 0; i < this.__segmentIdentifiers.length; i++) {
if ( this.__segmentIdentifiers[i] === segmentIdentifiers) {
this.__segmentIdentifiers.splice(i, 1);
}
}
return this.__segmentIdentifiers;
}
get segmentIdentifiers() {
return this.__segmentIdentifiers;
}
set visible(visible = true) {
this.__visible = [visible];
return this;
}
addVisible(visible = true) {
if (this.__visible == null) {
this.__visible = [];
}
this.__visible.append(visible);
return this;
}
removeVisible(visible) {
for( let i = 0; i < this.__visible.length; i++) {
if ( this.__visible[i] === visible) {
this.__visible.splice(i, 1);
}
}
return this.__visible;
}
get isVisible() {
return this.__visible;
}
set voxels(voxels = null) {
this.__voxels = [voxels];
return this;
}
addVoxels(voxels = null) {
if (this.__voxels == null) {
this.__voxels = [];
}
this.__voxels.append(voxels);
return this;
}
removeVoxels(voxels) {
for( let i = 0; i < this.__voxels.length; i++) {
if ( this.__voxels[i] === voxels) {
this.__voxels.splice(i, 1);
}
}
return this.__voxels;
}
get voxels() {
return this.__voxels;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__renderStyle === null) {
} else if (typeof this.__renderStyle.toXMLNode === 'function') {
str += this.__renderStyle.toXMLNode('renderStyle');
} else if (typeof this.__renderStyle === 'string') {
str += ' renderStyle="'+this.__renderStyle+'"';
} else if (Array.isArray( this.__renderStyle)) {
if (typeof this.__renderStyle[0].toXMLNode !== 'function') {
str += ' renderStyle="'+this.__renderStyle.join(' ')+'"';
} else {
for (let i in this.__renderStyle) {
if (typeof this.__renderStyle[i].toXMLNode === 'function') {
str += this.__renderStyle[i].toXMLNode('renderStyle');
}
}
}
} else {
str += ' renderStyle="'+this.__renderStyle+'"';
}
if (this.__segmentIdentifiers === null) {
} else if (typeof this.__segmentIdentifiers.toXMLNode === 'function') {
str += this.__segmentIdentifiers.toXMLNode('segmentIdentifiers');
} else if (typeof this.__segmentIdentifiers === 'string') {
str += ' segmentIdentifiers="'+this.__segmentIdentifiers+'"';
} else if (Array.isArray( this.__segmentIdentifiers)) {
if (typeof this.__segmentIdentifiers[0].toXMLNode !== 'function') {
str += ' segmentIdentifiers="'+this.__segmentIdentifiers.join(' ')+'"';
} else {
for (let i in this.__segmentIdentifiers) {
if (typeof this.__segmentIdentifiers[i].toXMLNode === 'function') {
str += this.__segmentIdentifiers[i].toXMLNode('segmentIdentifiers');
}
}
}
} else {
str += ' segmentIdentifiers="'+this.__segmentIdentifiers+'"';
}
if (this.__voxels === null) {
} else if (typeof this.__voxels.toXMLNode === 'function') {
str += this.__voxels.toXMLNode('voxels');
} else if (typeof this.__voxels === 'string') {
str += ' voxels="'+this.__voxels+'"';
} else if (Array.isArray( this.__voxels)) {
if (typeof this.__voxels[0].toXMLNode !== 'function') {
str += ' voxels="'+this.__voxels.join(' ')+'"';
} else {
for (let i in this.__voxels) {
if (typeof this.__voxels[i].toXMLNode === 'function') {
str += this.__voxels[i].toXMLNode('voxels');
}
}
}
} else {
str += ' voxels="'+this.__voxels+'"';
}
str += ''
return str;
}
}
export class ShadedVolumeStyle extends X3DComposableVolumeRenderStyleNode {
constructor(kwargs = {}) {
super(kwargs);
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var lighting = kwargs["lighting"] || false;
this.__lighting = lighting;
var material = kwargs["material"] || null;
this.__material = material;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var phaseFunction = kwargs["phaseFunction"] || "Henyey-Greenstein";
this.__phaseFunction = phaseFunction;
var shadows = kwargs["shadows"] || false;
this.__shadows = shadows;
var surfaceNormals = kwargs["surfaceNormals"] || null;
this.__surfaceNormals = surfaceNormals;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set lighting(lighting = false) {
this.__lighting = [lighting];
return this;
}
addLighting(lighting = false) {
if (this.__lighting == null) {
this.__lighting = [];
}
this.__lighting.append(lighting);
return this;
}
removeLighting(lighting) {
for( let i = 0; i < this.__lighting.length; i++) {
if ( this.__lighting[i] === lighting) {
this.__lighting.splice(i, 1);
}
}
return this.__lighting;
}
get isLighting() {
return this.__lighting;
}
set material(material = null) {
this.__material = [material];
return this;
}
addMaterial(material = null) {
if (this.__material == null) {
this.__material = [];
}
this.__material.append(material);
return this;
}
removeMaterial(material) {
for( let i = 0; i < this.__material.length; i++) {
if ( this.__material[i] === material) {
this.__material.splice(i, 1);
}
}
return this.__material;
}
get material() {
return this.__material;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set shadows(shadows = false) {
this.__shadows = [shadows];
return this;
}
addShadows(shadows = false) {
if (this.__shadows == null) {
this.__shadows = [];
}
this.__shadows.append(shadows);
return this;
}
removeShadows(shadows) {
for( let i = 0; i < this.__shadows.length; i++) {
if ( this.__shadows[i] === shadows) {
this.__shadows.splice(i, 1);
}
}
return this.__shadows;
}
get isShadows() {
return this.__shadows;
}
set surfaceNormals(surfaceNormals = null) {
this.__surfaceNormals = [surfaceNormals];
return this;
}
addSurfaceNormals(surfaceNormals = null) {
if (this.__surfaceNormals == null) {
this.__surfaceNormals = [];
}
this.__surfaceNormals.append(surfaceNormals);
return this;
}
removeSurfaceNormals(surfaceNormals) {
for( let i = 0; i < this.__surfaceNormals.length; i++) {
if ( this.__surfaceNormals[i] === surfaceNormals) {
this.__surfaceNormals.splice(i, 1);
}
}
return this.__surfaceNormals;
}
get surfaceNormals() {
return this.__surfaceNormals;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__material === null) {
} else if (typeof this.__material.toXMLNode === 'function') {
str += this.__material.toXMLNode('material');
} else if (typeof this.__material === 'string') {
str += ' material="'+this.__material+'"';
} else if (Array.isArray( this.__material)) {
if (typeof this.__material[0].toXMLNode !== 'function') {
str += ' material="'+this.__material.join(' ')+'"';
} else {
for (let i in this.__material) {
if (typeof this.__material[i].toXMLNode === 'function') {
str += this.__material[i].toXMLNode('material');
}
}
}
} else {
str += ' material="'+this.__material+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__surfaceNormals === null) {
} else if (typeof this.__surfaceNormals.toXMLNode === 'function') {
str += this.__surfaceNormals.toXMLNode('surfaceNormals');
} else if (typeof this.__surfaceNormals === 'string') {
str += ' surfaceNormals="'+this.__surfaceNormals+'"';
} else if (Array.isArray( this.__surfaceNormals)) {
if (typeof this.__surfaceNormals[0].toXMLNode !== 'function') {
str += ' surfaceNormals="'+this.__surfaceNormals.join(' ')+'"';
} else {
for (let i in this.__surfaceNormals) {
if (typeof this.__surfaceNormals[i].toXMLNode === 'function') {
str += this.__surfaceNormals[i].toXMLNode('surfaceNormals');
}
}
}
} else {
str += ' surfaceNormals="'+this.__surfaceNormals+'"';
}
str += ''
return str;
}
}
export class ShaderPart extends X3DNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var type = kwargs["type"] || "VERTEX";
this.__type = type;
var url = kwargs["url"] || null;
this.__url = url;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set type(type = "VERTEX") {
this.__type = [type];
return this;
}
addType(type = "VERTEX") {
if (this.__type == null) {
this.__type = [];
}
this.__type.append(type);
return this;
}
removeType(type) {
for( let i = 0; i < this.__type.length; i++) {
if ( this.__type[i] === type) {
this.__type.splice(i, 1);
}
}
return this.__type;
}
get type() {
return this.__type;
}
set url(url = null) {
this.__url = [url];
return this;
}
addUrl(url = null) {
if (this.__url == null) {
this.__url = [];
}
this.__url.append(url);
return this;
}
removeUrl(url) {
for( let i = 0; i < this.__url.length; i++) {
if ( this.__url[i] === url) {
this.__url.splice(i, 1);
}
}
return this.__url;
}
get url() {
return this.__url;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class ShaderProgram extends X3DNode {
constructor(kwargs = {}) {
super(kwargs);
var field = kwargs["field"] || null;
this.__field = field;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var type = kwargs["type"] || "VERTEX";
this.__type = type;
var url = kwargs["url"] || null;
this.__url = url;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set field(field = null) {
this.__field = [field];
return this;
}
addField(field = null) {
if (this.__field == null) {
this.__field = [];
}
this.__field.append(field);
return this;
}
removeField(field) {
for( let i = 0; i < this.__field.length; i++) {
if ( this.__field[i] === field) {
this.__field.splice(i, 1);
}
}
return this.__field;
}
get field() {
return this.__field;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set type(type = "VERTEX") {
this.__type = [type];
return this;
}
addType(type = "VERTEX") {
if (this.__type == null) {
this.__type = [];
}
this.__type.append(type);
return this;
}
removeType(type) {
for( let i = 0; i < this.__type.length; i++) {
if ( this.__type[i] === type) {
this.__type.splice(i, 1);
}
}
return this.__type;
}
get type() {
return this.__type;
}
set url(url = null) {
this.__url = [url];
return this;
}
addUrl(url = null) {
if (this.__url == null) {
this.__url = [];
}
this.__url.append(url);
return this;
}
removeUrl(url) {
for( let i = 0; i < this.__url.length; i++) {
if ( this.__url[i] === url) {
this.__url.splice(i, 1);
}
}
return this.__url;
}
get url() {
return this.__url;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__field === null) {
} else if (typeof this.__field.toXMLNode === 'function') {
str += this.__field.toXMLNode('field');
} else if (typeof this.__field === 'string') {
str += ' field="'+this.__field+'"';
} else if (Array.isArray( this.__field)) {
if (typeof this.__field[0].toXMLNode !== 'function') {
str += ' field="'+this.__field.join(' ')+'"';
} else {
for (let i in this.__field) {
if (typeof this.__field[i].toXMLNode === 'function') {
str += this.__field[i].toXMLNode('field');
}
}
}
} else {
str += ' field="'+this.__field+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class Shape extends X3DShapeNode {
constructor(kwargs = {}) {
super(kwargs);
var appearance = kwargs["appearance"] || null;
this.__appearance = appearance;
var bboxCenter = kwargs["bboxCenter"] || [0, 0, 0];
this.__bboxCenter = bboxCenter;
var bboxSize = kwargs["bboxSize"] || [-1, -1, -1];
this.__bboxSize = bboxSize;
var displayBBox = kwargs["displayBBox"] || false;
this.__displayBBox = displayBBox;
var geometry = kwargs["geometry"] || null;
this.__geometry = geometry;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var visible = kwargs["visible"] || true;
this.__visible = visible;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set appearance(appearance = null) {
this.__appearance = [appearance];
return this;
}
addAppearance(appearance = null) {
if (this.__appearance == null) {
this.__appearance = [];
}
this.__appearance.append(appearance);
return this;
}
removeAppearance(appearance) {
for( let i = 0; i < this.__appearance.length; i++) {
if ( this.__appearance[i] === appearance) {
this.__appearance.splice(i, 1);
}
}
return this.__appearance;
}
get appearance() {
return this.__appearance;
}
set displayBBox(displayBBox = false) {
this.__displayBBox = [displayBBox];
return this;
}
addDisplayBBox(displayBBox = false) {
if (this.__displayBBox == null) {
this.__displayBBox = [];
}
this.__displayBBox.append(displayBBox);
return this;
}
removeDisplayBBox(displayBBox) {
for( let i = 0; i < this.__displayBBox.length; i++) {
if ( this.__displayBBox[i] === displayBBox) {
this.__displayBBox.splice(i, 1);
}
}
return this.__displayBBox;
}
get isDisplayBBox() {
return this.__displayBBox;
}
set geometry(geometry = null) {
this.__geometry = [geometry];
return this;
}
addGeometry(geometry = null) {
if (this.__geometry == null) {
this.__geometry = [];
}
this.__geometry.append(geometry);
return this;
}
removeGeometry(geometry) {
for( let i = 0; i < this.__geometry.length; i++) {
if ( this.__geometry[i] === geometry) {
this.__geometry.splice(i, 1);
}
}
return this.__geometry;
}
get geometry() {
return this.__geometry;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set visible(visible = true) {
this.__visible = [visible];
return this;
}
addVisible(visible = true) {
if (this.__visible == null) {
this.__visible = [];
}
this.__visible.append(visible);
return this;
}
removeVisible(visible) {
for( let i = 0; i < this.__visible.length; i++) {
if ( this.__visible[i] === visible) {
this.__visible.splice(i, 1);
}
}
return this.__visible;
}
get isVisible() {
return this.__visible;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__appearance === null) {
} else if (typeof this.__appearance.toXMLNode === 'function') {
str += this.__appearance.toXMLNode('appearance');
} else if (typeof this.__appearance === 'string') {
str += ' appearance="'+this.__appearance+'"';
} else if (Array.isArray( this.__appearance)) {
if (typeof this.__appearance[0].toXMLNode !== 'function') {
str += ' appearance="'+this.__appearance.join(' ')+'"';
} else {
for (let i in this.__appearance) {
if (typeof this.__appearance[i].toXMLNode === 'function') {
str += this.__appearance[i].toXMLNode('appearance');
}
}
}
} else {
str += ' appearance="'+this.__appearance+'"';
}
if (this.__geometry === null) {
} else if (typeof this.__geometry.toXMLNode === 'function') {
str += this.__geometry.toXMLNode('geometry');
} else if (typeof this.__geometry === 'string') {
str += ' geometry="'+this.__geometry+'"';
} else if (Array.isArray( this.__geometry)) {
if (typeof this.__geometry[0].toXMLNode !== 'function') {
str += ' geometry="'+this.__geometry.join(' ')+'"';
} else {
for (let i in this.__geometry) {
if (typeof this.__geometry[i].toXMLNode === 'function') {
str += this.__geometry[i].toXMLNode('geometry');
}
}
}
} else {
str += ' geometry="'+this.__geometry+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class SignalPdu extends X3DNetworkSensorNode {
constructor(kwargs = {}) {
super(kwargs);
var address = kwargs["address"] || "localhost";
this.__address = address;
var applicationID = kwargs["applicationID"] || 0;
this.__applicationID = applicationID;
var bboxCenter = kwargs["bboxCenter"] || [0, 0, 0];
this.__bboxCenter = bboxCenter;
var bboxSize = kwargs["bboxSize"] || [-1, -1, -1];
this.__bboxSize = bboxSize;
var data = kwargs["data"] || null;
this.__data = data;
var dataLength = kwargs["dataLength"] || 0;
this.__dataLength = dataLength;
var displayBBox = kwargs["displayBBox"] || false;
this.__displayBBox = displayBBox;
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var encodingScheme = kwargs["encodingScheme"] || 0;
this.__encodingScheme = encodingScheme;
var entityID = kwargs["entityID"] || 0;
this.__entityID = entityID;
var geoCoords = kwargs["geoCoords"] || [0, 0, 0];
this.__geoCoords = geoCoords;
var geoSystem = kwargs["geoSystem"] || ["GD", "WE"];
this.__geoSystem = geoSystem;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var NetworkReader = kwargs["NetworkReader"] || null;
this.__NetworkReader = NetworkReader;
var NetworkWriter = kwargs["NetworkWriter"] || null;
this.__NetworkWriter = NetworkWriter;
var RtpHeaderHeard = kwargs["RtpHeaderHeard"] || null;
this.__RtpHeaderHeard = RtpHeaderHeard;
var StandAlone = kwargs["StandAlone"] || null;
this.__StandAlone = StandAlone;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var multicastRelayHost = kwargs["multicastRelayHost"] || null;
this.__multicastRelayHost = multicastRelayHost;
var multicastRelayPort = kwargs["multicastRelayPort"] || 0;
this.__multicastRelayPort = multicastRelayPort;
var networkMode = kwargs["networkMode"] || "standAlone";
if ('standAlone' === networkMode) {
} else if ('networkReader' === networkMode) {
} else if ('networkWriter' === networkMode) {
} else {
return null;
}
this.__networkMode = networkMode;
var port = kwargs["port"] || 0;
this.__port = port;
var radioID = kwargs["radioID"] || 0;
this.__radioID = radioID;
var readInterval = kwargs["readInterval"] || 0.1;
if (readInterval == null || readInterval < 0) {
return null;
}
this.__readInterval = readInterval;
var rtpHeaderExpected = kwargs["rtpHeaderExpected"] || false;
this.__rtpHeaderExpected = rtpHeaderExpected;
var sampleRate = kwargs["sampleRate"] || 0;
this.__sampleRate = sampleRate;
var samples = kwargs["samples"] || 0;
this.__samples = samples;
var siteID = kwargs["siteID"] || 0;
this.__siteID = siteID;
var tdlType = kwargs["tdlType"] || 0;
this.__tdlType = tdlType;
var timestamp = kwargs["timestamp"] || null;
if (timestamp == null || timestamp < 0) {
return null;
}
this.__timestamp = timestamp;
var visible = kwargs["visible"] || true;
this.__visible = visible;
var whichGeometry = kwargs["whichGeometry"] || 1;
this.__whichGeometry = whichGeometry;
var writeInterval = kwargs["writeInterval"] || 1.0;
if (writeInterval == null || writeInterval < 0) {
return null;
}
this.__writeInterval = writeInterval;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
address(address = "localhost") {
if (this.__address == null) {
this.__address = [];
}
this.__address.append(address);
return this;
}
removeAddress(address) {
for( let i = 0; i < this.__address.length; i++) {
if ( this.__address[i] === address) {
this.__address.splice(i, 1);
}
}
return this.__address;
}
get address() {
return this.__address;
}
set applicationID(applicationID = 0) {
this.__applicationID = [applicationID];
return this;
}
addApplicationID(applicationID = 0) {
if (this.__applicationID == null) {
this.__applicationID = [];
}
this.__applicationID.append(applicationID);
return this;
}
removeApplicationID(applicationID) {
for( let i = 0; i < this.__applicationID.length; i++) {
if ( this.__applicationID[i] === applicationID) {
this.__applicationID.splice(i, 1);
}
}
return this.__applicationID;
}
get applicationID() {
return this.__applicationID;
}
set data(data = null) {
this.__data = [data];
return this;
}
addData(data = null) {
if (this.__data == null) {
this.__data = [];
}
this.__data.append(data);
return this;
}
removeData(data) {
for( let i = 0; i < this.__data.length; i++) {
if ( this.__data[i] === data) {
this.__data.splice(i, 1);
}
}
return this.__data;
}
get data() {
return this.__data;
}
set dataLength(dataLength = 0) {
this.__dataLength = [dataLength];
return this;
}
addDataLength(dataLength = 0) {
if (this.__dataLength == null) {
this.__dataLength = [];
}
this.__dataLength.append(dataLength);
return this;
}
removeDataLength(dataLength) {
for( let i = 0; i < this.__dataLength.length; i++) {
if ( this.__dataLength[i] === dataLength) {
this.__dataLength.splice(i, 1);
}
}
return this.__dataLength;
}
get dataLength() {
return this.__dataLength;
}
set displayBBox(displayBBox = false) {
this.__displayBBox = [displayBBox];
return this;
}
addDisplayBBox(displayBBox = false) {
if (this.__displayBBox == null) {
this.__displayBBox = [];
}
this.__displayBBox.append(displayBBox);
return this;
}
removeDisplayBBox(displayBBox) {
for( let i = 0; i < this.__displayBBox.length; i++) {
if ( this.__displayBBox[i] === displayBBox) {
this.__displayBBox.splice(i, 1);
}
}
return this.__displayBBox;
}
get isDisplayBBox() {
return this.__displayBBox;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
set encodingScheme(encodingScheme = 0) {
this.__encodingScheme = [encodingScheme];
return this;
}
addEncodingScheme(encodingScheme = 0) {
if (this.__encodingScheme == null) {
this.__encodingScheme = [];
}
this.__encodingScheme.append(encodingScheme);
return this;
}
removeEncodingScheme(encodingScheme) {
for( let i = 0; i < this.__encodingScheme.length; i++) {
if ( this.__encodingScheme[i] === encodingScheme) {
this.__encodingScheme.splice(i, 1);
}
}
return this.__encodingScheme;
}
get encodingScheme() {
return this.__encodingScheme;
}
set entityID(entityID = 0) {
this.__entityID = [entityID];
return this;
}
addEntityID(entityID = 0) {
if (this.__entityID == null) {
this.__entityID = [];
}
this.__entityID.append(entityID);
return this;
}
removeEntityID(entityID) {
for( let i = 0; i < this.__entityID.length; i++) {
if ( this.__entityID[i] === entityID) {
this.__entityID.splice(i, 1);
}
}
return this.__entityID;
}
get entityID() {
return this.__entityID;
}
set geoCoords(geoCoords = [0, 0, 0]) {
this.__geoCoords = [geoCoords];
return this;
}
addGeoCoords(geoCoords = [0, 0, 0]) {
if (this.__geoCoords == null) {
this.__geoCoords = [];
}
this.__geoCoords.append(geoCoords);
return this;
}
removeGeoCoords(geoCoords) {
for( let i = 0; i < this.__geoCoords.length; i++) {
if ( this.__geoCoords[i] === geoCoords) {
this.__geoCoords.splice(i, 1);
}
}
return this.__geoCoords;
}
get geoCoords() {
return this.__geoCoords;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
get isNetworkReader() {
return this.__NetworkReader;
}
get isNetworkWriter() {
return this.__NetworkWriter;
}
get isRtpHeaderHeard() {
return this.__RtpHeaderHeard;
}
get isStandAlone() {
return this.__StandAlone;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set multicastRelayHost(multicastRelayHost = null) {
this.__multicastRelayHost = [multicastRelayHost];
return this;
}
addMulticastRelayHost(multicastRelayHost = null) {
if (this.__multicastRelayHost == null) {
this.__multicastRelayHost = [];
}
this.__multicastRelayHost.append(multicastRelayHost);
return this;
}
removeMulticastRelayHost(multicastRelayHost) {
for( let i = 0; i < this.__multicastRelayHost.length; i++) {
if ( this.__multicastRelayHost[i] === multicastRelayHost) {
this.__multicastRelayHost.splice(i, 1);
}
}
return this.__multicastRelayHost;
}
get multicastRelayHost() {
return this.__multicastRelayHost;
}
set multicastRelayPort(multicastRelayPort = 0) {
this.__multicastRelayPort = [multicastRelayPort];
return this;
}
addMulticastRelayPort(multicastRelayPort = 0) {
if (this.__multicastRelayPort == null) {
this.__multicastRelayPort = [];
}
this.__multicastRelayPort.append(multicastRelayPort);
return this;
}
removeMulticastRelayPort(multicastRelayPort) {
for( let i = 0; i < this.__multicastRelayPort.length; i++) {
if ( this.__multicastRelayPort[i] === multicastRelayPort) {
this.__multicastRelayPort.splice(i, 1);
}
}
return this.__multicastRelayPort;
}
get multicastRelayPort() {
return this.__multicastRelayPort;
}
set networkMode(networkMode = "standAlone") {
if ('standAlone' === networkMode) {
} else if ('networkReader' === networkMode) {
} else if ('networkWriter' === networkMode) {
} else {
return null;
}
this.__networkMode = [networkMode];
return this;
}
addNetworkMode(networkMode = "standAlone") {
if ('standAlone' === networkMode) {
} else if ('networkReader' === networkMode) {
} else if ('networkWriter' === networkMode) {
} else {
return null;
}
if (this.__networkMode == null) {
this.__networkMode = [];
}
this.__networkMode.append(networkMode);
return this;
}
removeNetworkMode(networkMode) {
for( let i = 0; i < this.__networkMode.length; i++) {
if ( this.__networkMode[i] === networkMode) {
this.__networkMode.splice(i, 1);
}
}
return this.__networkMode;
}
get networkMode() {
return this.__networkMode;
}
set port(port = 0) {
this.__port = [port];
return this;
}
addPort(port = 0) {
if (this.__port == null) {
this.__port = [];
}
this.__port.append(port);
return this;
}
removePort(port) {
for( let i = 0; i < this.__port.length; i++) {
if ( this.__port[i] === port) {
this.__port.splice(i, 1);
}
}
return this.__port;
}
get port() {
return this.__port;
}
set radioID(radioID = 0) {
this.__radioID = [radioID];
return this;
}
addRadioID(radioID = 0) {
if (this.__radioID == null) {
this.__radioID = [];
}
this.__radioID.append(radioID);
return this;
}
removeRadioID(radioID) {
for( let i = 0; i < this.__radioID.length; i++) {
if ( this.__radioID[i] === radioID) {
this.__radioID.splice(i, 1);
}
}
return this.__radioID;
}
get radioID() {
return this.__radioID;
}
set readInterval(readInterval = 0.1) {
if (readInterval == null || readInterval < 0) {
return null;
}
this.__readInterval = [readInterval];
return this;
}
addReadInterval(readInterval = 0.1) {
if (readInterval == null || readInterval < 0) {
return null;
}
if (this.__readInterval == null) {
this.__readInterval = [];
}
this.__readInterval.append(readInterval);
return this;
}
removeReadInterval(readInterval) {
for( let i = 0; i < this.__readInterval.length; i++) {
if ( this.__readInterval[i] === readInterval) {
this.__readInterval.splice(i, 1);
}
}
return this.__readInterval;
}
get readInterval() {
return this.__readInterval;
}
set sampleRate(sampleRate = 0) {
this.__sampleRate = [sampleRate];
return this;
}
addSampleRate(sampleRate = 0) {
if (this.__sampleRate == null) {
this.__sampleRate = [];
}
this.__sampleRate.append(sampleRate);
return this;
}
removeSampleRate(sampleRate) {
for( let i = 0; i < this.__sampleRate.length; i++) {
if ( this.__sampleRate[i] === sampleRate) {
this.__sampleRate.splice(i, 1);
}
}
return this.__sampleRate;
}
get sampleRate() {
return this.__sampleRate;
}
set samples(samples = 0) {
this.__samples = [samples];
return this;
}
addSamples(samples = 0) {
if (this.__samples == null) {
this.__samples = [];
}
this.__samples.append(samples);
return this;
}
removeSamples(samples) {
for( let i = 0; i < this.__samples.length; i++) {
if ( this.__samples[i] === samples) {
this.__samples.splice(i, 1);
}
}
return this.__samples;
}
get samples() {
return this.__samples;
}
set siteID(siteID = 0) {
this.__siteID = [siteID];
return this;
}
addSiteID(siteID = 0) {
if (this.__siteID == null) {
this.__siteID = [];
}
this.__siteID.append(siteID);
return this;
}
removeSiteID(siteID) {
for( let i = 0; i < this.__siteID.length; i++) {
if ( this.__siteID[i] === siteID) {
this.__siteID.splice(i, 1);
}
}
return this.__siteID;
}
get siteID() {
return this.__siteID;
}
set tdlType(tdlType = 0) {
this.__tdlType = [tdlType];
return this;
}
addTdlType(tdlType = 0) {
if (this.__tdlType == null) {
this.__tdlType = [];
}
this.__tdlType.append(tdlType);
return this;
}
removeTdlType(tdlType) {
for( let i = 0; i < this.__tdlType.length; i++) {
if ( this.__tdlType[i] === tdlType) {
this.__tdlType.splice(i, 1);
}
}
return this.__tdlType;
}
get tdlType() {
return this.__tdlType;
}
removeTimestamp(timestamp) {
for( let i = 0; i < this.__timestamp.length; i++) {
if ( this.__timestamp[i] === timestamp) {
this.__timestamp.splice(i, 1);
}
}
return this.__timestamp;
}
get timestamp() {
return this.__timestamp;
}
set visible(visible = true) {
this.__visible = [visible];
return this;
}
addVisible(visible = true) {
if (this.__visible == null) {
this.__visible = [];
}
this.__visible.append(visible);
return this;
}
removeVisible(visible) {
for( let i = 0; i < this.__visible.length; i++) {
if ( this.__visible[i] === visible) {
this.__visible.splice(i, 1);
}
}
return this.__visible;
}
get isVisible() {
return this.__visible;
}
set whichGeometry(whichGeometry = 1) {
this.__whichGeometry = [whichGeometry];
return this;
}
addWhichGeometry(whichGeometry = 1) {
if (this.__whichGeometry == null) {
this.__whichGeometry = [];
}
this.__whichGeometry.append(whichGeometry);
return this;
}
removeWhichGeometry(whichGeometry) {
for( let i = 0; i < this.__whichGeometry.length; i++) {
if ( this.__whichGeometry[i] === whichGeometry) {
this.__whichGeometry.splice(i, 1);
}
}
return this.__whichGeometry;
}
get whichGeometry() {
return this.__whichGeometry;
}
set writeInterval(writeInterval = 1.0) {
if (writeInterval == null || writeInterval < 0) {
return null;
}
this.__writeInterval = [writeInterval];
return this;
}
addWriteInterval(writeInterval = 1.0) {
if (writeInterval == null || writeInterval < 0) {
return null;
}
if (this.__writeInterval == null) {
this.__writeInterval = [];
}
this.__writeInterval.append(writeInterval);
return this;
}
removeWriteInterval(writeInterval) {
for( let i = 0; i < this.__writeInterval.length; i++) {
if ( this.__writeInterval[i] === writeInterval) {
this.__writeInterval.splice(i, 1);
}
}
return this.__writeInterval;
}
get writeInterval() {
return this.__writeInterval;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class SilhouetteEnhancementVolumeStyle extends X3DComposableVolumeRenderStyleNode {
constructor(kwargs = {}) {
super(kwargs);
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var silhouetteBoundaryOpacity = kwargs["silhouetteBoundaryOpacity"] || 0;
if (silhouetteBoundaryOpacity == null || silhouetteBoundaryOpacity < 0) {
return null;
}
if (silhouetteBoundaryOpacity == null || silhouetteBoundaryOpacity > 1) {
return null;
}
this.__silhouetteBoundaryOpacity = silhouetteBoundaryOpacity;
var silhouetteRetainedOpacity = kwargs["silhouetteRetainedOpacity"] || 1;
if (silhouetteRetainedOpacity == null || silhouetteRetainedOpacity < 0) {
return null;
}
if (silhouetteRetainedOpacity == null || silhouetteRetainedOpacity > 1) {
return null;
}
this.__silhouetteRetainedOpacity = silhouetteRetainedOpacity;
var silhouetteSharpness = kwargs["silhouetteSharpness"] || 0.5;
if (silhouetteSharpness == null || silhouetteSharpness < 0) {
return null;
}
this.__silhouetteSharpness = silhouetteSharpness;
var surfaceNormals = kwargs["surfaceNormals"] || null;
this.__surfaceNormals = surfaceNormals;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set silhouetteBoundaryOpacity(silhouetteBoundaryOpacity = 0) {
if (silhouetteBoundaryOpacity == null || silhouetteBoundaryOpacity < 0) {
return null;
}
if (silhouetteBoundaryOpacity == null || silhouetteBoundaryOpacity > 1) {
return null;
}
this.__silhouetteBoundaryOpacity = [silhouetteBoundaryOpacity];
return this;
}
addSilhouetteBoundaryOpacity(silhouetteBoundaryOpacity = 0) {
if (silhouetteBoundaryOpacity == null || silhouetteBoundaryOpacity < 0) {
return null;
}
if (silhouetteBoundaryOpacity == null || silhouetteBoundaryOpacity > 1) {
return null;
}
if (this.__silhouetteBoundaryOpacity == null) {
this.__silhouetteBoundaryOpacity = [];
}
this.__silhouetteBoundaryOpacity.append(silhouetteBoundaryOpacity);
return this;
}
removeSilhouetteBoundaryOpacity(silhouetteBoundaryOpacity) {
for( let i = 0; i < this.__silhouetteBoundaryOpacity.length; i++) {
if ( this.__silhouetteBoundaryOpacity[i] === silhouetteBoundaryOpacity) {
this.__silhouetteBoundaryOpacity.splice(i, 1);
}
}
return this.__silhouetteBoundaryOpacity;
}
get silhouetteBoundaryOpacity() {
return this.__silhouetteBoundaryOpacity;
}
set silhouetteRetainedOpacity(silhouetteRetainedOpacity = 1) {
if (silhouetteRetainedOpacity == null || silhouetteRetainedOpacity < 0) {
return null;
}
if (silhouetteRetainedOpacity == null || silhouetteRetainedOpacity > 1) {
return null;
}
this.__silhouetteRetainedOpacity = [silhouetteRetainedOpacity];
return this;
}
addSilhouetteRetainedOpacity(silhouetteRetainedOpacity = 1) {
if (silhouetteRetainedOpacity == null || silhouetteRetainedOpacity < 0) {
return null;
}
if (silhouetteRetainedOpacity == null || silhouetteRetainedOpacity > 1) {
return null;
}
if (this.__silhouetteRetainedOpacity == null) {
this.__silhouetteRetainedOpacity = [];
}
this.__silhouetteRetainedOpacity.append(silhouetteRetainedOpacity);
return this;
}
removeSilhouetteRetainedOpacity(silhouetteRetainedOpacity) {
for( let i = 0; i < this.__silhouetteRetainedOpacity.length; i++) {
if ( this.__silhouetteRetainedOpacity[i] === silhouetteRetainedOpacity) {
this.__silhouetteRetainedOpacity.splice(i, 1);
}
}
return this.__silhouetteRetainedOpacity;
}
get silhouetteRetainedOpacity() {
return this.__silhouetteRetainedOpacity;
}
set silhouetteSharpness(silhouetteSharpness = 0.5) {
if (silhouetteSharpness == null || silhouetteSharpness < 0) {
return null;
}
this.__silhouetteSharpness = [silhouetteSharpness];
return this;
}
addSilhouetteSharpness(silhouetteSharpness = 0.5) {
if (silhouetteSharpness == null || silhouetteSharpness < 0) {
return null;
}
if (this.__silhouetteSharpness == null) {
this.__silhouetteSharpness = [];
}
this.__silhouetteSharpness.append(silhouetteSharpness);
return this;
}
removeSilhouetteSharpness(silhouetteSharpness) {
for( let i = 0; i < this.__silhouetteSharpness.length; i++) {
if ( this.__silhouetteSharpness[i] === silhouetteSharpness) {
this.__silhouetteSharpness.splice(i, 1);
}
}
return this.__silhouetteSharpness;
}
get silhouetteSharpness() {
return this.__silhouetteSharpness;
}
set surfaceNormals(surfaceNormals = null) {
this.__surfaceNormals = [surfaceNormals];
return this;
}
addSurfaceNormals(surfaceNormals = null) {
if (this.__surfaceNormals == null) {
this.__surfaceNormals = [];
}
this.__surfaceNormals.append(surfaceNormals);
return this;
}
removeSurfaceNormals(surfaceNormals) {
for( let i = 0; i < this.__surfaceNormals.length; i++) {
if ( this.__surfaceNormals[i] === surfaceNormals) {
this.__surfaceNormals.splice(i, 1);
}
}
return this.__surfaceNormals;
}
get surfaceNormals() {
return this.__surfaceNormals;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__surfaceNormals === null) {
} else if (typeof this.__surfaceNormals.toXMLNode === 'function') {
str += this.__surfaceNormals.toXMLNode('surfaceNormals');
} else if (typeof this.__surfaceNormals === 'string') {
str += ' surfaceNormals="'+this.__surfaceNormals+'"';
} else if (Array.isArray( this.__surfaceNormals)) {
if (typeof this.__surfaceNormals[0].toXMLNode !== 'function') {
str += ' surfaceNormals="'+this.__surfaceNormals.join(' ')+'"';
} else {
for (let i in this.__surfaceNormals) {
if (typeof this.__surfaceNormals[i].toXMLNode === 'function') {
str += this.__surfaceNormals[i].toXMLNode('surfaceNormals');
}
}
}
} else {
str += ' surfaceNormals="'+this.__surfaceNormals+'"';
}
str += ''
return str;
}
}
export class SingleAxisHingeJoint extends X3DRigidJointNode {
constructor(kwargs = {}) {
super(kwargs);
var anchorPoint = kwargs["anchorPoint"] || [0, 0, 0];
this.__anchorPoint = anchorPoint;
var angle = kwargs["angle"] || null;
this.__angle = angle;
var angleRate = kwargs["angleRate"] || null;
this.__angleRate = angleRate;
var axis = kwargs["axis"] || [0, 0, 0];
this.__axis = axis;
var body1 = kwargs["body1"] || null;
this.__body1 = body1;
var body1AnchorPoint = kwargs["body1AnchorPoint"] || null;
this.__body1AnchorPoint = body1AnchorPoint;
var body2 = kwargs["body2"] || null;
this.__body2 = body2;
var body2AnchorPoint = kwargs["body2AnchorPoint"] || null;
this.__body2AnchorPoint = body2AnchorPoint;
var forceOutput = kwargs["forceOutput"] || ["NONE"];
this.__forceOutput = forceOutput;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var maxAngle = kwargs["maxAngle"] || 3.141592653;
this.__maxAngle = maxAngle;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var minAngle = kwargs["minAngle"] || -3.141592653;
this.__minAngle = minAngle;
var stopBounce = kwargs["stopBounce"] || 0;
this.__stopBounce = stopBounce;
var stopErrorCorrection = kwargs["stopErrorCorrection"] || 0.8;
this.__stopErrorCorrection = stopErrorCorrection;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set anchorPoint(anchorPoint = [0, 0, 0]) {
this.__anchorPoint = [anchorPoint];
return this;
}
addAnchorPoint(anchorPoint = [0, 0, 0]) {
if (this.__anchorPoint == null) {
this.__anchorPoint = [];
}
this.__anchorPoint.append(anchorPoint);
return this;
}
removeAnchorPoint(anchorPoint) {
for( let i = 0; i < this.__anchorPoint.length; i++) {
if ( this.__anchorPoint[i] === anchorPoint) {
this.__anchorPoint.splice(i, 1);
}
}
return this.__anchorPoint;
}
get anchorPoint() {
return this.__anchorPoint;
}
removeAngle(angle) {
for( let i = 0; i < this.__angle.length; i++) {
if ( this.__angle[i] === angle) {
this.__angle.splice(i, 1);
}
}
return this.__angle;
}
get angle() {
return this.__angle;
}
removeAngleRate(angleRate) {
for( let i = 0; i < this.__angleRate.length; i++) {
if ( this.__angleRate[i] === angleRate) {
this.__angleRate.splice(i, 1);
}
}
return this.__angleRate;
}
get angleRate() {
return this.__angleRate;
}
set axis(axis = [0, 0, 0]) {
this.__axis = [axis];
return this;
}
addAxis(axis = [0, 0, 0]) {
if (this.__axis == null) {
this.__axis = [];
}
this.__axis.append(axis);
return this;
}
removeAxis(axis) {
for( let i = 0; i < this.__axis.length; i++) {
if ( this.__axis[i] === axis) {
this.__axis.splice(i, 1);
}
}
return this.__axis;
}
get axis() {
return this.__axis;
}
set body1(body1 = null) {
this.__body1 = [body1];
return this;
}
addBody1(body1 = null) {
if (this.__body1 == null) {
this.__body1 = [];
}
this.__body1.append(body1);
return this;
}
removeBody1(body1) {
for( let i = 0; i < this.__body1.length; i++) {
if ( this.__body1[i] === body1) {
this.__body1.splice(i, 1);
}
}
return this.__body1;
}
get body1() {
return this.__body1;
}
removeBody1AnchorPoint(body1AnchorPoint) {
for( let i = 0; i < this.__body1AnchorPoint.length; i++) {
if ( this.__body1AnchorPoint[i] === body1AnchorPoint) {
this.__body1AnchorPoint.splice(i, 1);
}
}
return this.__body1AnchorPoint;
}
get body1AnchorPoint() {
return this.__body1AnchorPoint;
}
set body2(body2 = null) {
this.__body2 = [body2];
return this;
}
addBody2(body2 = null) {
if (this.__body2 == null) {
this.__body2 = [];
}
this.__body2.append(body2);
return this;
}
removeBody2(body2) {
for( let i = 0; i < this.__body2.length; i++) {
if ( this.__body2[i] === body2) {
this.__body2.splice(i, 1);
}
}
return this.__body2;
}
get body2() {
return this.__body2;
}
removeBody2AnchorPoint(body2AnchorPoint) {
for( let i = 0; i < this.__body2AnchorPoint.length; i++) {
if ( this.__body2AnchorPoint[i] === body2AnchorPoint) {
this.__body2AnchorPoint.splice(i, 1);
}
}
return this.__body2AnchorPoint;
}
get body2AnchorPoint() {
return this.__body2AnchorPoint;
}
set forceOutput(forceOutput = ["NONE"]) {
this.__forceOutput = [forceOutput];
return this;
}
addForceOutput(forceOutput = ["NONE"]) {
if (this.__forceOutput == null) {
this.__forceOutput = [];
}
this.__forceOutput.append(forceOutput);
return this;
}
removeForceOutput(forceOutput) {
for( let i = 0; i < this.__forceOutput.length; i++) {
if ( this.__forceOutput[i] === forceOutput) {
this.__forceOutput.splice(i, 1);
}
}
return this.__forceOutput;
}
get forceOutput() {
return this.__forceOutput;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set maxAngle(maxAngle = 3.141592653) {
this.__maxAngle = [maxAngle];
return this;
}
addMaxAngle(maxAngle = 3.141592653) {
if (this.__maxAngle == null) {
this.__maxAngle = [];
}
this.__maxAngle.append(maxAngle);
return this;
}
removeMaxAngle(maxAngle) {
for( let i = 0; i < this.__maxAngle.length; i++) {
if ( this.__maxAngle[i] === maxAngle) {
this.__maxAngle.splice(i, 1);
}
}
return this.__maxAngle;
}
get maxAngle() {
return this.__maxAngle;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set minAngle(minAngle = -3.141592653) {
this.__minAngle = [minAngle];
return this;
}
addMinAngle(minAngle = -3.141592653) {
if (this.__minAngle == null) {
this.__minAngle = [];
}
this.__minAngle.append(minAngle);
return this;
}
removeMinAngle(minAngle) {
for( let i = 0; i < this.__minAngle.length; i++) {
if ( this.__minAngle[i] === minAngle) {
this.__minAngle.splice(i, 1);
}
}
return this.__minAngle;
}
get minAngle() {
return this.__minAngle;
}
set stopBounce(stopBounce = 0) {
this.__stopBounce = [stopBounce];
return this;
}
addStopBounce(stopBounce = 0) {
if (this.__stopBounce == null) {
this.__stopBounce = [];
}
this.__stopBounce.append(stopBounce);
return this;
}
removeStopBounce(stopBounce) {
for( let i = 0; i < this.__stopBounce.length; i++) {
if ( this.__stopBounce[i] === stopBounce) {
this.__stopBounce.splice(i, 1);
}
}
return this.__stopBounce;
}
get stopBounce() {
return this.__stopBounce;
}
set stopErrorCorrection(stopErrorCorrection = 0.8) {
this.__stopErrorCorrection = [stopErrorCorrection];
return this;
}
addStopErrorCorrection(stopErrorCorrection = 0.8) {
if (this.__stopErrorCorrection == null) {
this.__stopErrorCorrection = [];
}
this.__stopErrorCorrection.append(stopErrorCorrection);
return this;
}
removeStopErrorCorrection(stopErrorCorrection) {
for( let i = 0; i < this.__stopErrorCorrection.length; i++) {
if ( this.__stopErrorCorrection[i] === stopErrorCorrection) {
this.__stopErrorCorrection.splice(i, 1);
}
}
return this.__stopErrorCorrection;
}
get stopErrorCorrection() {
return this.__stopErrorCorrection;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__body1 === null) {
} else if (typeof this.__body1.toXMLNode === 'function') {
str += this.__body1.toXMLNode('body1');
} else if (typeof this.__body1 === 'string') {
str += ' body1="'+this.__body1+'"';
} else if (Array.isArray( this.__body1)) {
if (typeof this.__body1[0].toXMLNode !== 'function') {
str += ' body1="'+this.__body1.join(' ')+'"';
} else {
for (let i in this.__body1) {
if (typeof this.__body1[i].toXMLNode === 'function') {
str += this.__body1[i].toXMLNode('body1');
}
}
}
} else {
str += ' body1="'+this.__body1+'"';
}
if (this.__body2 === null) {
} else if (typeof this.__body2.toXMLNode === 'function') {
str += this.__body2.toXMLNode('body2');
} else if (typeof this.__body2 === 'string') {
str += ' body2="'+this.__body2+'"';
} else if (Array.isArray( this.__body2)) {
if (typeof this.__body2[0].toXMLNode !== 'function') {
str += ' body2="'+this.__body2.join(' ')+'"';
} else {
for (let i in this.__body2) {
if (typeof this.__body2[i].toXMLNode === 'function') {
str += this.__body2[i].toXMLNode('body2');
}
}
}
} else {
str += ' body2="'+this.__body2+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class SliderJoint extends X3DRigidJointNode {
constructor(kwargs = {}) {
super(kwargs);
var axis = kwargs["axis"] || [0, 1, 0];
this.__axis = axis;
var body1 = kwargs["body1"] || null;
this.__body1 = body1;
var body2 = kwargs["body2"] || null;
this.__body2 = body2;
var forceOutput = kwargs["forceOutput"] || ["NONE"];
this.__forceOutput = forceOutput;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var maxSeparation = kwargs["maxSeparation"] || 1;
this.__maxSeparation = maxSeparation;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var minSeparation = kwargs["minSeparation"] || 0;
this.__minSeparation = minSeparation;
var separation = kwargs["separation"] || null;
this.__separation = separation;
var separationRate = kwargs["separationRate"] || null;
this.__separationRate = separationRate;
var sliderForce = kwargs["sliderForce"] || 0;
this.__sliderForce = sliderForce;
var stopBounce = kwargs["stopBounce"] || 0;
this.__stopBounce = stopBounce;
var stopErrorCorrection = kwargs["stopErrorCorrection"] || 1;
this.__stopErrorCorrection = stopErrorCorrection;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set axis(axis = [0, 1, 0]) {
this.__axis = [axis];
return this;
}
addAxis(axis = [0, 1, 0]) {
if (this.__axis == null) {
this.__axis = [];
}
this.__axis.append(axis);
return this;
}
removeAxis(axis) {
for( let i = 0; i < this.__axis.length; i++) {
if ( this.__axis[i] === axis) {
this.__axis.splice(i, 1);
}
}
return this.__axis;
}
get axis() {
return this.__axis;
}
set body1(body1 = null) {
this.__body1 = [body1];
return this;
}
addBody1(body1 = null) {
if (this.__body1 == null) {
this.__body1 = [];
}
this.__body1.append(body1);
return this;
}
removeBody1(body1) {
for( let i = 0; i < this.__body1.length; i++) {
if ( this.__body1[i] === body1) {
this.__body1.splice(i, 1);
}
}
return this.__body1;
}
get body1() {
return this.__body1;
}
set body2(body2 = null) {
this.__body2 = [body2];
return this;
}
addBody2(body2 = null) {
if (this.__body2 == null) {
this.__body2 = [];
}
this.__body2.append(body2);
return this;
}
removeBody2(body2) {
for( let i = 0; i < this.__body2.length; i++) {
if ( this.__body2[i] === body2) {
this.__body2.splice(i, 1);
}
}
return this.__body2;
}
get body2() {
return this.__body2;
}
set forceOutput(forceOutput = ["NONE"]) {
this.__forceOutput = [forceOutput];
return this;
}
addForceOutput(forceOutput = ["NONE"]) {
if (this.__forceOutput == null) {
this.__forceOutput = [];
}
this.__forceOutput.append(forceOutput);
return this;
}
removeForceOutput(forceOutput) {
for( let i = 0; i < this.__forceOutput.length; i++) {
if ( this.__forceOutput[i] === forceOutput) {
this.__forceOutput.splice(i, 1);
}
}
return this.__forceOutput;
}
get forceOutput() {
return this.__forceOutput;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set maxSeparation(maxSeparation = 1) {
this.__maxSeparation = [maxSeparation];
return this;
}
addMaxSeparation(maxSeparation = 1) {
if (this.__maxSeparation == null) {
this.__maxSeparation = [];
}
this.__maxSeparation.append(maxSeparation);
return this;
}
removeMaxSeparation(maxSeparation) {
for( let i = 0; i < this.__maxSeparation.length; i++) {
if ( this.__maxSeparation[i] === maxSeparation) {
this.__maxSeparation.splice(i, 1);
}
}
return this.__maxSeparation;
}
get maxSeparation() {
return this.__maxSeparation;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set minSeparation(minSeparation = 0) {
this.__minSeparation = [minSeparation];
return this;
}
addMinSeparation(minSeparation = 0) {
if (this.__minSeparation == null) {
this.__minSeparation = [];
}
this.__minSeparation.append(minSeparation);
return this;
}
removeMinSeparation(minSeparation) {
for( let i = 0; i < this.__minSeparation.length; i++) {
if ( this.__minSeparation[i] === minSeparation) {
this.__minSeparation.splice(i, 1);
}
}
return this.__minSeparation;
}
get minSeparation() {
return this.__minSeparation;
}
removeSeparation(separation) {
for( let i = 0; i < this.__separation.length; i++) {
if ( this.__separation[i] === separation) {
this.__separation.splice(i, 1);
}
}
return this.__separation;
}
get separation() {
return this.__separation;
}
removeSeparationRate(separationRate) {
for( let i = 0; i < this.__separationRate.length; i++) {
if ( this.__separationRate[i] === separationRate) {
this.__separationRate.splice(i, 1);
}
}
return this.__separationRate;
}
get separationRate() {
return this.__separationRate;
}
set sliderForce(sliderForce = 0) {
this.__sliderForce = [sliderForce];
return this;
}
addSliderForce(sliderForce = 0) {
if (this.__sliderForce == null) {
this.__sliderForce = [];
}
this.__sliderForce.append(sliderForce);
return this;
}
removeSliderForce(sliderForce) {
for( let i = 0; i < this.__sliderForce.length; i++) {
if ( this.__sliderForce[i] === sliderForce) {
this.__sliderForce.splice(i, 1);
}
}
return this.__sliderForce;
}
get sliderForce() {
return this.__sliderForce;
}
set stopBounce(stopBounce = 0) {
this.__stopBounce = [stopBounce];
return this;
}
addStopBounce(stopBounce = 0) {
if (this.__stopBounce == null) {
this.__stopBounce = [];
}
this.__stopBounce.append(stopBounce);
return this;
}
removeStopBounce(stopBounce) {
for( let i = 0; i < this.__stopBounce.length; i++) {
if ( this.__stopBounce[i] === stopBounce) {
this.__stopBounce.splice(i, 1);
}
}
return this.__stopBounce;
}
get stopBounce() {
return this.__stopBounce;
}
set stopErrorCorrection(stopErrorCorrection = 1) {
this.__stopErrorCorrection = [stopErrorCorrection];
return this;
}
addStopErrorCorrection(stopErrorCorrection = 1) {
if (this.__stopErrorCorrection == null) {
this.__stopErrorCorrection = [];
}
this.__stopErrorCorrection.append(stopErrorCorrection);
return this;
}
removeStopErrorCorrection(stopErrorCorrection) {
for( let i = 0; i < this.__stopErrorCorrection.length; i++) {
if ( this.__stopErrorCorrection[i] === stopErrorCorrection) {
this.__stopErrorCorrection.splice(i, 1);
}
}
return this.__stopErrorCorrection;
}
get stopErrorCorrection() {
return this.__stopErrorCorrection;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__body1 === null) {
} else if (typeof this.__body1.toXMLNode === 'function') {
str += this.__body1.toXMLNode('body1');
} else if (typeof this.__body1 === 'string') {
str += ' body1="'+this.__body1+'"';
} else if (Array.isArray( this.__body1)) {
if (typeof this.__body1[0].toXMLNode !== 'function') {
str += ' body1="'+this.__body1.join(' ')+'"';
} else {
for (let i in this.__body1) {
if (typeof this.__body1[i].toXMLNode === 'function') {
str += this.__body1[i].toXMLNode('body1');
}
}
}
} else {
str += ' body1="'+this.__body1+'"';
}
if (this.__body2 === null) {
} else if (typeof this.__body2.toXMLNode === 'function') {
str += this.__body2.toXMLNode('body2');
} else if (typeof this.__body2 === 'string') {
str += ' body2="'+this.__body2+'"';
} else if (Array.isArray( this.__body2)) {
if (typeof this.__body2[0].toXMLNode !== 'function') {
str += ' body2="'+this.__body2.join(' ')+'"';
} else {
for (let i in this.__body2) {
if (typeof this.__body2[i].toXMLNode === 'function') {
str += this.__body2[i].toXMLNode('body2');
}
}
}
} else {
str += ' body2="'+this.__body2+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class Sound extends X3DSoundNode {
constructor(kwargs = {}) {
super(kwargs);
var direction = kwargs["direction"] || [0, 0, 1];
this.__direction = direction;
var intensity = kwargs["intensity"] || 1;
if (intensity == null || intensity < 0) {
return null;
}
if (intensity == null || intensity > 1) {
return null;
}
this.__intensity = intensity;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var location = kwargs["location"] || [0, 0, 0];
this.__location = location;
var maxBack = kwargs["maxBack"] || 10;
if (maxBack == null || maxBack < 0) {
return null;
}
this.__maxBack = maxBack;
var maxFront = kwargs["maxFront"] || 10;
if (maxFront == null || maxFront < 0) {
return null;
}
this.__maxFront = maxFront;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var minBack = kwargs["minBack"] || 1;
if (minBack == null || minBack < 0) {
return null;
}
this.__minBack = minBack;
var minFront = kwargs["minFront"] || 1;
if (minFront == null || minFront < 0) {
return null;
}
this.__minFront = minFront;
var priority = kwargs["priority"] || 0;
if (priority == null || priority < 0) {
return null;
}
if (priority == null || priority > 1) {
return null;
}
this.__priority = priority;
var source = kwargs["source"] || null;
this.__source = source;
var spatialize = kwargs["spatialize"] || true;
this.__spatialize = spatialize;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set direction(direction = [0, 0, 1]) {
this.__direction = [direction];
return this;
}
addDirection(direction = [0, 0, 1]) {
if (this.__direction == null) {
this.__direction = [];
}
this.__direction.append(direction);
return this;
}
removeDirection(direction) {
for( let i = 0; i < this.__direction.length; i++) {
if ( this.__direction[i] === direction) {
this.__direction.splice(i, 1);
}
}
return this.__direction;
}
get direction() {
return this.__direction;
}
set intensity(intensity = 1) {
if (intensity == null || intensity < 0) {
return null;
}
if (intensity == null || intensity > 1) {
return null;
}
this.__intensity = [intensity];
return this;
}
addIntensity(intensity = 1) {
if (intensity == null || intensity < 0) {
return null;
}
if (intensity == null || intensity > 1) {
return null;
}
if (this.__intensity == null) {
this.__intensity = [];
}
this.__intensity.append(intensity);
return this;
}
removeIntensity(intensity) {
for( let i = 0; i < this.__intensity.length; i++) {
if ( this.__intensity[i] === intensity) {
this.__intensity.splice(i, 1);
}
}
return this.__intensity;
}
get intensity() {
return this.__intensity;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set location(location = [0, 0, 0]) {
this.__location = [location];
return this;
}
addLocation(location = [0, 0, 0]) {
if (this.__location == null) {
this.__location = [];
}
this.__location.append(location);
return this;
}
removeLocation(location) {
for( let i = 0; i < this.__location.length; i++) {
if ( this.__location[i] === location) {
this.__location.splice(i, 1);
}
}
return this.__location;
}
get location() {
return this.__location;
}
set maxBack(maxBack = 10) {
if (maxBack == null || maxBack < 0) {
return null;
}
this.__maxBack = [maxBack];
return this;
}
addMaxBack(maxBack = 10) {
if (maxBack == null || maxBack < 0) {
return null;
}
if (this.__maxBack == null) {
this.__maxBack = [];
}
this.__maxBack.append(maxBack);
return this;
}
removeMaxBack(maxBack) {
for( let i = 0; i < this.__maxBack.length; i++) {
if ( this.__maxBack[i] === maxBack) {
this.__maxBack.splice(i, 1);
}
}
return this.__maxBack;
}
get maxBack() {
return this.__maxBack;
}
set maxFront(maxFront = 10) {
if (maxFront == null || maxFront < 0) {
return null;
}
this.__maxFront = [maxFront];
return this;
}
addMaxFront(maxFront = 10) {
if (maxFront == null || maxFront < 0) {
return null;
}
if (this.__maxFront == null) {
this.__maxFront = [];
}
this.__maxFront.append(maxFront);
return this;
}
removeMaxFront(maxFront) {
for( let i = 0; i < this.__maxFront.length; i++) {
if ( this.__maxFront[i] === maxFront) {
this.__maxFront.splice(i, 1);
}
}
return this.__maxFront;
}
get maxFront() {
return this.__maxFront;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set minBack(minBack = 1) {
if (minBack == null || minBack < 0) {
return null;
}
this.__minBack = [minBack];
return this;
}
addMinBack(minBack = 1) {
if (minBack == null || minBack < 0) {
return null;
}
if (this.__minBack == null) {
this.__minBack = [];
}
this.__minBack.append(minBack);
return this;
}
removeMinBack(minBack) {
for( let i = 0; i < this.__minBack.length; i++) {
if ( this.__minBack[i] === minBack) {
this.__minBack.splice(i, 1);
}
}
return this.__minBack;
}
get minBack() {
return this.__minBack;
}
set minFront(minFront = 1) {
if (minFront == null || minFront < 0) {
return null;
}
this.__minFront = [minFront];
return this;
}
addMinFront(minFront = 1) {
if (minFront == null || minFront < 0) {
return null;
}
if (this.__minFront == null) {
this.__minFront = [];
}
this.__minFront.append(minFront);
return this;
}
removeMinFront(minFront) {
for( let i = 0; i < this.__minFront.length; i++) {
if ( this.__minFront[i] === minFront) {
this.__minFront.splice(i, 1);
}
}
return this.__minFront;
}
get minFront() {
return this.__minFront;
}
set priority(priority = 0) {
if (priority == null || priority < 0) {
return null;
}
if (priority == null || priority > 1) {
return null;
}
this.__priority = [priority];
return this;
}
addPriority(priority = 0) {
if (priority == null || priority < 0) {
return null;
}
if (priority == null || priority > 1) {
return null;
}
if (this.__priority == null) {
this.__priority = [];
}
this.__priority.append(priority);
return this;
}
removePriority(priority) {
for( let i = 0; i < this.__priority.length; i++) {
if ( this.__priority[i] === priority) {
this.__priority.splice(i, 1);
}
}
return this.__priority;
}
get priority() {
return this.__priority;
}
set source(source = null) {
this.__source = [source];
return this;
}
addSource(source = null) {
if (this.__source == null) {
this.__source = [];
}
this.__source.append(source);
return this;
}
removeSource(source) {
for( let i = 0; i < this.__source.length; i++) {
if ( this.__source[i] === source) {
this.__source.splice(i, 1);
}
}
return this.__source;
}
get source() {
return this.__source;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__source === null) {
} else if (typeof this.__source.toXMLNode === 'function') {
str += this.__source.toXMLNode('source');
} else if (typeof this.__source === 'string') {
str += ' source="'+this.__source+'"';
} else if (Array.isArray( this.__source)) {
if (typeof this.__source[0].toXMLNode !== 'function') {
str += ' source="'+this.__source.join(' ')+'"';
} else {
for (let i in this.__source) {
if (typeof this.__source[i].toXMLNode === 'function') {
str += this.__source[i].toXMLNode('source');
}
}
}
} else {
str += ' source="'+this.__source+'"';
}
str += ''
return str;
}
}
export class Sphere extends X3DGeometryNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var radius = kwargs["radius"] || 1;
if (radius == null || radius <= 0) {
return null;
}
this.__radius = radius;
var solid = kwargs["solid"] || true;
this.__solid = solid;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class SphereSensor extends X3DDragSensorNode {
constructor(kwargs = {}) {
super(kwargs);
var autoOffset = kwargs["autoOffset"] || true;
this.__autoOffset = autoOffset;
var description = kwargs["description"] || null;
this.__description = description;
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var Over = kwargs["Over"] || null;
this.__Over = Over;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var offset = kwargs["offset"] || [0, 1, 0, 0];
this.__offset = offset;
var rotation_changed = kwargs["rotation_changed"] || null;
this.__rotation_changed = rotation_changed;
var trackPoint_changed = kwargs["trackPoint_changed"] || null;
this.__trackPoint_changed = trackPoint_changed;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set autoOffset(autoOffset = true) {
this.__autoOffset = [autoOffset];
return this;
}
addAutoOffset(autoOffset = true) {
if (this.__autoOffset == null) {
this.__autoOffset = [];
}
this.__autoOffset.append(autoOffset);
return this;
}
removeAutoOffset(autoOffset) {
for( let i = 0; i < this.__autoOffset.length; i++) {
if ( this.__autoOffset[i] === autoOffset) {
this.__autoOffset.splice(i, 1);
}
}
return this.__autoOffset;
}
get isAutoOffset() {
return this.__autoOffset;
}
set description(description = null) {
this.__description = [description];
return this;
}
addDescription(description = null) {
if (this.__description == null) {
this.__description = [];
}
this.__description.append(description);
return this;
}
removeDescription(description) {
for( let i = 0; i < this.__description.length; i++) {
if ( this.__description[i] === description) {
this.__description.splice(i, 1);
}
}
return this.__description;
}
get description() {
return this.__description;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
get isOver() {
return this.__Over;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set offset(offset = [0, 1, 0, 0]) {
this.__offset = [offset];
return this;
}
addOffset(offset = [0, 1, 0, 0]) {
if (this.__offset == null) {
this.__offset = [];
}
this.__offset.append(offset);
return this;
}
removeOffset(offset) {
for( let i = 0; i < this.__offset.length; i++) {
if ( this.__offset[i] === offset) {
this.__offset.splice(i, 1);
}
}
return this.__offset;
}
get offset() {
return this.__offset;
}
removerotation_changed(rotation_changed) {
for( let i = 0; i < this.__rotation_changed.length; i++) {
if ( this.__rotation_changed[i] === rotation_changed) {
this.__rotation_changed.splice(i, 1);
}
}
return this.__rotation_changed;
}
get rotation_changed() {
return this.__rotation_changed;
}
removetrackPoint_changed(trackPoint_changed) {
for( let i = 0; i < this.__trackPoint_changed.length; i++) {
if ( this.__trackPoint_changed[i] === trackPoint_changed) {
this.__trackPoint_changed.splice(i, 1);
}
}
return this.__trackPoint_changed;
}
get trackPoint_changed() {
return this.__trackPoint_changed;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class SplinePositionInterpolator extends X3DInterpolatorNode {
constructor(kwargs = {}) {
super(kwargs);
var closed = kwargs["closed"] || false;
this.__closed = closed;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var key = kwargs["key"] || null;
this.__key = key;
var keyValue = kwargs["keyValue"] || null;
this.__keyValue = keyValue;
var keyVelocity = kwargs["keyVelocity"] || null;
this.__keyVelocity = keyVelocity;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var normalizeVelocity = kwargs["normalizeVelocity"] || false;
this.__normalizeVelocity = normalizeVelocity;
var fraction = kwargs["fraction"] || null;
this.__fraction = fraction;
var value_changed = kwargs["value_changed"] || null;
this.__value_changed = value_changed;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set key(key = null) {
this.__key = [key];
return this;
}
addKey(key = null) {
if (this.__key == null) {
this.__key = [];
}
this.__key.append(key);
return this;
}
removeKey(key) {
for( let i = 0; i < this.__key.length; i++) {
if ( this.__key[i] === key) {
this.__key.splice(i, 1);
}
}
return this.__key;
}
get key() {
return this.__key;
}
set keyValue(keyValue = null) {
this.__keyValue = [keyValue];
return this;
}
addKeyValue(keyValue = null) {
if (this.__keyValue == null) {
this.__keyValue = [];
}
this.__keyValue.append(keyValue);
return this;
}
removeKeyValue(keyValue) {
for( let i = 0; i < this.__keyValue.length; i++) {
if ( this.__keyValue[i] === keyValue) {
this.__keyValue.splice(i, 1);
}
}
return this.__keyValue;
}
get keyValue() {
return this.__keyValue;
}
set keyVelocity(keyVelocity = null) {
this.__keyVelocity = [keyVelocity];
return this;
}
addKeyVelocity(keyVelocity = null) {
if (this.__keyVelocity == null) {
this.__keyVelocity = [];
}
this.__keyVelocity.append(keyVelocity);
return this;
}
removeKeyVelocity(keyVelocity) {
for( let i = 0; i < this.__keyVelocity.length; i++) {
if ( this.__keyVelocity[i] === keyVelocity) {
this.__keyVelocity.splice(i, 1);
}
}
return this.__keyVelocity;
}
get keyVelocity() {
return this.__keyVelocity;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set normalizeVelocity(normalizeVelocity = false) {
this.__normalizeVelocity = [normalizeVelocity];
return this;
}
addNormalizeVelocity(normalizeVelocity = false) {
if (this.__normalizeVelocity == null) {
this.__normalizeVelocity = [];
}
this.__normalizeVelocity.append(normalizeVelocity);
return this;
}
removeNormalizeVelocity(normalizeVelocity) {
for( let i = 0; i < this.__normalizeVelocity.length; i++) {
if ( this.__normalizeVelocity[i] === normalizeVelocity) {
this.__normalizeVelocity.splice(i, 1);
}
}
return this.__normalizeVelocity;
}
get isNormalizeVelocity() {
return this.__normalizeVelocity;
}
set set_fraction(fraction = null) {
this.__fraction = [fraction];
return this;
}
removevalue_changed(value_changed) {
for( let i = 0; i < this.__value_changed.length; i++) {
if ( this.__value_changed[i] === value_changed) {
this.__value_changed.splice(i, 1);
}
}
return this.__value_changed;
}
get value_changed() {
return this.__value_changed;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class SplinePositionInterpolator2D extends X3DInterpolatorNode {
constructor(kwargs = {}) {
super(kwargs);
var closed = kwargs["closed"] || false;
this.__closed = closed;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var key = kwargs["key"] || null;
this.__key = key;
var keyValue = kwargs["keyValue"] || null;
this.__keyValue = keyValue;
var keyVelocity = kwargs["keyVelocity"] || null;
this.__keyVelocity = keyVelocity;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var normalizeVelocity = kwargs["normalizeVelocity"] || false;
this.__normalizeVelocity = normalizeVelocity;
var fraction = kwargs["fraction"] || null;
this.__fraction = fraction;
var value_changed = kwargs["value_changed"] || null;
this.__value_changed = value_changed;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set key(key = null) {
this.__key = [key];
return this;
}
addKey(key = null) {
if (this.__key == null) {
this.__key = [];
}
this.__key.append(key);
return this;
}
removeKey(key) {
for( let i = 0; i < this.__key.length; i++) {
if ( this.__key[i] === key) {
this.__key.splice(i, 1);
}
}
return this.__key;
}
get key() {
return this.__key;
}
set keyValue(keyValue = null) {
this.__keyValue = [keyValue];
return this;
}
addKeyValue(keyValue = null) {
if (this.__keyValue == null) {
this.__keyValue = [];
}
this.__keyValue.append(keyValue);
return this;
}
removeKeyValue(keyValue) {
for( let i = 0; i < this.__keyValue.length; i++) {
if ( this.__keyValue[i] === keyValue) {
this.__keyValue.splice(i, 1);
}
}
return this.__keyValue;
}
get keyValue() {
return this.__keyValue;
}
set keyVelocity(keyVelocity = null) {
this.__keyVelocity = [keyVelocity];
return this;
}
addKeyVelocity(keyVelocity = null) {
if (this.__keyVelocity == null) {
this.__keyVelocity = [];
}
this.__keyVelocity.append(keyVelocity);
return this;
}
removeKeyVelocity(keyVelocity) {
for( let i = 0; i < this.__keyVelocity.length; i++) {
if ( this.__keyVelocity[i] === keyVelocity) {
this.__keyVelocity.splice(i, 1);
}
}
return this.__keyVelocity;
}
get keyVelocity() {
return this.__keyVelocity;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set normalizeVelocity(normalizeVelocity = false) {
this.__normalizeVelocity = [normalizeVelocity];
return this;
}
addNormalizeVelocity(normalizeVelocity = false) {
if (this.__normalizeVelocity == null) {
this.__normalizeVelocity = [];
}
this.__normalizeVelocity.append(normalizeVelocity);
return this;
}
removeNormalizeVelocity(normalizeVelocity) {
for( let i = 0; i < this.__normalizeVelocity.length; i++) {
if ( this.__normalizeVelocity[i] === normalizeVelocity) {
this.__normalizeVelocity.splice(i, 1);
}
}
return this.__normalizeVelocity;
}
get isNormalizeVelocity() {
return this.__normalizeVelocity;
}
set set_fraction(fraction = null) {
this.__fraction = [fraction];
return this;
}
removevalue_changed(value_changed) {
for( let i = 0; i < this.__value_changed.length; i++) {
if ( this.__value_changed[i] === value_changed) {
this.__value_changed.splice(i, 1);
}
}
return this.__value_changed;
}
get value_changed() {
return this.__value_changed;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class SplineScalarInterpolator extends X3DInterpolatorNode {
constructor(kwargs = {}) {
super(kwargs);
var closed = kwargs["closed"] || false;
this.__closed = closed;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var key = kwargs["key"] || null;
this.__key = key;
var keyValue = kwargs["keyValue"] || null;
this.__keyValue = keyValue;
var keyVelocity = kwargs["keyVelocity"] || null;
this.__keyVelocity = keyVelocity;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var normalizeVelocity = kwargs["normalizeVelocity"] || false;
this.__normalizeVelocity = normalizeVelocity;
var fraction = kwargs["fraction"] || null;
this.__fraction = fraction;
var value_changed = kwargs["value_changed"] || null;
this.__value_changed = value_changed;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set key(key = null) {
this.__key = [key];
return this;
}
addKey(key = null) {
if (this.__key == null) {
this.__key = [];
}
this.__key.append(key);
return this;
}
removeKey(key) {
for( let i = 0; i < this.__key.length; i++) {
if ( this.__key[i] === key) {
this.__key.splice(i, 1);
}
}
return this.__key;
}
get key() {
return this.__key;
}
set keyValue(keyValue = null) {
this.__keyValue = [keyValue];
return this;
}
addKeyValue(keyValue = null) {
if (this.__keyValue == null) {
this.__keyValue = [];
}
this.__keyValue.append(keyValue);
return this;
}
removeKeyValue(keyValue) {
for( let i = 0; i < this.__keyValue.length; i++) {
if ( this.__keyValue[i] === keyValue) {
this.__keyValue.splice(i, 1);
}
}
return this.__keyValue;
}
get keyValue() {
return this.__keyValue;
}
set keyVelocity(keyVelocity = null) {
this.__keyVelocity = [keyVelocity];
return this;
}
addKeyVelocity(keyVelocity = null) {
if (this.__keyVelocity == null) {
this.__keyVelocity = [];
}
this.__keyVelocity.append(keyVelocity);
return this;
}
removeKeyVelocity(keyVelocity) {
for( let i = 0; i < this.__keyVelocity.length; i++) {
if ( this.__keyVelocity[i] === keyVelocity) {
this.__keyVelocity.splice(i, 1);
}
}
return this.__keyVelocity;
}
get keyVelocity() {
return this.__keyVelocity;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set normalizeVelocity(normalizeVelocity = false) {
this.__normalizeVelocity = [normalizeVelocity];
return this;
}
addNormalizeVelocity(normalizeVelocity = false) {
if (this.__normalizeVelocity == null) {
this.__normalizeVelocity = [];
}
this.__normalizeVelocity.append(normalizeVelocity);
return this;
}
removeNormalizeVelocity(normalizeVelocity) {
for( let i = 0; i < this.__normalizeVelocity.length; i++) {
if ( this.__normalizeVelocity[i] === normalizeVelocity) {
this.__normalizeVelocity.splice(i, 1);
}
}
return this.__normalizeVelocity;
}
get isNormalizeVelocity() {
return this.__normalizeVelocity;
}
set set_fraction(fraction = null) {
this.__fraction = [fraction];
return this;
}
removevalue_changed(value_changed) {
for( let i = 0; i < this.__value_changed.length; i++) {
if ( this.__value_changed[i] === value_changed) {
this.__value_changed.splice(i, 1);
}
}
return this.__value_changed;
}
get value_changed() {
return this.__value_changed;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class SpotLight extends X3DLightNode {
constructor(kwargs = {}) {
super(kwargs);
var ambientIntensity = kwargs["ambientIntensity"] || 0;
if (ambientIntensity == null || ambientIntensity < 0) {
return null;
}
if (ambientIntensity == null || ambientIntensity > 1) {
return null;
}
this.__ambientIntensity = ambientIntensity;
var attenuation = kwargs["attenuation"] || [1, 0, 0];
if (attenuation == null || attenuation.length <= 0 || Math.min(attenuation) < 0) {
return null;
}
this.__attenuation = attenuation;
var beamWidth = kwargs["beamWidth"] || 0.7854;
if (beamWidth == null || beamWidth > 1.570796) {
return null;
}
if (beamWidth == null || beamWidth <= 0) {
return null;
}
this.__beamWidth = beamWidth;
var color = kwargs["color"] || [1, 1, 1];
if (color == null || color.length <= 0 || Math.min(color) < 0) {
return null;
}
if (color == null || color.length <= 0 || Math.max(color) > 1) {
return null;
}
this.__color = color;
var cutOffAngle = kwargs["cutOffAngle"] || 1.570796;
if (cutOffAngle == null || cutOffAngle > 1.570796) {
return null;
}
if (cutOffAngle == null || cutOffAngle <= 0) {
return null;
}
this.__cutOffAngle = cutOffAngle;
var direction = kwargs["direction"] || [0, 0, -1];
this.__direction = direction;
var global_ = kwargs["global_"] || true;
this.__global_ = global_;
var intensity = kwargs["intensity"] || 1;
if (intensity == null || intensity < 0) {
return null;
}
if (intensity == null || intensity > 1) {
return null;
}
this.__intensity = intensity;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var location = kwargs["location"] || [0, 0, 0];
this.__location = location;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var on = kwargs["on"] || true;
this.__on = on;
var radius = kwargs["radius"] || 100;
if (radius == null || radius < 0) {
return null;
}
this.__radius = radius;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set ambientIntensity(ambientIntensity = 0) {
if (ambientIntensity == null || ambientIntensity < 0) {
return null;
}
if (ambientIntensity == null || ambientIntensity > 1) {
return null;
}
this.__ambientIntensity = [ambientIntensity];
return this;
}
addAmbientIntensity(ambientIntensity = 0) {
if (ambientIntensity == null || ambientIntensity < 0) {
return null;
}
if (ambientIntensity == null || ambientIntensity > 1) {
return null;
}
if (this.__ambientIntensity == null) {
this.__ambientIntensity = [];
}
this.__ambientIntensity.append(ambientIntensity);
return this;
}
removeAmbientIntensity(ambientIntensity) {
for( let i = 0; i < this.__ambientIntensity.length; i++) {
if ( this.__ambientIntensity[i] === ambientIntensity) {
this.__ambientIntensity.splice(i, 1);
}
}
return this.__ambientIntensity;
}
get ambientIntensity() {
return this.__ambientIntensity;
}
set attenuation(attenuation = [1, 0, 0]) {
if (attenuation == null || attenuation.length <= 0 || Math.min(attenuation) < 0) {
return null;
}
this.__attenuation = [attenuation];
return this;
}
addAttenuation(attenuation = [1, 0, 0]) {
if (attenuation == null || attenuation.length <= 0 || Math.min(attenuation) < 0) {
return null;
}
if (this.__attenuation == null) {
this.__attenuation = [];
}
this.__attenuation.append(attenuation);
return this;
}
removeAttenuation(attenuation) {
for( let i = 0; i < this.__attenuation.length; i++) {
if ( this.__attenuation[i] === attenuation) {
this.__attenuation.splice(i, 1);
}
}
return this.__attenuation;
}
get attenuation() {
return this.__attenuation;
}
set beamWidth(beamWidth = 0.7854) {
if (beamWidth == null || beamWidth > 1.570796) {
return null;
}
if (beamWidth == null || beamWidth <= 0) {
return null;
}
this.__beamWidth = [beamWidth];
return this;
}
addBeamWidth(beamWidth = 0.7854) {
if (beamWidth == null || beamWidth > 1.570796) {
return null;
}
if (beamWidth == null || beamWidth <= 0) {
return null;
}
if (this.__beamWidth == null) {
this.__beamWidth = [];
}
this.__beamWidth.append(beamWidth);
return this;
}
removeBeamWidth(beamWidth) {
for( let i = 0; i < this.__beamWidth.length; i++) {
if ( this.__beamWidth[i] === beamWidth) {
this.__beamWidth.splice(i, 1);
}
}
return this.__beamWidth;
}
get beamWidth() {
return this.__beamWidth;
}
set color(color = [1, 1, 1]) {
if (color == null || color.length <= 0 || Math.min(color) < 0) {
return null;
}
if (color == null || color.length <= 0 || Math.max(color) > 1) {
return null;
}
this.__color = [color];
return this;
}
addColor(color = [1, 1, 1]) {
if (color == null || color.length <= 0 || Math.min(color) < 0) {
return null;
}
if (color == null || color.length <= 0 || Math.max(color) > 1) {
return null;
}
if (this.__color == null) {
this.__color = [];
}
this.__color.append(color);
return this;
}
removeColor(color) {
for( let i = 0; i < this.__color.length; i++) {
if ( this.__color[i] === color) {
this.__color.splice(i, 1);
}
}
return this.__color;
}
get color() {
return this.__color;
}
set cutOffAngle(cutOffAngle = 1.570796) {
if (cutOffAngle == null || cutOffAngle > 1.570796) {
return null;
}
if (cutOffAngle == null || cutOffAngle <= 0) {
return null;
}
this.__cutOffAngle = [cutOffAngle];
return this;
}
addCutOffAngle(cutOffAngle = 1.570796) {
if (cutOffAngle == null || cutOffAngle > 1.570796) {
return null;
}
if (cutOffAngle == null || cutOffAngle <= 0) {
return null;
}
if (this.__cutOffAngle == null) {
this.__cutOffAngle = [];
}
this.__cutOffAngle.append(cutOffAngle);
return this;
}
removeCutOffAngle(cutOffAngle) {
for( let i = 0; i < this.__cutOffAngle.length; i++) {
if ( this.__cutOffAngle[i] === cutOffAngle) {
this.__cutOffAngle.splice(i, 1);
}
}
return this.__cutOffAngle;
}
get cutOffAngle() {
return this.__cutOffAngle;
}
set direction(direction = [0, 0, -1]) {
this.__direction = [direction];
return this;
}
addDirection(direction = [0, 0, -1]) {
if (this.__direction == null) {
this.__direction = [];
}
this.__direction.append(direction);
return this;
}
removeDirection(direction) {
for( let i = 0; i < this.__direction.length; i++) {
if ( this.__direction[i] === direction) {
this.__direction.splice(i, 1);
}
}
return this.__direction;
}
get direction() {
return this.__direction;
}
set global(global_ = true) {
this.__global_ = [global_];
return this;
}
addGlobal(global_ = true) {
if (this.__global_ == null) {
this.__global_ = [];
}
this.__global_.append(global_);
return this;
}
removeGlobal(global_) {
for( let i = 0; i < this.__global_.length; i++) {
if ( this.__global_[i] === global_) {
this.__global_.splice(i, 1);
}
}
return this.__global_;
}
get isGlobal() {
return this.__global_;
}
set intensity(intensity = 1) {
if (intensity == null || intensity < 0) {
return null;
}
if (intensity == null || intensity > 1) {
return null;
}
this.__intensity = [intensity];
return this;
}
addIntensity(intensity = 1) {
if (intensity == null || intensity < 0) {
return null;
}
if (intensity == null || intensity > 1) {
return null;
}
if (this.__intensity == null) {
this.__intensity = [];
}
this.__intensity.append(intensity);
return this;
}
removeIntensity(intensity) {
for( let i = 0; i < this.__intensity.length; i++) {
if ( this.__intensity[i] === intensity) {
this.__intensity.splice(i, 1);
}
}
return this.__intensity;
}
get intensity() {
return this.__intensity;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set location(location = [0, 0, 0]) {
this.__location = [location];
return this;
}
addLocation(location = [0, 0, 0]) {
if (this.__location == null) {
this.__location = [];
}
this.__location.append(location);
return this;
}
removeLocation(location) {
for( let i = 0; i < this.__location.length; i++) {
if ( this.__location[i] === location) {
this.__location.splice(i, 1);
}
}
return this.__location;
}
get location() {
return this.__location;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set on(on = true) {
this.__on = [on];
return this;
}
addOn(on = true) {
if (this.__on == null) {
this.__on = [];
}
this.__on.append(on);
return this;
}
removeOn(on) {
for( let i = 0; i < this.__on.length; i++) {
if ( this.__on[i] === on) {
this.__on.splice(i, 1);
}
}
return this.__on;
}
get isOn() {
return this.__on;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class SquadOrientationInterpolator extends X3DInterpolatorNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var key = kwargs["key"] || null;
this.__key = key;
var keyValue = kwargs["keyValue"] || null;
this.__keyValue = keyValue;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var normalizeVelocity = kwargs["normalizeVelocity"] || false;
this.__normalizeVelocity = normalizeVelocity;
var fraction = kwargs["fraction"] || null;
this.__fraction = fraction;
var value_changed = kwargs["value_changed"] || null;
this.__value_changed = value_changed;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set key(key = null) {
this.__key = [key];
return this;
}
addKey(key = null) {
if (this.__key == null) {
this.__key = [];
}
this.__key.append(key);
return this;
}
removeKey(key) {
for( let i = 0; i < this.__key.length; i++) {
if ( this.__key[i] === key) {
this.__key.splice(i, 1);
}
}
return this.__key;
}
get key() {
return this.__key;
}
set keyValue(keyValue = null) {
this.__keyValue = [keyValue];
return this;
}
addKeyValue(keyValue = null) {
if (this.__keyValue == null) {
this.__keyValue = [];
}
this.__keyValue.append(keyValue);
return this;
}
removeKeyValue(keyValue) {
for( let i = 0; i < this.__keyValue.length; i++) {
if ( this.__keyValue[i] === keyValue) {
this.__keyValue.splice(i, 1);
}
}
return this.__keyValue;
}
get keyValue() {
return this.__keyValue;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set normalizeVelocity(normalizeVelocity = false) {
this.__normalizeVelocity = [normalizeVelocity];
return this;
}
addNormalizeVelocity(normalizeVelocity = false) {
if (this.__normalizeVelocity == null) {
this.__normalizeVelocity = [];
}
this.__normalizeVelocity.append(normalizeVelocity);
return this;
}
removeNormalizeVelocity(normalizeVelocity) {
for( let i = 0; i < this.__normalizeVelocity.length; i++) {
if ( this.__normalizeVelocity[i] === normalizeVelocity) {
this.__normalizeVelocity.splice(i, 1);
}
}
return this.__normalizeVelocity;
}
get isNormalizeVelocity() {
return this.__normalizeVelocity;
}
set set_fraction(fraction = null) {
this.__fraction = [fraction];
return this;
}
removevalue_changed(value_changed) {
for( let i = 0; i < this.__value_changed.length; i++) {
if ( this.__value_changed[i] === value_changed) {
this.__value_changed.splice(i, 1);
}
}
return this.__value_changed;
}
get value_changed() {
return this.__value_changed;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class StaticGroup extends X3DChildNode {
constructor(kwargs = {}) {
super(kwargs);
var bboxCenter = kwargs["bboxCenter"] || [0, 0, 0];
this.__bboxCenter = bboxCenter;
var bboxSize = kwargs["bboxSize"] || [-1, -1, -1];
this.__bboxSize = bboxSize;
var children = kwargs["children"] || null;
this.__children = children;
var displayBBox = kwargs["displayBBox"] || false;
this.__displayBBox = displayBBox;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var visible = kwargs["visible"] || true;
this.__visible = visible;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set displayBBox(displayBBox = false) {
this.__displayBBox = [displayBBox];
return this;
}
addDisplayBBox(displayBBox = false) {
if (this.__displayBBox == null) {
this.__displayBBox = [];
}
this.__displayBBox.append(displayBBox);
return this;
}
removeDisplayBBox(displayBBox) {
for( let i = 0; i < this.__displayBBox.length; i++) {
if ( this.__displayBBox[i] === displayBBox) {
this.__displayBBox.splice(i, 1);
}
}
return this.__displayBBox;
}
get isDisplayBBox() {
return this.__displayBBox;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set visible(visible = true) {
this.__visible = [visible];
return this;
}
addVisible(visible = true) {
if (this.__visible == null) {
this.__visible = [];
}
this.__visible.append(visible);
return this;
}
removeVisible(visible) {
for( let i = 0; i < this.__visible.length; i++) {
if ( this.__visible[i] === visible) {
this.__visible.splice(i, 1);
}
}
return this.__visible;
}
get isVisible() {
return this.__visible;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__children === null) {
} else if (typeof this.__children.toXMLNode === 'function') {
str += this.__children.toXMLNode('children');
} else if (typeof this.__children === 'string') {
str += ' children="'+this.__children+'"';
} else if (Array.isArray( this.__children)) {
if (typeof this.__children[0].toXMLNode !== 'function') {
str += ' children="'+this.__children.join(' ')+'"';
} else {
for (let i in this.__children) {
if (typeof this.__children[i].toXMLNode === 'function') {
str += this.__children[i].toXMLNode('children');
}
}
}
} else {
str += ' children="'+this.__children+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class StringSensor extends X3DKeyDeviceSensorNode {
constructor(kwargs = {}) {
super(kwargs);
var deletionAllowed = kwargs["deletionAllowed"] || true;
this.__deletionAllowed = deletionAllowed;
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var enteredText = kwargs["enteredText"] || null;
this.__enteredText = enteredText;
var finalText = kwargs["finalText"] || null;
this.__finalText = finalText;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set deletionAllowed(deletionAllowed = true) {
this.__deletionAllowed = [deletionAllowed];
return this;
}
addDeletionAllowed(deletionAllowed = true) {
if (this.__deletionAllowed == null) {
this.__deletionAllowed = [];
}
this.__deletionAllowed.append(deletionAllowed);
return this;
}
removeDeletionAllowed(deletionAllowed) {
for( let i = 0; i < this.__deletionAllowed.length; i++) {
if ( this.__deletionAllowed[i] === deletionAllowed) {
this.__deletionAllowed.splice(i, 1);
}
}
return this.__deletionAllowed;
}
get isDeletionAllowed() {
return this.__deletionAllowed;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
removeEnteredText(enteredText) {
for( let i = 0; i < this.__enteredText.length; i++) {
if ( this.__enteredText[i] === enteredText) {
this.__enteredText.splice(i, 1);
}
}
return this.__enteredText;
}
get enteredText() {
return this.__enteredText;
}
removeFinalText(finalText) {
for( let i = 0; i < this.__finalText.length; i++) {
if ( this.__finalText[i] === finalText) {
this.__finalText.splice(i, 1);
}
}
return this.__finalText;
}
get finalText() {
return this.__finalText;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class SurfaceEmitter extends X3DParticleEmitterNode {
constructor(kwargs = {}) {
super(kwargs);
var coordIndex = kwargs["coordIndex"] || [-1];
if (coordIndex == null || coordIndex.length <= 0 || Math.min(coordIndex) < -1) {
return null;
}
this.__coordIndex = coordIndex;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var mass = kwargs["mass"] || 0;
if (mass == null || mass < 0) {
return null;
}
this.__mass = mass;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var coordIndex = kwargs["coordIndex"] || null;
if (coordIndex == null || coordIndex.length <= 0 || Math.min(coordIndex) < -1) {
return null;
}
this.__coordIndex = coordIndex;
var speed = kwargs["speed"] || 0;
if (speed == null || speed < 0) {
return null;
}
this.__speed = speed;
var surface = kwargs["surface"] || null;
this.__surface = surface;
var surfaceArea = kwargs["surfaceArea"] || 0;
if (surfaceArea == null || surfaceArea < 0) {
return null;
}
this.__surfaceArea = surfaceArea;
var variation = kwargs["variation"] || 0.25;
if (variation == null || variation < 0) {
return null;
}
this.__variation = variation;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set mass(mass = 0) {
if (mass == null || mass < 0) {
return null;
}
this.__mass = [mass];
return this;
}
addMass(mass = 0) {
if (mass == null || mass < 0) {
return null;
}
if (this.__mass == null) {
this.__mass = [];
}
this.__mass.append(mass);
return this;
}
removeMass(mass) {
for( let i = 0; i < this.__mass.length; i++) {
if ( this.__mass[i] === mass) {
this.__mass.splice(i, 1);
}
}
return this.__mass;
}
get mass() {
return this.__mass;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set set_coordIndex(coordIndex = null) {
if (coordIndex == null || coordIndex.length <= 0 || Math.min(coordIndex) < -1) {
return null;
}
this.__coordIndex = [coordIndex];
return this;
}
set speed(speed = 0) {
if (speed == null || speed < 0) {
return null;
}
this.__speed = [speed];
return this;
}
addSpeed(speed = 0) {
if (speed == null || speed < 0) {
return null;
}
if (this.__speed == null) {
this.__speed = [];
}
this.__speed.append(speed);
return this;
}
removeSpeed(speed) {
for( let i = 0; i < this.__speed.length; i++) {
if ( this.__speed[i] === speed) {
this.__speed.splice(i, 1);
}
}
return this.__speed;
}
get speed() {
return this.__speed;
}
set variation(variation = 0.25) {
if (variation == null || variation < 0) {
return null;
}
this.__variation = [variation];
return this;
}
addVariation(variation = 0.25) {
if (variation == null || variation < 0) {
return null;
}
if (this.__variation == null) {
this.__variation = [];
}
this.__variation.append(variation);
return this;
}
removeVariation(variation) {
for( let i = 0; i < this.__variation.length; i++) {
if ( this.__variation[i] === variation) {
this.__variation.splice(i, 1);
}
}
return this.__variation;
}
get variation() {
return this.__variation;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__surface === null) {
} else if (typeof this.__surface.toXMLNode === 'function') {
str += this.__surface.toXMLNode('surface');
} else if (typeof this.__surface === 'string') {
str += ' surface="'+this.__surface+'"';
} else if (Array.isArray( this.__surface)) {
if (typeof this.__surface[0].toXMLNode !== 'function') {
str += ' surface="'+this.__surface.join(' ')+'"';
} else {
for (let i in this.__surface) {
if (typeof this.__surface[i].toXMLNode === 'function') {
str += this.__surface[i].toXMLNode('surface');
}
}
}
} else {
str += ' surface="'+this.__surface+'"';
}
str += ''
return str;
}
}
export class Switch extends X3DGroupingNode {
constructor(kwargs = {}) {
super(kwargs);
var children_ = kwargs["children_"] || null;
this.__children_ = children_;
var bboxCenter = kwargs["bboxCenter"] || [0, 0, 0];
this.__bboxCenter = bboxCenter;
var bboxSize = kwargs["bboxSize"] || [-1, -1, -1];
this.__bboxSize = bboxSize;
var children = kwargs["children"] || null;
this.__children = children;
var displayBBox = kwargs["displayBBox"] || false;
this.__displayBBox = displayBBox;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var children_ = kwargs["children_"] || null;
this.__children_ = children_;
var visible = kwargs["visible"] || true;
this.__visible = visible;
var whichChoice = kwargs["whichChoice"] || -1;
if (whichChoice == null || whichChoice < -1) {
return null;
}
this.__whichChoice = whichChoice;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
addChildren(children_ = null) {
if (this.__children_ == null) {
this.__children_ = [];
}
this.__children_.append(children_);
return this;
}
set children(children = null) {
this.__children = [children];
return this;
}
addChildren(children = null) {
if (this.__children == null) {
this.__children = [];
}
this.__children.append(children);
return this;
}
removeChildren(children) {
for( let i = 0; i < this.__children.length; i++) {
if ( this.__children[i] === children) {
this.__children.splice(i, 1);
}
}
return this.__children;
}
get children() {
return this.__children;
}
set displayBBox(displayBBox = false) {
this.__displayBBox = [displayBBox];
return this;
}
addDisplayBBox(displayBBox = false) {
if (this.__displayBBox == null) {
this.__displayBBox = [];
}
this.__displayBBox.append(displayBBox);
return this;
}
removeDisplayBBox(displayBBox) {
for( let i = 0; i < this.__displayBBox.length; i++) {
if ( this.__displayBBox[i] === displayBBox) {
this.__displayBBox.splice(i, 1);
}
}
return this.__displayBBox;
}
get isDisplayBBox() {
return this.__displayBBox;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set visible(visible = true) {
this.__visible = [visible];
return this;
}
addVisible(visible = true) {
if (this.__visible == null) {
this.__visible = [];
}
this.__visible.append(visible);
return this;
}
removeVisible(visible) {
for( let i = 0; i < this.__visible.length; i++) {
if ( this.__visible[i] === visible) {
this.__visible.splice(i, 1);
}
}
return this.__visible;
}
get isVisible() {
return this.__visible;
}
set whichChoice(whichChoice = -1) {
if (whichChoice == null || whichChoice < -1) {
return null;
}
this.__whichChoice = [whichChoice];
return this;
}
addWhichChoice(whichChoice = -1) {
if (whichChoice == null || whichChoice < -1) {
return null;
}
if (this.__whichChoice == null) {
this.__whichChoice = [];
}
this.__whichChoice.append(whichChoice);
return this;
}
removeWhichChoice(whichChoice) {
for( let i = 0; i < this.__whichChoice.length; i++) {
if ( this.__whichChoice[i] === whichChoice) {
this.__whichChoice.splice(i, 1);
}
}
return this.__whichChoice;
}
get whichChoice() {
return this.__whichChoice;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__children_ === null) {
} else if (typeof this.__children_.toXMLNode === 'function') {
str += this.__children_.toXMLNode('children_');
} else if (typeof this.__children_ === 'string') {
str += ' children_="'+this.__children_+'"';
} else if (Array.isArray( this.__children_)) {
if (typeof this.__children_[0].toXMLNode !== 'function') {
str += ' children_="'+this.__children_.join(' ')+'"';
} else {
for (let i in this.__children_) {
if (typeof this.__children_[i].toXMLNode === 'function') {
str += this.__children_[i].toXMLNode('children_');
}
}
}
} else {
str += ' children_="'+this.__children_+'"';
}
if (this.__children === null) {
} else if (typeof this.__children.toXMLNode === 'function') {
str += this.__children.toXMLNode('children');
} else if (typeof this.__children === 'string') {
str += ' children="'+this.__children+'"';
} else if (Array.isArray( this.__children)) {
if (typeof this.__children[0].toXMLNode !== 'function') {
str += ' children="'+this.__children.join(' ')+'"';
} else {
for (let i in this.__children) {
if (typeof this.__children[i].toXMLNode === 'function') {
str += this.__children[i].toXMLNode('children');
}
}
}
} else {
str += ' children="'+this.__children+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__children_ === null) {
} else if (typeof this.__children_.toXMLNode === 'function') {
str += this.__children_.toXMLNode('children_');
} else if (typeof this.__children_ === 'string') {
str += ' children_="'+this.__children_+'"';
} else if (Array.isArray( this.__children_)) {
if (typeof this.__children_[0].toXMLNode !== 'function') {
str += ' children_="'+this.__children_.join(' ')+'"';
} else {
for (let i in this.__children_) {
if (typeof this.__children_[i].toXMLNode === 'function') {
str += this.__children_[i].toXMLNode('children_');
}
}
}
} else {
str += ' children_="'+this.__children_+'"';
}
str += ''
return str;
}
}
export class TexCoordChaser2D extends X3DChaserNode {
constructor(kwargs = {}) {
super(kwargs);
var duration = kwargs["duration"] || 1;
if (duration == null || duration < 0) {
return null;
}
this.__duration = duration;
var initialDestination = kwargs["initialDestination"] || null;
this.__initialDestination = initialDestination;
var initialValue = kwargs["initialValue"] || null;
this.__initialValue = initialValue;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var destination = kwargs["destination"] || null;
this.__destination = destination;
var value = kwargs["value"] || null;
this.__value = value;
var value_changed = kwargs["value_changed"] || null;
this.__value_changed = value_changed;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set set_destination(destination = null) {
this.__destination = [destination];
return this;
}
set set_value(value = null) {
this.__value = [value];
return this;
}
removevalue_changed(value_changed) {
for( let i = 0; i < this.__value_changed.length; i++) {
if ( this.__value_changed[i] === value_changed) {
this.__value_changed.splice(i, 1);
}
}
return this.__value_changed;
}
get value_changed() {
return this.__value_changed;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class TexCoordDamper2D extends X3DDamperNode {
constructor(kwargs = {}) {
super(kwargs);
var initialDestination = kwargs["initialDestination"] || null;
this.__initialDestination = initialDestination;
var initialValue = kwargs["initialValue"] || null;
this.__initialValue = initialValue;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var order = kwargs["order"] || 3;
if (order == null || order < 0) {
return null;
}
if (order == null || order > 5) {
return null;
}
this.__order = order;
var destination = kwargs["destination"] || null;
this.__destination = destination;
var value = kwargs["value"] || null;
this.__value = value;
var tau = kwargs["tau"] || 0.3;
if (tau == null || tau < 0) {
return null;
}
this.__tau = tau;
var tolerance = kwargs["tolerance"] || -1;
this.__tolerance = tolerance;
var value_changed = kwargs["value_changed"] || null;
this.__value_changed = value_changed;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set set_destination(destination = null) {
this.__destination = [destination];
return this;
}
set set_value(value = null) {
this.__value = [value];
return this;
}
set tau(tau = 0.3) {
if (tau == null || tau < 0) {
return null;
}
this.__tau = [tau];
return this;
}
addTau(tau = 0.3) {
if (tau == null || tau < 0) {
return null;
}
if (this.__tau == null) {
this.__tau = [];
}
this.__tau.append(tau);
return this;
}
removeTau(tau) {
for( let i = 0; i < this.__tau.length; i++) {
if ( this.__tau[i] === tau) {
this.__tau.splice(i, 1);
}
}
return this.__tau;
}
get tau() {
return this.__tau;
}
set tolerance(tolerance = -1) {
this.__tolerance = [tolerance];
return this;
}
addTolerance(tolerance = -1) {
if (this.__tolerance == null) {
this.__tolerance = [];
}
this.__tolerance.append(tolerance);
return this;
}
removeTolerance(tolerance) {
for( let i = 0; i < this.__tolerance.length; i++) {
if ( this.__tolerance[i] === tolerance) {
this.__tolerance.splice(i, 1);
}
}
return this.__tolerance;
}
get tolerance() {
return this.__tolerance;
}
removevalue_changed(value_changed) {
for( let i = 0; i < this.__value_changed.length; i++) {
if ( this.__value_changed[i] === value_changed) {
this.__value_changed.splice(i, 1);
}
}
return this.__value_changed;
}
get value_changed() {
return this.__value_changed;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class Text extends X3DGeometryNode {
constructor(kwargs = {}) {
super(kwargs);
var fontStyle = kwargs["fontStyle"] || null;
this.__fontStyle = fontStyle;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var length = kwargs["length"] || null;
if (length == null || length.length <= 0 || Math.min(length) < 0) {
return null;
}
this.__length = length;
var lineBounds = kwargs["lineBounds"] || null;
this.__lineBounds = lineBounds;
var maxExtent = kwargs["maxExtent"] || 0.0;
if (maxExtent == null || maxExtent < 0) {
return null;
}
this.__maxExtent = maxExtent;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var origin = kwargs["origin"] || null;
this.__origin = origin;
var solid = kwargs["solid"] || false;
this.__solid = solid;
var string = kwargs["string"] || null;
this.__string = string;
var textBounds = kwargs["textBounds"] || null;
this.__textBounds = textBounds;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set fontStyle(fontStyle = null) {
this.__fontStyle = [fontStyle];
return this;
}
addFontStyle(fontStyle = null) {
if (this.__fontStyle == null) {
this.__fontStyle = [];
}
this.__fontStyle.append(fontStyle);
return this;
}
removeFontStyle(fontStyle) {
for( let i = 0; i < this.__fontStyle.length; i++) {
if ( this.__fontStyle[i] === fontStyle) {
this.__fontStyle.splice(i, 1);
}
}
return this.__fontStyle;
}
get fontStyle() {
return this.__fontStyle;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set length(length = null) {
if (length == null || length.length <= 0 || Math.min(length) < 0) {
return null;
}
this.__length = [length];
return this;
}
addLength(length = null) {
if (length == null || length.length <= 0 || Math.min(length) < 0) {
return null;
}
if (this.__length == null) {
this.__length = [];
}
this.__length.append(length);
return this;
}
removeLength(length) {
for( let i = 0; i < this.__length.length; i++) {
if ( this.__length[i] === length) {
this.__length.splice(i, 1);
}
}
return this.__length;
}
get length() {
return this.__length;
}
removeLineBounds(lineBounds) {
for( let i = 0; i < this.__lineBounds.length; i++) {
if ( this.__lineBounds[i] === lineBounds) {
this.__lineBounds.splice(i, 1);
}
}
return this.__lineBounds;
}
get lineBounds() {
return this.__lineBounds;
}
set maxExtent(maxExtent = 0.0) {
if (maxExtent == null || maxExtent < 0) {
return null;
}
this.__maxExtent = [maxExtent];
return this;
}
addMaxExtent(maxExtent = 0.0) {
if (maxExtent == null || maxExtent < 0) {
return null;
}
if (this.__maxExtent == null) {
this.__maxExtent = [];
}
this.__maxExtent.append(maxExtent);
return this;
}
removeMaxExtent(maxExtent) {
for( let i = 0; i < this.__maxExtent.length; i++) {
if ( this.__maxExtent[i] === maxExtent) {
this.__maxExtent.splice(i, 1);
}
}
return this.__maxExtent;
}
get maxExtent() {
return this.__maxExtent;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
removeOrigin(origin) {
for( let i = 0; i < this.__origin.length; i++) {
if ( this.__origin[i] === origin) {
this.__origin.splice(i, 1);
}
}
return this.__origin;
}
get origin() {
return this.__origin;
}
set string(string = null) {
this.__string = [string];
return this;
}
addString(string = null) {
if (this.__string == null) {
this.__string = [];
}
this.__string.append(string);
return this;
}
removeString(string) {
for( let i = 0; i < this.__string.length; i++) {
if ( this.__string[i] === string) {
this.__string.splice(i, 1);
}
}
return this.__string;
}
get string() {
return this.__string;
}
removeTextBounds(textBounds) {
for( let i = 0; i < this.__textBounds.length; i++) {
if ( this.__textBounds[i] === textBounds) {
this.__textBounds.splice(i, 1);
}
}
return this.__textBounds;
}
get textBounds() {
return this.__textBounds;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__fontStyle === null) {
} else if (typeof this.__fontStyle.toXMLNode === 'function') {
str += this.__fontStyle.toXMLNode('fontStyle');
} else if (typeof this.__fontStyle === 'string') {
str += ' fontStyle="'+this.__fontStyle+'"';
} else if (Array.isArray( this.__fontStyle)) {
if (typeof this.__fontStyle[0].toXMLNode !== 'function') {
str += ' fontStyle="'+this.__fontStyle.join(' ')+'"';
} else {
for (let i in this.__fontStyle) {
if (typeof this.__fontStyle[i].toXMLNode === 'function') {
str += this.__fontStyle[i].toXMLNode('fontStyle');
}
}
}
} else {
str += ' fontStyle="'+this.__fontStyle+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class TextureBackground extends X3DBackgroundNode {
constructor(kwargs = {}) {
super(kwargs);
var backTexture = kwargs["backTexture"] || null;
this.__backTexture = backTexture;
var bindTime = kwargs["bindTime"] || null;
this.__bindTime = bindTime;
var bottomTexture = kwargs["bottomTexture"] || null;
this.__bottomTexture = bottomTexture;
var frontTexture = kwargs["frontTexture"] || null;
this.__frontTexture = frontTexture;
var groundAngle = kwargs["groundAngle"] || null;
if (groundAngle == null || groundAngle.length <= 0 || Math.min(groundAngle) < 0) {
return null;
}
if (groundAngle == null || groundAngle.length <= 0 || Math.max(groundAngle) > 1.5708) {
return null;
}
this.__groundAngle = groundAngle;
var groundColor = kwargs["groundColor"] || null;
if (groundColor == null || groundColor.length <= 0 || Math.min(groundColor) < 0) {
return null;
}
if (groundColor == null || groundColor.length <= 0 || Math.max(groundColor) > 1) {
return null;
}
this.__groundColor = groundColor;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Bound = kwargs["Bound"] || null;
this.__Bound = Bound;
var leftTexture = kwargs["leftTexture"] || null;
this.__leftTexture = leftTexture;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var rightTexture = kwargs["rightTexture"] || null;
this.__rightTexture = rightTexture;
var bind = kwargs["bind"] || null;
this.__bind = bind;
var skyAngle = kwargs["skyAngle"] || null;
if (skyAngle == null || skyAngle.length <= 0 || Math.min(skyAngle) < 0) {
return null;
}
if (skyAngle == null || skyAngle.length <= 0 || Math.max(skyAngle) > 3.1416) {
return null;
}
this.__skyAngle = skyAngle;
var skyColor = kwargs["skyColor"] || [0, 0, 0];
if (skyColor == null || skyColor.length <= 0 || Math.min(skyColor) < 0) {
return null;
}
if (skyColor == null || skyColor.length <= 0 || Math.max(skyColor) > 1) {
return null;
}
this.__skyColor = skyColor;
var topTexture = kwargs["topTexture"] || null;
this.__topTexture = topTexture;
var transparency = kwargs["transparency"] || 0;
if (transparency == null || transparency < 0) {
return null;
}
if (transparency == null || transparency > 1) {
return null;
}
this.__transparency = transparency;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set backTexture(backTexture = null) {
this.__backTexture = [backTexture];
return this;
}
addBackTexture(backTexture = null) {
if (this.__backTexture == null) {
this.__backTexture = [];
}
this.__backTexture.append(backTexture);
return this;
}
removeBackTexture(backTexture) {
for( let i = 0; i < this.__backTexture.length; i++) {
if ( this.__backTexture[i] === backTexture) {
this.__backTexture.splice(i, 1);
}
}
return this.__backTexture;
}
get backTexture() {
return this.__backTexture;
}
removeBindTime(bindTime) {
for( let i = 0; i < this.__bindTime.length; i++) {
if ( this.__bindTime[i] === bindTime) {
this.__bindTime.splice(i, 1);
}
}
return this.__bindTime;
}
get bindTime() {
return this.__bindTime;
}
set bottomTexture(bottomTexture = null) {
this.__bottomTexture = [bottomTexture];
return this;
}
addBottomTexture(bottomTexture = null) {
if (this.__bottomTexture == null) {
this.__bottomTexture = [];
}
this.__bottomTexture.append(bottomTexture);
return this;
}
removeBottomTexture(bottomTexture) {
for( let i = 0; i < this.__bottomTexture.length; i++) {
if ( this.__bottomTexture[i] === bottomTexture) {
this.__bottomTexture.splice(i, 1);
}
}
return this.__bottomTexture;
}
get bottomTexture() {
return this.__bottomTexture;
}
set frontTexture(frontTexture = null) {
this.__frontTexture = [frontTexture];
return this;
}
addFrontTexture(frontTexture = null) {
if (this.__frontTexture == null) {
this.__frontTexture = [];
}
this.__frontTexture.append(frontTexture);
return this;
}
removeFrontTexture(frontTexture) {
for( let i = 0; i < this.__frontTexture.length; i++) {
if ( this.__frontTexture[i] === frontTexture) {
this.__frontTexture.splice(i, 1);
}
}
return this.__frontTexture;
}
get frontTexture() {
return this.__frontTexture;
}
set groundAngle(groundAngle = null) {
if (groundAngle == null || groundAngle.length <= 0 || Math.min(groundAngle) < 0) {
return null;
}
if (groundAngle == null || groundAngle.length <= 0 || Math.max(groundAngle) > 1.5708) {
return null;
}
this.__groundAngle = [groundAngle];
return this;
}
addGroundAngle(groundAngle = null) {
if (groundAngle == null || groundAngle.length <= 0 || Math.min(groundAngle) < 0) {
return null;
}
if (groundAngle == null || groundAngle.length <= 0 || Math.max(groundAngle) > 1.5708) {
return null;
}
if (this.__groundAngle == null) {
this.__groundAngle = [];
}
this.__groundAngle.append(groundAngle);
return this;
}
removeGroundAngle(groundAngle) {
for( let i = 0; i < this.__groundAngle.length; i++) {
if ( this.__groundAngle[i] === groundAngle) {
this.__groundAngle.splice(i, 1);
}
}
return this.__groundAngle;
}
get groundAngle() {
return this.__groundAngle;
}
set groundColor(groundColor = null) {
if (groundColor == null || groundColor.length <= 0 || Math.min(groundColor) < 0) {
return null;
}
if (groundColor == null || groundColor.length <= 0 || Math.max(groundColor) > 1) {
return null;
}
this.__groundColor = [groundColor];
return this;
}
addGroundColor(groundColor = null) {
if (groundColor == null || groundColor.length <= 0 || Math.min(groundColor) < 0) {
return null;
}
if (groundColor == null || groundColor.length <= 0 || Math.max(groundColor) > 1) {
return null;
}
if (this.__groundColor == null) {
this.__groundColor = [];
}
this.__groundColor.append(groundColor);
return this;
}
removeGroundColor(groundColor) {
for( let i = 0; i < this.__groundColor.length; i++) {
if ( this.__groundColor[i] === groundColor) {
this.__groundColor.splice(i, 1);
}
}
return this.__groundColor;
}
get groundColor() {
return this.__groundColor;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isBound() {
return this.__Bound;
}
set leftTexture(leftTexture = null) {
this.__leftTexture = [leftTexture];
return this;
}
addLeftTexture(leftTexture = null) {
if (this.__leftTexture == null) {
this.__leftTexture = [];
}
this.__leftTexture.append(leftTexture);
return this;
}
removeLeftTexture(leftTexture) {
for( let i = 0; i < this.__leftTexture.length; i++) {
if ( this.__leftTexture[i] === leftTexture) {
this.__leftTexture.splice(i, 1);
}
}
return this.__leftTexture;
}
get leftTexture() {
return this.__leftTexture;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set rightTexture(rightTexture = null) {
this.__rightTexture = [rightTexture];
return this;
}
addRightTexture(rightTexture = null) {
if (this.__rightTexture == null) {
this.__rightTexture = [];
}
this.__rightTexture.append(rightTexture);
return this;
}
removeRightTexture(rightTexture) {
for( let i = 0; i < this.__rightTexture.length; i++) {
if ( this.__rightTexture[i] === rightTexture) {
this.__rightTexture.splice(i, 1);
}
}
return this.__rightTexture;
}
get rightTexture() {
return this.__rightTexture;
}
set set_bind(bind = null) {
this.__bind = [bind];
return this;
}
set skyAngle(skyAngle = null) {
if (skyAngle == null || skyAngle.length <= 0 || Math.min(skyAngle) < 0) {
return null;
}
if (skyAngle == null || skyAngle.length <= 0 || Math.max(skyAngle) > 3.1416) {
return null;
}
this.__skyAngle = [skyAngle];
return this;
}
addSkyAngle(skyAngle = null) {
if (skyAngle == null || skyAngle.length <= 0 || Math.min(skyAngle) < 0) {
return null;
}
if (skyAngle == null || skyAngle.length <= 0 || Math.max(skyAngle) > 3.1416) {
return null;
}
if (this.__skyAngle == null) {
this.__skyAngle = [];
}
this.__skyAngle.append(skyAngle);
return this;
}
removeSkyAngle(skyAngle) {
for( let i = 0; i < this.__skyAngle.length; i++) {
if ( this.__skyAngle[i] === skyAngle) {
this.__skyAngle.splice(i, 1);
}
}
return this.__skyAngle;
}
get skyAngle() {
return this.__skyAngle;
}
set skyColor(skyColor = [0, 0, 0]) {
if (skyColor == null || skyColor.length <= 0 || Math.min(skyColor) < 0) {
return null;
}
if (skyColor == null || skyColor.length <= 0 || Math.max(skyColor) > 1) {
return null;
}
this.__skyColor = [skyColor];
return this;
}
addSkyColor(skyColor = [0, 0, 0]) {
if (skyColor == null || skyColor.length <= 0 || Math.min(skyColor) < 0) {
return null;
}
if (skyColor == null || skyColor.length <= 0 || Math.max(skyColor) > 1) {
return null;
}
if (this.__skyColor == null) {
this.__skyColor = [];
}
this.__skyColor.append(skyColor);
return this;
}
removeSkyColor(skyColor) {
for( let i = 0; i < this.__skyColor.length; i++) {
if ( this.__skyColor[i] === skyColor) {
this.__skyColor.splice(i, 1);
}
}
return this.__skyColor;
}
get skyColor() {
return this.__skyColor;
}
set topTexture(topTexture = null) {
this.__topTexture = [topTexture];
return this;
}
addTopTexture(topTexture = null) {
if (this.__topTexture == null) {
this.__topTexture = [];
}
this.__topTexture.append(topTexture);
return this;
}
removeTopTexture(topTexture) {
for( let i = 0; i < this.__topTexture.length; i++) {
if ( this.__topTexture[i] === topTexture) {
this.__topTexture.splice(i, 1);
}
}
return this.__topTexture;
}
get topTexture() {
return this.__topTexture;
}
set transparency(transparency = 0) {
if (transparency == null || transparency < 0) {
return null;
}
if (transparency == null || transparency > 1) {
return null;
}
this.__transparency = [transparency];
return this;
}
addTransparency(transparency = 0) {
if (transparency == null || transparency < 0) {
return null;
}
if (transparency == null || transparency > 1) {
return null;
}
if (this.__transparency == null) {
this.__transparency = [];
}
this.__transparency.append(transparency);
return this;
}
removeTransparency(transparency) {
for( let i = 0; i < this.__transparency.length; i++) {
if ( this.__transparency[i] === transparency) {
this.__transparency.splice(i, 1);
}
}
return this.__transparency;
}
get transparency() {
return this.__transparency;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__backTexture === null) {
} else if (typeof this.__backTexture.toXMLNode === 'function') {
str += this.__backTexture.toXMLNode('backTexture');
} else if (typeof this.__backTexture === 'string') {
str += ' backTexture="'+this.__backTexture+'"';
} else if (Array.isArray( this.__backTexture)) {
if (typeof this.__backTexture[0].toXMLNode !== 'function') {
str += ' backTexture="'+this.__backTexture.join(' ')+'"';
} else {
for (let i in this.__backTexture) {
if (typeof this.__backTexture[i].toXMLNode === 'function') {
str += this.__backTexture[i].toXMLNode('backTexture');
}
}
}
} else {
str += ' backTexture="'+this.__backTexture+'"';
}
if (this.__bottomTexture === null) {
} else if (typeof this.__bottomTexture.toXMLNode === 'function') {
str += this.__bottomTexture.toXMLNode('bottomTexture');
} else if (typeof this.__bottomTexture === 'string') {
str += ' bottomTexture="'+this.__bottomTexture+'"';
} else if (Array.isArray( this.__bottomTexture)) {
if (typeof this.__bottomTexture[0].toXMLNode !== 'function') {
str += ' bottomTexture="'+this.__bottomTexture.join(' ')+'"';
} else {
for (let i in this.__bottomTexture) {
if (typeof this.__bottomTexture[i].toXMLNode === 'function') {
str += this.__bottomTexture[i].toXMLNode('bottomTexture');
}
}
}
} else {
str += ' bottomTexture="'+this.__bottomTexture+'"';
}
if (this.__frontTexture === null) {
} else if (typeof this.__frontTexture.toXMLNode === 'function') {
str += this.__frontTexture.toXMLNode('frontTexture');
} else if (typeof this.__frontTexture === 'string') {
str += ' frontTexture="'+this.__frontTexture+'"';
} else if (Array.isArray( this.__frontTexture)) {
if (typeof this.__frontTexture[0].toXMLNode !== 'function') {
str += ' frontTexture="'+this.__frontTexture.join(' ')+'"';
} else {
for (let i in this.__frontTexture) {
if (typeof this.__frontTexture[i].toXMLNode === 'function') {
str += this.__frontTexture[i].toXMLNode('frontTexture');
}
}
}
} else {
str += ' frontTexture="'+this.__frontTexture+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__leftTexture === null) {
} else if (typeof this.__leftTexture.toXMLNode === 'function') {
str += this.__leftTexture.toXMLNode('leftTexture');
} else if (typeof this.__leftTexture === 'string') {
str += ' leftTexture="'+this.__leftTexture+'"';
} else if (Array.isArray( this.__leftTexture)) {
if (typeof this.__leftTexture[0].toXMLNode !== 'function') {
str += ' leftTexture="'+this.__leftTexture.join(' ')+'"';
} else {
for (let i in this.__leftTexture) {
if (typeof this.__leftTexture[i].toXMLNode === 'function') {
str += this.__leftTexture[i].toXMLNode('leftTexture');
}
}
}
} else {
str += ' leftTexture="'+this.__leftTexture+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__rightTexture === null) {
} else if (typeof this.__rightTexture.toXMLNode === 'function') {
str += this.__rightTexture.toXMLNode('rightTexture');
} else if (typeof this.__rightTexture === 'string') {
str += ' rightTexture="'+this.__rightTexture+'"';
} else if (Array.isArray( this.__rightTexture)) {
if (typeof this.__rightTexture[0].toXMLNode !== 'function') {
str += ' rightTexture="'+this.__rightTexture.join(' ')+'"';
} else {
for (let i in this.__rightTexture) {
if (typeof this.__rightTexture[i].toXMLNode === 'function') {
str += this.__rightTexture[i].toXMLNode('rightTexture');
}
}
}
} else {
str += ' rightTexture="'+this.__rightTexture+'"';
}
if (this.__topTexture === null) {
} else if (typeof this.__topTexture.toXMLNode === 'function') {
str += this.__topTexture.toXMLNode('topTexture');
} else if (typeof this.__topTexture === 'string') {
str += ' topTexture="'+this.__topTexture+'"';
} else if (Array.isArray( this.__topTexture)) {
if (typeof this.__topTexture[0].toXMLNode !== 'function') {
str += ' topTexture="'+this.__topTexture.join(' ')+'"';
} else {
for (let i in this.__topTexture) {
if (typeof this.__topTexture[i].toXMLNode === 'function') {
str += this.__topTexture[i].toXMLNode('topTexture');
}
}
}
} else {
str += ' topTexture="'+this.__topTexture+'"';
}
str += ''
return str;
}
}
export class TextureCoordinate extends X3DTextureCoordinateNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var point = kwargs["point"] || null;
this.__point = point;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set point(point = null) {
this.__point = [point];
return this;
}
addPoint(point = null) {
if (this.__point == null) {
this.__point = [];
}
this.__point.append(point);
return this;
}
removePoint(point) {
for( let i = 0; i < this.__point.length; i++) {
if ( this.__point[i] === point) {
this.__point.splice(i, 1);
}
}
return this.__point;
}
get point() {
return this.__point;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class TextureCoordinate3D extends X3DTextureCoordinateNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var point = kwargs["point"] || null;
this.__point = point;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set point(point = null) {
this.__point = [point];
return this;
}
addPoint(point = null) {
if (this.__point == null) {
this.__point = [];
}
this.__point.append(point);
return this;
}
removePoint(point) {
for( let i = 0; i < this.__point.length; i++) {
if ( this.__point[i] === point) {
this.__point.splice(i, 1);
}
}
return this.__point;
}
get point() {
return this.__point;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class TextureCoordinate4D extends X3DTextureCoordinateNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var point = kwargs["point"] || null;
this.__point = point;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set point(point = null) {
this.__point = [point];
return this;
}
addPoint(point = null) {
if (this.__point == null) {
this.__point = [];
}
this.__point.append(point);
return this;
}
removePoint(point) {
for( let i = 0; i < this.__point.length; i++) {
if ( this.__point[i] === point) {
this.__point.splice(i, 1);
}
}
return this.__point;
}
get point() {
return this.__point;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class TextureCoordinateGenerator extends X3DTextureCoordinateNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var mode = kwargs["mode"] || "SPHERE";
if ('SPHERE' === mode) {
} else if ('CAMERASPACENORMAL' === mode) {
} else if ('CAMERASPACEPOSITION' === mode) {
} else if ('CAMERASPACEREFLECTIONVECTOR' === mode) {
} else if ('SPHERE-LOCAL' === mode) {
} else if ('COORD' === mode) {
} else if ('COORD-EYE' === mode) {
} else if ('NOISE' === mode) {
} else if ('NOISE-EYE' === mode) {
} else if ('SPHERE-REFLECT' === mode) {
} else if ('SPHERE-REFLECT-LOCAL' === mode) {
} else {
return null;
}
this.__mode = mode;
var parameter = kwargs["parameter"] || null;
this.__parameter = parameter;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set mode(mode = "SPHERE") {
if ('SPHERE' === mode) {
} else if ('CAMERASPACENORMAL' === mode) {
} else if ('CAMERASPACEPOSITION' === mode) {
} else if ('CAMERASPACEREFLECTIONVECTOR' === mode) {
} else if ('SPHERE-LOCAL' === mode) {
} else if ('COORD' === mode) {
} else if ('COORD-EYE' === mode) {
} else if ('NOISE' === mode) {
} else if ('NOISE-EYE' === mode) {
} else if ('SPHERE-REFLECT' === mode) {
} else if ('SPHERE-REFLECT-LOCAL' === mode) {
} else {
return null;
}
this.__mode = [mode];
return this;
}
addMode(mode = "SPHERE") {
if ('SPHERE' === mode) {
} else if ('CAMERASPACENORMAL' === mode) {
} else if ('CAMERASPACEPOSITION' === mode) {
} else if ('CAMERASPACEREFLECTIONVECTOR' === mode) {
} else if ('SPHERE-LOCAL' === mode) {
} else if ('COORD' === mode) {
} else if ('COORD-EYE' === mode) {
} else if ('NOISE' === mode) {
} else if ('NOISE-EYE' === mode) {
} else if ('SPHERE-REFLECT' === mode) {
} else if ('SPHERE-REFLECT-LOCAL' === mode) {
} else {
return null;
}
if (this.__mode == null) {
this.__mode = [];
}
this.__mode.append(mode);
return this;
}
removeMode(mode) {
for( let i = 0; i < this.__mode.length; i++) {
if ( this.__mode[i] === mode) {
this.__mode.splice(i, 1);
}
}
return this.__mode;
}
get mode() {
return this.__mode;
}
set parameter(parameter = null) {
this.__parameter = [parameter];
return this;
}
addParameter(parameter = null) {
if (this.__parameter == null) {
this.__parameter = [];
}
this.__parameter.append(parameter);
return this;
}
removeParameter(parameter) {
for( let i = 0; i < this.__parameter.length; i++) {
if ( this.__parameter[i] === parameter) {
this.__parameter.splice(i, 1);
}
}
return this.__parameter;
}
get parameter() {
return this.__parameter;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class TextureProperties extends X3DNode {
constructor(kwargs = {}) {
super(kwargs);
var anisotropicDegree = kwargs["anisotropicDegree"] || 1;
if (anisotropicDegree == null || anisotropicDegree < 1) {
return null;
}
this.__anisotropicDegree = anisotropicDegree;
var borderColor = kwargs["borderColor"] || [0, 0, 0, 0];
if (borderColor == null || borderColor < 0) {
return null;
}
if (borderColor == null || borderColor > 1) {
return null;
}
this.__borderColor = borderColor;
var borderWidth = kwargs["borderWidth"] || 0;
if (borderWidth == null || borderWidth < 0) {
return null;
}
this.__borderWidth = borderWidth;
var boundaryModeR = kwargs["boundaryModeR"] || "REPEAT";
if ('CLAMP' === boundaryModeR) {
} else if ('CLAMP_TO_EDGE' === boundaryModeR) {
} else if ('CLAMP_TO_BOUNDARY' === boundaryModeR) {
} else if ('MIRRORED_REPEAT' === boundaryModeR) {
} else if ('REPEAT' === boundaryModeR) {
} else {
return null;
}
this.__boundaryModeR = boundaryModeR;
var boundaryModeS = kwargs["boundaryModeS"] || "REPEAT";
if ('CLAMP' === boundaryModeS) {
} else if ('CLAMP_TO_EDGE' === boundaryModeS) {
} else if ('CLAMP_TO_BOUNDARY' === boundaryModeS) {
} else if ('MIRRORED_REPEAT' === boundaryModeS) {
} else if ('REPEAT' === boundaryModeS) {
} else {
return null;
}
this.__boundaryModeS = boundaryModeS;
var boundaryModeT = kwargs["boundaryModeT"] || "REPEAT";
if ('CLAMP' === boundaryModeT) {
} else if ('CLAMP_TO_EDGE' === boundaryModeT) {
} else if ('CLAMP_TO_BOUNDARY' === boundaryModeT) {
} else if ('MIRRORED_REPEAT' === boundaryModeT) {
} else if ('REPEAT' === boundaryModeT) {
} else {
return null;
}
this.__boundaryModeT = boundaryModeT;
var generateMipMaps = kwargs["generateMipMaps"] || false;
this.__generateMipMaps = generateMipMaps;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var magnificationFilter = kwargs["magnificationFilter"] || "FASTEST";
if ('AVG_PIXEL' === magnificationFilter) {
} else if ('DEFAULT' === magnificationFilter) {
} else if ('FASTEST' === magnificationFilter) {
} else if ('NEAREST_PIXEL' === magnificationFilter) {
} else if ('NICEST' === magnificationFilter) {
} else {
return null;
}
this.__magnificationFilter = magnificationFilter;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var minificationFilter = kwargs["minificationFilter"] || "FASTEST";
if ('AVG_PIXEL' === minificationFilter) {
} else if ('AVG_PIXEL_AVG_MIPMAP' === minificationFilter) {
} else if ('AVG_PIXEL_NEAREST_MIPMAP' === minificationFilter) {
} else if ('DEFAULT' === minificationFilter) {
} else if ('FASTEST' === minificationFilter) {
} else if ('NEAREST_PIXEL' === minificationFilter) {
} else if ('NEAREST_PIXEL_AVG_MIPMAP' === minificationFilter) {
} else if ('NEAREST_PIXEL_NEAREST_MIPMAP' === minificationFilter) {
} else if ('NICEST' === minificationFilter) {
} else {
return null;
}
this.__minificationFilter = minificationFilter;
var textureCompression = kwargs["textureCompression"] || "FASTEST";
if ('DEFAULT' === textureCompression) {
} else if ('FASTEST' === textureCompression) {
} else if ('HIGH' === textureCompression) {
} else if ('LOW' === textureCompression) {
} else if ('MEDIUM' === textureCompression) {
} else if ('NICEST' === textureCompression) {
} else {
return null;
}
this.__textureCompression = textureCompression;
var texturePriority = kwargs["texturePriority"] || 0;
if (texturePriority == null || texturePriority < 0) {
return null;
}
if (texturePriority == null || texturePriority > 1) {
return null;
}
this.__texturePriority = texturePriority;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set anisotropicDegree(anisotropicDegree = 1) {
if (anisotropicDegree == null || anisotropicDegree < 1) {
return null;
}
this.__anisotropicDegree = [anisotropicDegree];
return this;
}
addAnisotropicDegree(anisotropicDegree = 1) {
if (anisotropicDegree == null || anisotropicDegree < 1) {
return null;
}
if (this.__anisotropicDegree == null) {
this.__anisotropicDegree = [];
}
this.__anisotropicDegree.append(anisotropicDegree);
return this;
}
removeAnisotropicDegree(anisotropicDegree) {
for( let i = 0; i < this.__anisotropicDegree.length; i++) {
if ( this.__anisotropicDegree[i] === anisotropicDegree) {
this.__anisotropicDegree.splice(i, 1);
}
}
return this.__anisotropicDegree;
}
get anisotropicDegree() {
return this.__anisotropicDegree;
}
set borderColor(borderColor = [0, 0, 0, 0]) {
if (borderColor == null || borderColor < 0) {
return null;
}
if (borderColor == null || borderColor > 1) {
return null;
}
this.__borderColor = [borderColor];
return this;
}
addBorderColor(borderColor = [0, 0, 0, 0]) {
if (borderColor == null || borderColor < 0) {
return null;
}
if (borderColor == null || borderColor > 1) {
return null;
}
if (this.__borderColor == null) {
this.__borderColor = [];
}
this.__borderColor.append(borderColor);
return this;
}
removeBorderColor(borderColor) {
for( let i = 0; i < this.__borderColor.length; i++) {
if ( this.__borderColor[i] === borderColor) {
this.__borderColor.splice(i, 1);
}
}
return this.__borderColor;
}
get borderColor() {
return this.__borderColor;
}
set borderWidth(borderWidth = 0) {
if (borderWidth == null || borderWidth < 0) {
return null;
}
this.__borderWidth = [borderWidth];
return this;
}
addBorderWidth(borderWidth = 0) {
if (borderWidth == null || borderWidth < 0) {
return null;
}
if (this.__borderWidth == null) {
this.__borderWidth = [];
}
this.__borderWidth.append(borderWidth);
return this;
}
removeBorderWidth(borderWidth) {
for( let i = 0; i < this.__borderWidth.length; i++) {
if ( this.__borderWidth[i] === borderWidth) {
this.__borderWidth.splice(i, 1);
}
}
return this.__borderWidth;
}
get borderWidth() {
return this.__borderWidth;
}
set boundaryModeR(boundaryModeR = "REPEAT") {
if ('CLAMP' === boundaryModeR) {
} else if ('CLAMP_TO_EDGE' === boundaryModeR) {
} else if ('CLAMP_TO_BOUNDARY' === boundaryModeR) {
} else if ('MIRRORED_REPEAT' === boundaryModeR) {
} else if ('REPEAT' === boundaryModeR) {
} else {
return null;
}
this.__boundaryModeR = [boundaryModeR];
return this;
}
addBoundaryModeR(boundaryModeR = "REPEAT") {
if ('CLAMP' === boundaryModeR) {
} else if ('CLAMP_TO_EDGE' === boundaryModeR) {
} else if ('CLAMP_TO_BOUNDARY' === boundaryModeR) {
} else if ('MIRRORED_REPEAT' === boundaryModeR) {
} else if ('REPEAT' === boundaryModeR) {
} else {
return null;
}
if (this.__boundaryModeR == null) {
this.__boundaryModeR = [];
}
this.__boundaryModeR.append(boundaryModeR);
return this;
}
removeBoundaryModeR(boundaryModeR) {
for( let i = 0; i < this.__boundaryModeR.length; i++) {
if ( this.__boundaryModeR[i] === boundaryModeR) {
this.__boundaryModeR.splice(i, 1);
}
}
return this.__boundaryModeR;
}
get boundaryModeR() {
return this.__boundaryModeR;
}
set boundaryModeS(boundaryModeS = "REPEAT") {
if ('CLAMP' === boundaryModeS) {
} else if ('CLAMP_TO_EDGE' === boundaryModeS) {
} else if ('CLAMP_TO_BOUNDARY' === boundaryModeS) {
} else if ('MIRRORED_REPEAT' === boundaryModeS) {
} else if ('REPEAT' === boundaryModeS) {
} else {
return null;
}
this.__boundaryModeS = [boundaryModeS];
return this;
}
addBoundaryModeS(boundaryModeS = "REPEAT") {
if ('CLAMP' === boundaryModeS) {
} else if ('CLAMP_TO_EDGE' === boundaryModeS) {
} else if ('CLAMP_TO_BOUNDARY' === boundaryModeS) {
} else if ('MIRRORED_REPEAT' === boundaryModeS) {
} else if ('REPEAT' === boundaryModeS) {
} else {
return null;
}
if (this.__boundaryModeS == null) {
this.__boundaryModeS = [];
}
this.__boundaryModeS.append(boundaryModeS);
return this;
}
removeBoundaryModeS(boundaryModeS) {
for( let i = 0; i < this.__boundaryModeS.length; i++) {
if ( this.__boundaryModeS[i] === boundaryModeS) {
this.__boundaryModeS.splice(i, 1);
}
}
return this.__boundaryModeS;
}
get boundaryModeS() {
return this.__boundaryModeS;
}
set boundaryModeT(boundaryModeT = "REPEAT") {
if ('CLAMP' === boundaryModeT) {
} else if ('CLAMP_TO_EDGE' === boundaryModeT) {
} else if ('CLAMP_TO_BOUNDARY' === boundaryModeT) {
} else if ('MIRRORED_REPEAT' === boundaryModeT) {
} else if ('REPEAT' === boundaryModeT) {
} else {
return null;
}
this.__boundaryModeT = [boundaryModeT];
return this;
}
addBoundaryModeT(boundaryModeT = "REPEAT") {
if ('CLAMP' === boundaryModeT) {
} else if ('CLAMP_TO_EDGE' === boundaryModeT) {
} else if ('CLAMP_TO_BOUNDARY' === boundaryModeT) {
} else if ('MIRRORED_REPEAT' === boundaryModeT) {
} else if ('REPEAT' === boundaryModeT) {
} else {
return null;
}
if (this.__boundaryModeT == null) {
this.__boundaryModeT = [];
}
this.__boundaryModeT.append(boundaryModeT);
return this;
}
removeBoundaryModeT(boundaryModeT) {
for( let i = 0; i < this.__boundaryModeT.length; i++) {
if ( this.__boundaryModeT[i] === boundaryModeT) {
this.__boundaryModeT.splice(i, 1);
}
}
return this.__boundaryModeT;
}
get boundaryModeT() {
return this.__boundaryModeT;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set magnificationFilter(magnificationFilter = "FASTEST") {
if ('AVG_PIXEL' === magnificationFilter) {
} else if ('DEFAULT' === magnificationFilter) {
} else if ('FASTEST' === magnificationFilter) {
} else if ('NEAREST_PIXEL' === magnificationFilter) {
} else if ('NICEST' === magnificationFilter) {
} else {
return null;
}
this.__magnificationFilter = [magnificationFilter];
return this;
}
addMagnificationFilter(magnificationFilter = "FASTEST") {
if ('AVG_PIXEL' === magnificationFilter) {
} else if ('DEFAULT' === magnificationFilter) {
} else if ('FASTEST' === magnificationFilter) {
} else if ('NEAREST_PIXEL' === magnificationFilter) {
} else if ('NICEST' === magnificationFilter) {
} else {
return null;
}
if (this.__magnificationFilter == null) {
this.__magnificationFilter = [];
}
this.__magnificationFilter.append(magnificationFilter);
return this;
}
removeMagnificationFilter(magnificationFilter) {
for( let i = 0; i < this.__magnificationFilter.length; i++) {
if ( this.__magnificationFilter[i] === magnificationFilter) {
this.__magnificationFilter.splice(i, 1);
}
}
return this.__magnificationFilter;
}
get magnificationFilter() {
return this.__magnificationFilter;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set minificationFilter(minificationFilter = "FASTEST") {
if ('AVG_PIXEL' === minificationFilter) {
} else if ('AVG_PIXEL_AVG_MIPMAP' === minificationFilter) {
} else if ('AVG_PIXEL_NEAREST_MIPMAP' === minificationFilter) {
} else if ('DEFAULT' === minificationFilter) {
} else if ('FASTEST' === minificationFilter) {
} else if ('NEAREST_PIXEL' === minificationFilter) {
} else if ('NEAREST_PIXEL_AVG_MIPMAP' === minificationFilter) {
} else if ('NEAREST_PIXEL_NEAREST_MIPMAP' === minificationFilter) {
} else if ('NICEST' === minificationFilter) {
} else {
return null;
}
this.__minificationFilter = [minificationFilter];
return this;
}
addMinificationFilter(minificationFilter = "FASTEST") {
if ('AVG_PIXEL' === minificationFilter) {
} else if ('AVG_PIXEL_AVG_MIPMAP' === minificationFilter) {
} else if ('AVG_PIXEL_NEAREST_MIPMAP' === minificationFilter) {
} else if ('DEFAULT' === minificationFilter) {
} else if ('FASTEST' === minificationFilter) {
} else if ('NEAREST_PIXEL' === minificationFilter) {
} else if ('NEAREST_PIXEL_AVG_MIPMAP' === minificationFilter) {
} else if ('NEAREST_PIXEL_NEAREST_MIPMAP' === minificationFilter) {
} else if ('NICEST' === minificationFilter) {
} else {
return null;
}
if (this.__minificationFilter == null) {
this.__minificationFilter = [];
}
this.__minificationFilter.append(minificationFilter);
return this;
}
removeMinificationFilter(minificationFilter) {
for( let i = 0; i < this.__minificationFilter.length; i++) {
if ( this.__minificationFilter[i] === minificationFilter) {
this.__minificationFilter.splice(i, 1);
}
}
return this.__minificationFilter;
}
get minificationFilter() {
return this.__minificationFilter;
}
set textureCompression(textureCompression = "FASTEST") {
if ('DEFAULT' === textureCompression) {
} else if ('FASTEST' === textureCompression) {
} else if ('HIGH' === textureCompression) {
} else if ('LOW' === textureCompression) {
} else if ('MEDIUM' === textureCompression) {
} else if ('NICEST' === textureCompression) {
} else {
return null;
}
this.__textureCompression = [textureCompression];
return this;
}
addTextureCompression(textureCompression = "FASTEST") {
if ('DEFAULT' === textureCompression) {
} else if ('FASTEST' === textureCompression) {
} else if ('HIGH' === textureCompression) {
} else if ('LOW' === textureCompression) {
} else if ('MEDIUM' === textureCompression) {
} else if ('NICEST' === textureCompression) {
} else {
return null;
}
if (this.__textureCompression == null) {
this.__textureCompression = [];
}
this.__textureCompression.append(textureCompression);
return this;
}
removeTextureCompression(textureCompression) {
for( let i = 0; i < this.__textureCompression.length; i++) {
if ( this.__textureCompression[i] === textureCompression) {
this.__textureCompression.splice(i, 1);
}
}
return this.__textureCompression;
}
get textureCompression() {
return this.__textureCompression;
}
set texturePriority(texturePriority = 0) {
if (texturePriority == null || texturePriority < 0) {
return null;
}
if (texturePriority == null || texturePriority > 1) {
return null;
}
this.__texturePriority = [texturePriority];
return this;
}
addTexturePriority(texturePriority = 0) {
if (texturePriority == null || texturePriority < 0) {
return null;
}
if (texturePriority == null || texturePriority > 1) {
return null;
}
if (this.__texturePriority == null) {
this.__texturePriority = [];
}
this.__texturePriority.append(texturePriority);
return this;
}
removeTexturePriority(texturePriority) {
for( let i = 0; i < this.__texturePriority.length; i++) {
if ( this.__texturePriority[i] === texturePriority) {
this.__texturePriority.splice(i, 1);
}
}
return this.__texturePriority;
}
get texturePriority() {
return this.__texturePriority;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class TextureTransform extends X3DTextureTransformNode {
constructor(kwargs = {}) {
super(kwargs);
var center = kwargs["center"] || [0, 0];
this.__center = center;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var rotation = kwargs["rotation"] || 0;
this.__rotation = rotation;
var scale = kwargs["scale"] || [1, 1];
this.__scale = scale;
var translation = kwargs["translation"] || [0, 0];
this.__translation = translation;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set center(center = [0, 0]) {
this.__center = [center];
return this;
}
addCenter(center = [0, 0]) {
if (this.__center == null) {
this.__center = [];
}
this.__center.append(center);
return this;
}
removeCenter(center) {
for( let i = 0; i < this.__center.length; i++) {
if ( this.__center[i] === center) {
this.__center.splice(i, 1);
}
}
return this.__center;
}
get center() {
return this.__center;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set rotation(rotation = 0) {
this.__rotation = [rotation];
return this;
}
addRotation(rotation = 0) {
if (this.__rotation == null) {
this.__rotation = [];
}
this.__rotation.append(rotation);
return this;
}
removeRotation(rotation) {
for( let i = 0; i < this.__rotation.length; i++) {
if ( this.__rotation[i] === rotation) {
this.__rotation.splice(i, 1);
}
}
return this.__rotation;
}
get rotation() {
return this.__rotation;
}
set scale(scale = [1, 1]) {
this.__scale = [scale];
return this;
}
addScale(scale = [1, 1]) {
if (this.__scale == null) {
this.__scale = [];
}
this.__scale.append(scale);
return this;
}
removeScale(scale) {
for( let i = 0; i < this.__scale.length; i++) {
if ( this.__scale[i] === scale) {
this.__scale.splice(i, 1);
}
}
return this.__scale;
}
get scale() {
return this.__scale;
}
set translation(translation = [0, 0]) {
this.__translation = [translation];
return this;
}
addTranslation(translation = [0, 0]) {
if (this.__translation == null) {
this.__translation = [];
}
this.__translation.append(translation);
return this;
}
removeTranslation(translation) {
for( let i = 0; i < this.__translation.length; i++) {
if ( this.__translation[i] === translation) {
this.__translation.splice(i, 1);
}
}
return this.__translation;
}
get translation() {
return this.__translation;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class TextureTransform3D extends X3DTextureTransformNode {
constructor(kwargs = {}) {
super(kwargs);
var center = kwargs["center"] || [0, 0, 0];
this.__center = center;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var rotation = kwargs["rotation"] || [0, 0, 1, 0];
this.__rotation = rotation;
var scale = kwargs["scale"] || [1, 1, 1];
this.__scale = scale;
var translation = kwargs["translation"] || [0, 0, 0];
this.__translation = translation;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set center(center = [0, 0, 0]) {
this.__center = [center];
return this;
}
addCenter(center = [0, 0, 0]) {
if (this.__center == null) {
this.__center = [];
}
this.__center.append(center);
return this;
}
removeCenter(center) {
for( let i = 0; i < this.__center.length; i++) {
if ( this.__center[i] === center) {
this.__center.splice(i, 1);
}
}
return this.__center;
}
get center() {
return this.__center;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set rotation(rotation = [0, 0, 1, 0]) {
this.__rotation = [rotation];
return this;
}
addRotation(rotation = [0, 0, 1, 0]) {
if (this.__rotation == null) {
this.__rotation = [];
}
this.__rotation.append(rotation);
return this;
}
removeRotation(rotation) {
for( let i = 0; i < this.__rotation.length; i++) {
if ( this.__rotation[i] === rotation) {
this.__rotation.splice(i, 1);
}
}
return this.__rotation;
}
get rotation() {
return this.__rotation;
}
set scale(scale = [1, 1, 1]) {
this.__scale = [scale];
return this;
}
addScale(scale = [1, 1, 1]) {
if (this.__scale == null) {
this.__scale = [];
}
this.__scale.append(scale);
return this;
}
removeScale(scale) {
for( let i = 0; i < this.__scale.length; i++) {
if ( this.__scale[i] === scale) {
this.__scale.splice(i, 1);
}
}
return this.__scale;
}
get scale() {
return this.__scale;
}
set translation(translation = [0, 0, 0]) {
this.__translation = [translation];
return this;
}
addTranslation(translation = [0, 0, 0]) {
if (this.__translation == null) {
this.__translation = [];
}
this.__translation.append(translation);
return this;
}
removeTranslation(translation) {
for( let i = 0; i < this.__translation.length; i++) {
if ( this.__translation[i] === translation) {
this.__translation.splice(i, 1);
}
}
return this.__translation;
}
get translation() {
return this.__translation;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class TextureTransformMatrix3D extends X3DTextureTransformNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var matrix = kwargs["matrix"] || [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];
this.__matrix = matrix;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set matrix(matrix = [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]) {
this.__matrix = [matrix];
return this;
}
addMatrix(matrix = [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]) {
if (this.__matrix == null) {
this.__matrix = [];
}
this.__matrix.append(matrix);
return this;
}
removeMatrix(matrix) {
for( let i = 0; i < this.__matrix.length; i++) {
if ( this.__matrix[i] === matrix) {
this.__matrix.splice(i, 1);
}
}
return this.__matrix;
}
get matrix() {
return this.__matrix;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class TimeSensor extends X3DTimeDependentNode {
constructor(kwargs = {}) {
super(kwargs);
var cycleInterval = kwargs["cycleInterval"] || 1.0;
if (cycleInterval == null || cycleInterval < 0) {
return null;
}
this.__cycleInterval = cycleInterval;
var cycleTime = kwargs["cycleTime"] || null;
if (cycleTime == null || cycleTime < 0) {
return null;
}
this.__cycleTime = cycleTime;
var elapsedTime = kwargs["elapsedTime"] || null;
if (elapsedTime == null || elapsedTime < 0) {
return null;
}
this.__elapsedTime = elapsedTime;
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var fraction_changed = kwargs["fraction_changed"] || null;
this.__fraction_changed = fraction_changed;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var Paused = kwargs["Paused"] || null;
this.__Paused = Paused;
var loop = kwargs["loop"] || false;
this.__loop = loop;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var pauseTime = kwargs["pauseTime"] || 0;
this.__pauseTime = pauseTime;
var resumeTime = kwargs["resumeTime"] || 0;
this.__resumeTime = resumeTime;
var startTime = kwargs["startTime"] || 0;
this.__startTime = startTime;
var stopTime = kwargs["stopTime"] || 0;
this.__stopTime = stopTime;
var time = kwargs["time"] || null;
if (time == null || time < 0) {
return null;
}
this.__time = time;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set cycleInterval(cycleInterval = 1.0) {
if (cycleInterval == null || cycleInterval < 0) {
return null;
}
this.__cycleInterval = [cycleInterval];
return this;
}
addCycleInterval(cycleInterval = 1.0) {
if (cycleInterval == null || cycleInterval < 0) {
return null;
}
if (this.__cycleInterval == null) {
this.__cycleInterval = [];
}
this.__cycleInterval.append(cycleInterval);
return this;
}
removeCycleInterval(cycleInterval) {
for( let i = 0; i < this.__cycleInterval.length; i++) {
if ( this.__cycleInterval[i] === cycleInterval) {
this.__cycleInterval.splice(i, 1);
}
}
return this.__cycleInterval;
}
get cycleInterval() {
return this.__cycleInterval;
}
removeCycleTime(cycleTime) {
for( let i = 0; i < this.__cycleTime.length; i++) {
if ( this.__cycleTime[i] === cycleTime) {
this.__cycleTime.splice(i, 1);
}
}
return this.__cycleTime;
}
get cycleTime() {
return this.__cycleTime;
}
removeElapsedTime(elapsedTime) {
for( let i = 0; i < this.__elapsedTime.length; i++) {
if ( this.__elapsedTime[i] === elapsedTime) {
this.__elapsedTime.splice(i, 1);
}
}
return this.__elapsedTime;
}
get elapsedTime() {
return this.__elapsedTime;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
removefraction_changed(fraction_changed) {
for( let i = 0; i < this.__fraction_changed.length; i++) {
if ( this.__fraction_changed[i] === fraction_changed) {
this.__fraction_changed.splice(i, 1);
}
}
return this.__fraction_changed;
}
get fraction_changed() {
return this.__fraction_changed;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
get isPaused() {
return this.__Paused;
}
set loop(loop = false) {
this.__loop = [loop];
return this;
}
addLoop(loop = false) {
if (this.__loop == null) {
this.__loop = [];
}
this.__loop.append(loop);
return this;
}
removeLoop(loop) {
for( let i = 0; i < this.__loop.length; i++) {
if ( this.__loop[i] === loop) {
this.__loop.splice(i, 1);
}
}
return this.__loop;
}
get isLoop() {
return this.__loop;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set pauseTime(pauseTime = 0) {
this.__pauseTime = [pauseTime];
return this;
}
addPauseTime(pauseTime = 0) {
if (this.__pauseTime == null) {
this.__pauseTime = [];
}
this.__pauseTime.append(pauseTime);
return this;
}
removePauseTime(pauseTime) {
for( let i = 0; i < this.__pauseTime.length; i++) {
if ( this.__pauseTime[i] === pauseTime) {
this.__pauseTime.splice(i, 1);
}
}
return this.__pauseTime;
}
get pauseTime() {
return this.__pauseTime;
}
set resumeTime(resumeTime = 0) {
this.__resumeTime = [resumeTime];
return this;
}
addResumeTime(resumeTime = 0) {
if (this.__resumeTime == null) {
this.__resumeTime = [];
}
this.__resumeTime.append(resumeTime);
return this;
}
removeResumeTime(resumeTime) {
for( let i = 0; i < this.__resumeTime.length; i++) {
if ( this.__resumeTime[i] === resumeTime) {
this.__resumeTime.splice(i, 1);
}
}
return this.__resumeTime;
}
get resumeTime() {
return this.__resumeTime;
}
set startTime(startTime = 0) {
this.__startTime = [startTime];
return this;
}
addStartTime(startTime = 0) {
if (this.__startTime == null) {
this.__startTime = [];
}
this.__startTime.append(startTime);
return this;
}
removeStartTime(startTime) {
for( let i = 0; i < this.__startTime.length; i++) {
if ( this.__startTime[i] === startTime) {
this.__startTime.splice(i, 1);
}
}
return this.__startTime;
}
get startTime() {
return this.__startTime;
}
set stopTime(stopTime = 0) {
this.__stopTime = [stopTime];
return this;
}
addStopTime(stopTime = 0) {
if (this.__stopTime == null) {
this.__stopTime = [];
}
this.__stopTime.append(stopTime);
return this;
}
removeStopTime(stopTime) {
for( let i = 0; i < this.__stopTime.length; i++) {
if ( this.__stopTime[i] === stopTime) {
this.__stopTime.splice(i, 1);
}
}
return this.__stopTime;
}
get stopTime() {
return this.__stopTime;
}
removeTime(time) {
for( let i = 0; i < this.__time.length; i++) {
if ( this.__time[i] === time) {
this.__time.splice(i, 1);
}
}
return this.__time;
}
get time() {
return this.__time;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class TimeTrigger extends X3DTriggerNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var boolean = kwargs["boolean"] || null;
this.__boolean = boolean;
var triggerTime = kwargs["triggerTime"] || null;
this.__triggerTime = triggerTime;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set set_boolean(boolean = null) {
this.__boolean = [boolean];
return this;
}
removeTriggerTime(triggerTime) {
for( let i = 0; i < this.__triggerTime.length; i++) {
if ( this.__triggerTime[i] === triggerTime) {
this.__triggerTime.splice(i, 1);
}
}
return this.__triggerTime;
}
get triggerTime() {
return this.__triggerTime;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class ToneMappedVolumeStyle extends X3DComposableVolumeRenderStyleNode {
constructor(kwargs = {}) {
super(kwargs);
var coolColor = kwargs["coolColor"] || [0, 0, 1, 0];
if (coolColor == null || coolColor < 0) {
return null;
}
if (coolColor == null || coolColor > 1) {
return null;
}
this.__coolColor = coolColor;
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var surfaceNormals = kwargs["surfaceNormals"] || null;
this.__surfaceNormals = surfaceNormals;
var warmColor = kwargs["warmColor"] || [1, 1, 0, 0];
if (warmColor == null || warmColor < 0) {
return null;
}
if (warmColor == null || warmColor > 1) {
return null;
}
this.__warmColor = warmColor;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set coolColor(coolColor = [0, 0, 1, 0]) {
if (coolColor == null || coolColor < 0) {
return null;
}
if (coolColor == null || coolColor > 1) {
return null;
}
this.__coolColor = [coolColor];
return this;
}
addCoolColor(coolColor = [0, 0, 1, 0]) {
if (coolColor == null || coolColor < 0) {
return null;
}
if (coolColor == null || coolColor > 1) {
return null;
}
if (this.__coolColor == null) {
this.__coolColor = [];
}
this.__coolColor.append(coolColor);
return this;
}
removeCoolColor(coolColor) {
for( let i = 0; i < this.__coolColor.length; i++) {
if ( this.__coolColor[i] === coolColor) {
this.__coolColor.splice(i, 1);
}
}
return this.__coolColor;
}
get coolColor() {
return this.__coolColor;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set surfaceNormals(surfaceNormals = null) {
this.__surfaceNormals = [surfaceNormals];
return this;
}
addSurfaceNormals(surfaceNormals = null) {
if (this.__surfaceNormals == null) {
this.__surfaceNormals = [];
}
this.__surfaceNormals.append(surfaceNormals);
return this;
}
removeSurfaceNormals(surfaceNormals) {
for( let i = 0; i < this.__surfaceNormals.length; i++) {
if ( this.__surfaceNormals[i] === surfaceNormals) {
this.__surfaceNormals.splice(i, 1);
}
}
return this.__surfaceNormals;
}
get surfaceNormals() {
return this.__surfaceNormals;
}
set warmColor(warmColor = [1, 1, 0, 0]) {
if (warmColor == null || warmColor < 0) {
return null;
}
if (warmColor == null || warmColor > 1) {
return null;
}
this.__warmColor = [warmColor];
return this;
}
addWarmColor(warmColor = [1, 1, 0, 0]) {
if (warmColor == null || warmColor < 0) {
return null;
}
if (warmColor == null || warmColor > 1) {
return null;
}
if (this.__warmColor == null) {
this.__warmColor = [];
}
this.__warmColor.append(warmColor);
return this;
}
removeWarmColor(warmColor) {
for( let i = 0; i < this.__warmColor.length; i++) {
if ( this.__warmColor[i] === warmColor) {
this.__warmColor.splice(i, 1);
}
}
return this.__warmColor;
}
get warmColor() {
return this.__warmColor;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__surfaceNormals === null) {
} else if (typeof this.__surfaceNormals.toXMLNode === 'function') {
str += this.__surfaceNormals.toXMLNode('surfaceNormals');
} else if (typeof this.__surfaceNormals === 'string') {
str += ' surfaceNormals="'+this.__surfaceNormals+'"';
} else if (Array.isArray( this.__surfaceNormals)) {
if (typeof this.__surfaceNormals[0].toXMLNode !== 'function') {
str += ' surfaceNormals="'+this.__surfaceNormals.join(' ')+'"';
} else {
for (let i in this.__surfaceNormals) {
if (typeof this.__surfaceNormals[i].toXMLNode === 'function') {
str += this.__surfaceNormals[i].toXMLNode('surfaceNormals');
}
}
}
} else {
str += ' surfaceNormals="'+this.__surfaceNormals+'"';
}
str += ''
return str;
}
}
export class TouchSensor extends X3DTouchSensorNode {
constructor(kwargs = {}) {
super(kwargs);
var description = kwargs["description"] || null;
this.__description = description;
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var hitNormal_changed = kwargs["hitNormal_changed"] || null;
this.__hitNormal_changed = hitNormal_changed;
var hitPoint_changed = kwargs["hitPoint_changed"] || null;
this.__hitPoint_changed = hitPoint_changed;
var hitTexCoord_changed = kwargs["hitTexCoord_changed"] || null;
this.__hitTexCoord_changed = hitTexCoord_changed;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var Over = kwargs["Over"] || null;
this.__Over = Over;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var touchTime = kwargs["touchTime"] || null;
this.__touchTime = touchTime;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set description(description = null) {
this.__description = [description];
return this;
}
addDescription(description = null) {
if (this.__description == null) {
this.__description = [];
}
this.__description.append(description);
return this;
}
removeDescription(description) {
for( let i = 0; i < this.__description.length; i++) {
if ( this.__description[i] === description) {
this.__description.splice(i, 1);
}
}
return this.__description;
}
get description() {
return this.__description;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
removehitNormal_changed(hitNormal_changed) {
for( let i = 0; i < this.__hitNormal_changed.length; i++) {
if ( this.__hitNormal_changed[i] === hitNormal_changed) {
this.__hitNormal_changed.splice(i, 1);
}
}
return this.__hitNormal_changed;
}
get hitNormal_changed() {
return this.__hitNormal_changed;
}
removehitPoint_changed(hitPoint_changed) {
for( let i = 0; i < this.__hitPoint_changed.length; i++) {
if ( this.__hitPoint_changed[i] === hitPoint_changed) {
this.__hitPoint_changed.splice(i, 1);
}
}
return this.__hitPoint_changed;
}
get hitPoint_changed() {
return this.__hitPoint_changed;
}
removehitTexCoord_changed(hitTexCoord_changed) {
for( let i = 0; i < this.__hitTexCoord_changed.length; i++) {
if ( this.__hitTexCoord_changed[i] === hitTexCoord_changed) {
this.__hitTexCoord_changed.splice(i, 1);
}
}
return this.__hitTexCoord_changed;
}
get hitTexCoord_changed() {
return this.__hitTexCoord_changed;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
get isOver() {
return this.__Over;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
removeTouchTime(touchTime) {
for( let i = 0; i < this.__touchTime.length; i++) {
if ( this.__touchTime[i] === touchTime) {
this.__touchTime.splice(i, 1);
}
}
return this.__touchTime;
}
get touchTime() {
return this.__touchTime;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class Transform extends X3DGroupingNode {
constructor(kwargs = {}) {
super(kwargs);
var children_ = kwargs["children_"] || null;
this.__children_ = children_;
var bboxCenter = kwargs["bboxCenter"] || [0, 0, 0];
this.__bboxCenter = bboxCenter;
var bboxSize = kwargs["bboxSize"] || [-1, -1, -1];
this.__bboxSize = bboxSize;
var center = kwargs["center"] || [0, 0, 0];
this.__center = center;
var children = kwargs["children"] || null;
this.__children = children;
var displayBBox = kwargs["displayBBox"] || false;
this.__displayBBox = displayBBox;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var children_ = kwargs["children_"] || null;
this.__children_ = children_;
var rotation = kwargs["rotation"] || [0, 0, 1, 0];
this.__rotation = rotation;
var scale = kwargs["scale"] || [1, 1, 1];
this.__scale = scale;
var scaleOrientation = kwargs["scaleOrientation"] || [0, 0, 1, 0];
this.__scaleOrientation = scaleOrientation;
var translation = kwargs["translation"] || [0, 0, 0];
this.__translation = translation;
var visible = kwargs["visible"] || true;
this.__visible = visible;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
addChildren(children_ = null) {
if (this.__children_ == null) {
this.__children_ = [];
}
this.__children_.append(children_);
return this;
}
set center(center = [0, 0, 0]) {
this.__center = [center];
return this;
}
addCenter(center = [0, 0, 0]) {
if (this.__center == null) {
this.__center = [];
}
this.__center.append(center);
return this;
}
removeCenter(center) {
for( let i = 0; i < this.__center.length; i++) {
if ( this.__center[i] === center) {
this.__center.splice(i, 1);
}
}
return this.__center;
}
get center() {
return this.__center;
}
set children(children = null) {
this.__children = [children];
return this;
}
addChildren(children = null) {
if (this.__children == null) {
this.__children = [];
}
this.__children.append(children);
return this;
}
removeChildren(children) {
for( let i = 0; i < this.__children.length; i++) {
if ( this.__children[i] === children) {
this.__children.splice(i, 1);
}
}
return this.__children;
}
get children() {
return this.__children;
}
set displayBBox(displayBBox = false) {
this.__displayBBox = [displayBBox];
return this;
}
addDisplayBBox(displayBBox = false) {
if (this.__displayBBox == null) {
this.__displayBBox = [];
}
this.__displayBBox.append(displayBBox);
return this;
}
removeDisplayBBox(displayBBox) {
for( let i = 0; i < this.__displayBBox.length; i++) {
if ( this.__displayBBox[i] === displayBBox) {
this.__displayBBox.splice(i, 1);
}
}
return this.__displayBBox;
}
get isDisplayBBox() {
return this.__displayBBox;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set rotation(rotation = [0, 0, 1, 0]) {
this.__rotation = [rotation];
return this;
}
addRotation(rotation = [0, 0, 1, 0]) {
if (this.__rotation == null) {
this.__rotation = [];
}
this.__rotation.append(rotation);
return this;
}
removeRotation(rotation) {
for( let i = 0; i < this.__rotation.length; i++) {
if ( this.__rotation[i] === rotation) {
this.__rotation.splice(i, 1);
}
}
return this.__rotation;
}
get rotation() {
return this.__rotation;
}
set scale(scale = [1, 1, 1]) {
this.__scale = [scale];
return this;
}
addScale(scale = [1, 1, 1]) {
if (this.__scale == null) {
this.__scale = [];
}
this.__scale.append(scale);
return this;
}
removeScale(scale) {
for( let i = 0; i < this.__scale.length; i++) {
if ( this.__scale[i] === scale) {
this.__scale.splice(i, 1);
}
}
return this.__scale;
}
get scale() {
return this.__scale;
}
set scaleOrientation(scaleOrientation = [0, 0, 1, 0]) {
this.__scaleOrientation = [scaleOrientation];
return this;
}
addScaleOrientation(scaleOrientation = [0, 0, 1, 0]) {
if (this.__scaleOrientation == null) {
this.__scaleOrientation = [];
}
this.__scaleOrientation.append(scaleOrientation);
return this;
}
removeScaleOrientation(scaleOrientation) {
for( let i = 0; i < this.__scaleOrientation.length; i++) {
if ( this.__scaleOrientation[i] === scaleOrientation) {
this.__scaleOrientation.splice(i, 1);
}
}
return this.__scaleOrientation;
}
get scaleOrientation() {
return this.__scaleOrientation;
}
set translation(translation = [0, 0, 0]) {
this.__translation = [translation];
return this;
}
addTranslation(translation = [0, 0, 0]) {
if (this.__translation == null) {
this.__translation = [];
}
this.__translation.append(translation);
return this;
}
removeTranslation(translation) {
for( let i = 0; i < this.__translation.length; i++) {
if ( this.__translation[i] === translation) {
this.__translation.splice(i, 1);
}
}
return this.__translation;
}
get translation() {
return this.__translation;
}
set visible(visible = true) {
this.__visible = [visible];
return this;
}
addVisible(visible = true) {
if (this.__visible == null) {
this.__visible = [];
}
this.__visible.append(visible);
return this;
}
removeVisible(visible) {
for( let i = 0; i < this.__visible.length; i++) {
if ( this.__visible[i] === visible) {
this.__visible.splice(i, 1);
}
}
return this.__visible;
}
get isVisible() {
return this.__visible;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__children_ === null) {
} else if (typeof this.__children_.toXMLNode === 'function') {
str += this.__children_.toXMLNode('children_');
} else if (typeof this.__children_ === 'string') {
str += ' children_="'+this.__children_+'"';
} else if (Array.isArray( this.__children_)) {
if (typeof this.__children_[0].toXMLNode !== 'function') {
str += ' children_="'+this.__children_.join(' ')+'"';
} else {
for (let i in this.__children_) {
if (typeof this.__children_[i].toXMLNode === 'function') {
str += this.__children_[i].toXMLNode('children_');
}
}
}
} else {
str += ' children_="'+this.__children_+'"';
}
if (this.__children === null) {
} else if (typeof this.__children.toXMLNode === 'function') {
str += this.__children.toXMLNode('children');
} else if (typeof this.__children === 'string') {
str += ' children="'+this.__children+'"';
} else if (Array.isArray( this.__children)) {
if (typeof this.__children[0].toXMLNode !== 'function') {
str += ' children="'+this.__children.join(' ')+'"';
} else {
for (let i in this.__children) {
if (typeof this.__children[i].toXMLNode === 'function') {
str += this.__children[i].toXMLNode('children');
}
}
}
} else {
str += ' children="'+this.__children+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__children_ === null) {
} else if (typeof this.__children_.toXMLNode === 'function') {
str += this.__children_.toXMLNode('children_');
} else if (typeof this.__children_ === 'string') {
str += ' children_="'+this.__children_+'"';
} else if (Array.isArray( this.__children_)) {
if (typeof this.__children_[0].toXMLNode !== 'function') {
str += ' children_="'+this.__children_.join(' ')+'"';
} else {
for (let i in this.__children_) {
if (typeof this.__children_[i].toXMLNode === 'function') {
str += this.__children_[i].toXMLNode('children_');
}
}
}
} else {
str += ' children_="'+this.__children_+'"';
}
str += ''
return str;
}
}
export class TransformSensor extends X3DEnvironmentalSensorNode {
constructor(kwargs = {}) {
super(kwargs);
var center = kwargs["center"] || [0, 0, 0];
this.__center = center;
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var enterTime = kwargs["enterTime"] || null;
this.__enterTime = enterTime;
var exitTime = kwargs["exitTime"] || null;
this.__exitTime = exitTime;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var orientation_changed = kwargs["orientation_changed"] || null;
this.__orientation_changed = orientation_changed;
var position_changed = kwargs["position_changed"] || null;
this.__position_changed = position_changed;
var size = kwargs["size"] || [0, 0, 0];
if (size == null || size.length <= 0 || Math.min(size) < 0) {
return null;
}
this.__size = size;
var targetObject = kwargs["targetObject"] || null;
this.__targetObject = targetObject;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set center(center = [0, 0, 0]) {
this.__center = [center];
return this;
}
addCenter(center = [0, 0, 0]) {
if (this.__center == null) {
this.__center = [];
}
this.__center.append(center);
return this;
}
removeCenter(center) {
for( let i = 0; i < this.__center.length; i++) {
if ( this.__center[i] === center) {
this.__center.splice(i, 1);
}
}
return this.__center;
}
get center() {
return this.__center;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
removeEnterTime(enterTime) {
for( let i = 0; i < this.__enterTime.length; i++) {
if ( this.__enterTime[i] === enterTime) {
this.__enterTime.splice(i, 1);
}
}
return this.__enterTime;
}
get enterTime() {
return this.__enterTime;
}
removeExitTime(exitTime) {
for( let i = 0; i < this.__exitTime.length; i++) {
if ( this.__exitTime[i] === exitTime) {
this.__exitTime.splice(i, 1);
}
}
return this.__exitTime;
}
get exitTime() {
return this.__exitTime;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
removeorientation_changed(orientation_changed) {
for( let i = 0; i < this.__orientation_changed.length; i++) {
if ( this.__orientation_changed[i] === orientation_changed) {
this.__orientation_changed.splice(i, 1);
}
}
return this.__orientation_changed;
}
get orientation_changed() {
return this.__orientation_changed;
}
removeposition_changed(position_changed) {
for( let i = 0; i < this.__position_changed.length; i++) {
if ( this.__position_changed[i] === position_changed) {
this.__position_changed.splice(i, 1);
}
}
return this.__position_changed;
}
get position_changed() {
return this.__position_changed;
}
set targetObject(targetObject = null) {
this.__targetObject = [targetObject];
return this;
}
addTargetObject(targetObject = null) {
if (this.__targetObject == null) {
this.__targetObject = [];
}
this.__targetObject.append(targetObject);
return this;
}
removeTargetObject(targetObject) {
for( let i = 0; i < this.__targetObject.length; i++) {
if ( this.__targetObject[i] === targetObject) {
this.__targetObject.splice(i, 1);
}
}
return this.__targetObject;
}
get targetObject() {
return this.__targetObject;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__targetObject === null) {
} else if (typeof this.__targetObject.toXMLNode === 'function') {
str += this.__targetObject.toXMLNode('targetObject');
} else if (typeof this.__targetObject === 'string') {
str += ' targetObject="'+this.__targetObject+'"';
} else if (Array.isArray( this.__targetObject)) {
if (typeof this.__targetObject[0].toXMLNode !== 'function') {
str += ' targetObject="'+this.__targetObject.join(' ')+'"';
} else {
for (let i in this.__targetObject) {
if (typeof this.__targetObject[i].toXMLNode === 'function') {
str += this.__targetObject[i].toXMLNode('targetObject');
}
}
}
} else {
str += ' targetObject="'+this.__targetObject+'"';
}
str += ''
return str;
}
}
export class TransmitterPdu extends X3DNetworkSensorNode {
constructor(kwargs = {}) {
super(kwargs);
var address = kwargs["address"] || "localhost";
this.__address = address;
var antennaLocation = kwargs["antennaLocation"] || [0, 0, 0];
this.__antennaLocation = antennaLocation;
var antennaPatternLength = kwargs["antennaPatternLength"] || 0;
this.__antennaPatternLength = antennaPatternLength;
var antennaPatternType = kwargs["antennaPatternType"] || 0;
this.__antennaPatternType = antennaPatternType;
var applicationID = kwargs["applicationID"] || 0;
this.__applicationID = applicationID;
var bboxCenter = kwargs["bboxCenter"] || [0, 0, 0];
this.__bboxCenter = bboxCenter;
var bboxSize = kwargs["bboxSize"] || [-1, -1, -1];
this.__bboxSize = bboxSize;
var cryptoKeyID = kwargs["cryptoKeyID"] || 0;
this.__cryptoKeyID = cryptoKeyID;
var cryptoSystem = kwargs["cryptoSystem"] || 0;
this.__cryptoSystem = cryptoSystem;
var displayBBox = kwargs["displayBBox"] || false;
this.__displayBBox = displayBBox;
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var entityID = kwargs["entityID"] || 0;
this.__entityID = entityID;
var frequency = kwargs["frequency"] || 0;
this.__frequency = frequency;
var geoCoords = kwargs["geoCoords"] || [0, 0, 0];
this.__geoCoords = geoCoords;
var geoSystem = kwargs["geoSystem"] || ["GD", "WE"];
this.__geoSystem = geoSystem;
var inputSource = kwargs["inputSource"] || 0;
this.__inputSource = inputSource;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var NetworkReader = kwargs["NetworkReader"] || null;
this.__NetworkReader = NetworkReader;
var NetworkWriter = kwargs["NetworkWriter"] || null;
this.__NetworkWriter = NetworkWriter;
var RtpHeaderHeard = kwargs["RtpHeaderHeard"] || null;
this.__RtpHeaderHeard = RtpHeaderHeard;
var StandAlone = kwargs["StandAlone"] || null;
this.__StandAlone = StandAlone;
var lengthOfModulationParameters = kwargs["lengthOfModulationParameters"] || 0;
this.__lengthOfModulationParameters = lengthOfModulationParameters;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var modulationTypeDetail = kwargs["modulationTypeDetail"] || 0;
this.__modulationTypeDetail = modulationTypeDetail;
var modulationTypeMajor = kwargs["modulationTypeMajor"] || 0;
this.__modulationTypeMajor = modulationTypeMajor;
var modulationTypeSpreadSpectrum = kwargs["modulationTypeSpreadSpectrum"] || 0;
this.__modulationTypeSpreadSpectrum = modulationTypeSpreadSpectrum;
var modulationTypeSystem = kwargs["modulationTypeSystem"] || 0;
this.__modulationTypeSystem = modulationTypeSystem;
var multicastRelayHost = kwargs["multicastRelayHost"] || null;
this.__multicastRelayHost = multicastRelayHost;
var multicastRelayPort = kwargs["multicastRelayPort"] || 0;
this.__multicastRelayPort = multicastRelayPort;
var networkMode = kwargs["networkMode"] || "standAlone";
if ('standAlone' === networkMode) {
} else if ('networkReader' === networkMode) {
} else if ('networkWriter' === networkMode) {
} else {
return null;
}
this.__networkMode = networkMode;
var port = kwargs["port"] || 0;
this.__port = port;
var power = kwargs["power"] || 0.0;
this.__power = power;
var radioEntityTypeCategory = kwargs["radioEntityTypeCategory"] || 0;
this.__radioEntityTypeCategory = radioEntityTypeCategory;
var radioEntityTypeCountry = kwargs["radioEntityTypeCountry"] || 0;
this.__radioEntityTypeCountry = radioEntityTypeCountry;
var radioEntityTypeDomain = kwargs["radioEntityTypeDomain"] || 0;
this.__radioEntityTypeDomain = radioEntityTypeDomain;
var radioEntityTypeKind = kwargs["radioEntityTypeKind"] || 0;
this.__radioEntityTypeKind = radioEntityTypeKind;
var radioEntityTypeNomenclature = kwargs["radioEntityTypeNomenclature"] || 0;
this.__radioEntityTypeNomenclature = radioEntityTypeNomenclature;
var radioEntityTypeNomenclatureVersion = kwargs["radioEntityTypeNomenclatureVersion"] || 0;
this.__radioEntityTypeNomenclatureVersion = radioEntityTypeNomenclatureVersion;
var radioID = kwargs["radioID"] || 0;
this.__radioID = radioID;
var readInterval = kwargs["readInterval"] || 0.1;
if (readInterval == null || readInterval < 0) {
return null;
}
this.__readInterval = readInterval;
var relativeAntennaLocation = kwargs["relativeAntennaLocation"] || [0, 0, 0];
this.__relativeAntennaLocation = relativeAntennaLocation;
var rtpHeaderExpected = kwargs["rtpHeaderExpected"] || false;
this.__rtpHeaderExpected = rtpHeaderExpected;
var siteID = kwargs["siteID"] || 0;
this.__siteID = siteID;
var timestamp = kwargs["timestamp"] || null;
if (timestamp == null || timestamp < 0) {
return null;
}
this.__timestamp = timestamp;
var transmitFrequencyBandwidth = kwargs["transmitFrequencyBandwidth"] || 0;
this.__transmitFrequencyBandwidth = transmitFrequencyBandwidth;
var transmitState = kwargs["transmitState"] || 0;
this.__transmitState = transmitState;
var visible = kwargs["visible"] || true;
this.__visible = visible;
var whichGeometry = kwargs["whichGeometry"] || 1;
this.__whichGeometry = whichGeometry;
var writeInterval = kwargs["writeInterval"] || 1.0;
if (writeInterval == null || writeInterval < 0) {
return null;
}
this.__writeInterval = writeInterval;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
address(address = "localhost") {
if (this.__address == null) {
this.__address = [];
}
this.__address.append(address);
return this;
}
removeAddress(address) {
for( let i = 0; i < this.__address.length; i++) {
if ( this.__address[i] === address) {
this.__address.splice(i, 1);
}
}
return this.__address;
}
get address() {
return this.__address;
}
set antennaLocation(antennaLocation = [0, 0, 0]) {
this.__antennaLocation = [antennaLocation];
return this;
}
addAntennaLocation(antennaLocation = [0, 0, 0]) {
if (this.__antennaLocation == null) {
this.__antennaLocation = [];
}
this.__antennaLocation.append(antennaLocation);
return this;
}
removeAntennaLocation(antennaLocation) {
for( let i = 0; i < this.__antennaLocation.length; i++) {
if ( this.__antennaLocation[i] === antennaLocation) {
this.__antennaLocation.splice(i, 1);
}
}
return this.__antennaLocation;
}
get antennaLocation() {
return this.__antennaLocation;
}
set antennaPatternLength(antennaPatternLength = 0) {
this.__antennaPatternLength = [antennaPatternLength];
return this;
}
addAntennaPatternLength(antennaPatternLength = 0) {
if (this.__antennaPatternLength == null) {
this.__antennaPatternLength = [];
}
this.__antennaPatternLength.append(antennaPatternLength);
return this;
}
removeAntennaPatternLength(antennaPatternLength) {
for( let i = 0; i < this.__antennaPatternLength.length; i++) {
if ( this.__antennaPatternLength[i] === antennaPatternLength) {
this.__antennaPatternLength.splice(i, 1);
}
}
return this.__antennaPatternLength;
}
get antennaPatternLength() {
return this.__antennaPatternLength;
}
set antennaPatternType(antennaPatternType = 0) {
this.__antennaPatternType = [antennaPatternType];
return this;
}
addAntennaPatternType(antennaPatternType = 0) {
if (this.__antennaPatternType == null) {
this.__antennaPatternType = [];
}
this.__antennaPatternType.append(antennaPatternType);
return this;
}
removeAntennaPatternType(antennaPatternType) {
for( let i = 0; i < this.__antennaPatternType.length; i++) {
if ( this.__antennaPatternType[i] === antennaPatternType) {
this.__antennaPatternType.splice(i, 1);
}
}
return this.__antennaPatternType;
}
get antennaPatternType() {
return this.__antennaPatternType;
}
set applicationID(applicationID = 0) {
this.__applicationID = [applicationID];
return this;
}
addApplicationID(applicationID = 0) {
if (this.__applicationID == null) {
this.__applicationID = [];
}
this.__applicationID.append(applicationID);
return this;
}
removeApplicationID(applicationID) {
for( let i = 0; i < this.__applicationID.length; i++) {
if ( this.__applicationID[i] === applicationID) {
this.__applicationID.splice(i, 1);
}
}
return this.__applicationID;
}
get applicationID() {
return this.__applicationID;
}
set cryptoKeyID(cryptoKeyID = 0) {
this.__cryptoKeyID = [cryptoKeyID];
return this;
}
addCryptoKeyID(cryptoKeyID = 0) {
if (this.__cryptoKeyID == null) {
this.__cryptoKeyID = [];
}
this.__cryptoKeyID.append(cryptoKeyID);
return this;
}
removeCryptoKeyID(cryptoKeyID) {
for( let i = 0; i < this.__cryptoKeyID.length; i++) {
if ( this.__cryptoKeyID[i] === cryptoKeyID) {
this.__cryptoKeyID.splice(i, 1);
}
}
return this.__cryptoKeyID;
}
get cryptoKeyID() {
return this.__cryptoKeyID;
}
set cryptoSystem(cryptoSystem = 0) {
this.__cryptoSystem = [cryptoSystem];
return this;
}
addCryptoSystem(cryptoSystem = 0) {
if (this.__cryptoSystem == null) {
this.__cryptoSystem = [];
}
this.__cryptoSystem.append(cryptoSystem);
return this;
}
removeCryptoSystem(cryptoSystem) {
for( let i = 0; i < this.__cryptoSystem.length; i++) {
if ( this.__cryptoSystem[i] === cryptoSystem) {
this.__cryptoSystem.splice(i, 1);
}
}
return this.__cryptoSystem;
}
get cryptoSystem() {
return this.__cryptoSystem;
}
set displayBBox(displayBBox = false) {
this.__displayBBox = [displayBBox];
return this;
}
addDisplayBBox(displayBBox = false) {
if (this.__displayBBox == null) {
this.__displayBBox = [];
}
this.__displayBBox.append(displayBBox);
return this;
}
removeDisplayBBox(displayBBox) {
for( let i = 0; i < this.__displayBBox.length; i++) {
if ( this.__displayBBox[i] === displayBBox) {
this.__displayBBox.splice(i, 1);
}
}
return this.__displayBBox;
}
get isDisplayBBox() {
return this.__displayBBox;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
set entityID(entityID = 0) {
this.__entityID = [entityID];
return this;
}
addEntityID(entityID = 0) {
if (this.__entityID == null) {
this.__entityID = [];
}
this.__entityID.append(entityID);
return this;
}
removeEntityID(entityID) {
for( let i = 0; i < this.__entityID.length; i++) {
if ( this.__entityID[i] === entityID) {
this.__entityID.splice(i, 1);
}
}
return this.__entityID;
}
get entityID() {
return this.__entityID;
}
set frequency(frequency = 0) {
this.__frequency = [frequency];
return this;
}
addFrequency(frequency = 0) {
if (this.__frequency == null) {
this.__frequency = [];
}
this.__frequency.append(frequency);
return this;
}
removeFrequency(frequency) {
for( let i = 0; i < this.__frequency.length; i++) {
if ( this.__frequency[i] === frequency) {
this.__frequency.splice(i, 1);
}
}
return this.__frequency;
}
get frequency() {
return this.__frequency;
}
set geoCoords(geoCoords = [0, 0, 0]) {
this.__geoCoords = [geoCoords];
return this;
}
addGeoCoords(geoCoords = [0, 0, 0]) {
if (this.__geoCoords == null) {
this.__geoCoords = [];
}
this.__geoCoords.append(geoCoords);
return this;
}
removeGeoCoords(geoCoords) {
for( let i = 0; i < this.__geoCoords.length; i++) {
if ( this.__geoCoords[i] === geoCoords) {
this.__geoCoords.splice(i, 1);
}
}
return this.__geoCoords;
}
get geoCoords() {
return this.__geoCoords;
}
set inputSource(inputSource = 0) {
this.__inputSource = [inputSource];
return this;
}
addInputSource(inputSource = 0) {
if (this.__inputSource == null) {
this.__inputSource = [];
}
this.__inputSource.append(inputSource);
return this;
}
removeInputSource(inputSource) {
for( let i = 0; i < this.__inputSource.length; i++) {
if ( this.__inputSource[i] === inputSource) {
this.__inputSource.splice(i, 1);
}
}
return this.__inputSource;
}
get inputSource() {
return this.__inputSource;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
get isNetworkReader() {
return this.__NetworkReader;
}
get isNetworkWriter() {
return this.__NetworkWriter;
}
get isRtpHeaderHeard() {
return this.__RtpHeaderHeard;
}
get isStandAlone() {
return this.__StandAlone;
}
set lengthOfModulationParameters(lengthOfModulationParameters = 0) {
this.__lengthOfModulationParameters = [lengthOfModulationParameters];
return this;
}
addLengthOfModulationParameters(lengthOfModulationParameters = 0) {
if (this.__lengthOfModulationParameters == null) {
this.__lengthOfModulationParameters = [];
}
this.__lengthOfModulationParameters.append(lengthOfModulationParameters);
return this;
}
removeLengthOfModulationParameters(lengthOfModulationParameters) {
for( let i = 0; i < this.__lengthOfModulationParameters.length; i++) {
if ( this.__lengthOfModulationParameters[i] === lengthOfModulationParameters) {
this.__lengthOfModulationParameters.splice(i, 1);
}
}
return this.__lengthOfModulationParameters;
}
get lengthOfModulationParameters() {
return this.__lengthOfModulationParameters;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set modulationTypeDetail(modulationTypeDetail = 0) {
this.__modulationTypeDetail = [modulationTypeDetail];
return this;
}
addModulationTypeDetail(modulationTypeDetail = 0) {
if (this.__modulationTypeDetail == null) {
this.__modulationTypeDetail = [];
}
this.__modulationTypeDetail.append(modulationTypeDetail);
return this;
}
removeModulationTypeDetail(modulationTypeDetail) {
for( let i = 0; i < this.__modulationTypeDetail.length; i++) {
if ( this.__modulationTypeDetail[i] === modulationTypeDetail) {
this.__modulationTypeDetail.splice(i, 1);
}
}
return this.__modulationTypeDetail;
}
get modulationTypeDetail() {
return this.__modulationTypeDetail;
}
set modulationTypeMajor(modulationTypeMajor = 0) {
this.__modulationTypeMajor = [modulationTypeMajor];
return this;
}
addModulationTypeMajor(modulationTypeMajor = 0) {
if (this.__modulationTypeMajor == null) {
this.__modulationTypeMajor = [];
}
this.__modulationTypeMajor.append(modulationTypeMajor);
return this;
}
removeModulationTypeMajor(modulationTypeMajor) {
for( let i = 0; i < this.__modulationTypeMajor.length; i++) {
if ( this.__modulationTypeMajor[i] === modulationTypeMajor) {
this.__modulationTypeMajor.splice(i, 1);
}
}
return this.__modulationTypeMajor;
}
get modulationTypeMajor() {
return this.__modulationTypeMajor;
}
set modulationTypeSpreadSpectrum(modulationTypeSpreadSpectrum = 0) {
this.__modulationTypeSpreadSpectrum = [modulationTypeSpreadSpectrum];
return this;
}
addModulationTypeSpreadSpectrum(modulationTypeSpreadSpectrum = 0) {
if (this.__modulationTypeSpreadSpectrum == null) {
this.__modulationTypeSpreadSpectrum = [];
}
this.__modulationTypeSpreadSpectrum.append(modulationTypeSpreadSpectrum);
return this;
}
removeModulationTypeSpreadSpectrum(modulationTypeSpreadSpectrum) {
for( let i = 0; i < this.__modulationTypeSpreadSpectrum.length; i++) {
if ( this.__modulationTypeSpreadSpectrum[i] === modulationTypeSpreadSpectrum) {
this.__modulationTypeSpreadSpectrum.splice(i, 1);
}
}
return this.__modulationTypeSpreadSpectrum;
}
get modulationTypeSpreadSpectrum() {
return this.__modulationTypeSpreadSpectrum;
}
set modulationTypeSystem(modulationTypeSystem = 0) {
this.__modulationTypeSystem = [modulationTypeSystem];
return this;
}
addModulationTypeSystem(modulationTypeSystem = 0) {
if (this.__modulationTypeSystem == null) {
this.__modulationTypeSystem = [];
}
this.__modulationTypeSystem.append(modulationTypeSystem);
return this;
}
removeModulationTypeSystem(modulationTypeSystem) {
for( let i = 0; i < this.__modulationTypeSystem.length; i++) {
if ( this.__modulationTypeSystem[i] === modulationTypeSystem) {
this.__modulationTypeSystem.splice(i, 1);
}
}
return this.__modulationTypeSystem;
}
get modulationTypeSystem() {
return this.__modulationTypeSystem;
}
set multicastRelayHost(multicastRelayHost = null) {
this.__multicastRelayHost = [multicastRelayHost];
return this;
}
addMulticastRelayHost(multicastRelayHost = null) {
if (this.__multicastRelayHost == null) {
this.__multicastRelayHost = [];
}
this.__multicastRelayHost.append(multicastRelayHost);
return this;
}
removeMulticastRelayHost(multicastRelayHost) {
for( let i = 0; i < this.__multicastRelayHost.length; i++) {
if ( this.__multicastRelayHost[i] === multicastRelayHost) {
this.__multicastRelayHost.splice(i, 1);
}
}
return this.__multicastRelayHost;
}
get multicastRelayHost() {
return this.__multicastRelayHost;
}
set multicastRelayPort(multicastRelayPort = 0) {
this.__multicastRelayPort = [multicastRelayPort];
return this;
}
addMulticastRelayPort(multicastRelayPort = 0) {
if (this.__multicastRelayPort == null) {
this.__multicastRelayPort = [];
}
this.__multicastRelayPort.append(multicastRelayPort);
return this;
}
removeMulticastRelayPort(multicastRelayPort) {
for( let i = 0; i < this.__multicastRelayPort.length; i++) {
if ( this.__multicastRelayPort[i] === multicastRelayPort) {
this.__multicastRelayPort.splice(i, 1);
}
}
return this.__multicastRelayPort;
}
get multicastRelayPort() {
return this.__multicastRelayPort;
}
set networkMode(networkMode = "standAlone") {
if ('standAlone' === networkMode) {
} else if ('networkReader' === networkMode) {
} else if ('networkWriter' === networkMode) {
} else {
return null;
}
this.__networkMode = [networkMode];
return this;
}
addNetworkMode(networkMode = "standAlone") {
if ('standAlone' === networkMode) {
} else if ('networkReader' === networkMode) {
} else if ('networkWriter' === networkMode) {
} else {
return null;
}
if (this.__networkMode == null) {
this.__networkMode = [];
}
this.__networkMode.append(networkMode);
return this;
}
removeNetworkMode(networkMode) {
for( let i = 0; i < this.__networkMode.length; i++) {
if ( this.__networkMode[i] === networkMode) {
this.__networkMode.splice(i, 1);
}
}
return this.__networkMode;
}
get networkMode() {
return this.__networkMode;
}
set port(port = 0) {
this.__port = [port];
return this;
}
addPort(port = 0) {
if (this.__port == null) {
this.__port = [];
}
this.__port.append(port);
return this;
}
removePort(port) {
for( let i = 0; i < this.__port.length; i++) {
if ( this.__port[i] === port) {
this.__port.splice(i, 1);
}
}
return this.__port;
}
get port() {
return this.__port;
}
set power(power = 0.0) {
this.__power = [power];
return this;
}
addPower(power = 0.0) {
if (this.__power == null) {
this.__power = [];
}
this.__power.append(power);
return this;
}
removePower(power) {
for( let i = 0; i < this.__power.length; i++) {
if ( this.__power[i] === power) {
this.__power.splice(i, 1);
}
}
return this.__power;
}
get power() {
return this.__power;
}
set radioEntityTypeCategory(radioEntityTypeCategory = 0) {
this.__radioEntityTypeCategory = [radioEntityTypeCategory];
return this;
}
addRadioEntityTypeCategory(radioEntityTypeCategory = 0) {
if (this.__radioEntityTypeCategory == null) {
this.__radioEntityTypeCategory = [];
}
this.__radioEntityTypeCategory.append(radioEntityTypeCategory);
return this;
}
removeRadioEntityTypeCategory(radioEntityTypeCategory) {
for( let i = 0; i < this.__radioEntityTypeCategory.length; i++) {
if ( this.__radioEntityTypeCategory[i] === radioEntityTypeCategory) {
this.__radioEntityTypeCategory.splice(i, 1);
}
}
return this.__radioEntityTypeCategory;
}
get radioEntityTypeCategory() {
return this.__radioEntityTypeCategory;
}
set radioEntityTypeCountry(radioEntityTypeCountry = 0) {
this.__radioEntityTypeCountry = [radioEntityTypeCountry];
return this;
}
addRadioEntityTypeCountry(radioEntityTypeCountry = 0) {
if (this.__radioEntityTypeCountry == null) {
this.__radioEntityTypeCountry = [];
}
this.__radioEntityTypeCountry.append(radioEntityTypeCountry);
return this;
}
removeRadioEntityTypeCountry(radioEntityTypeCountry) {
for( let i = 0; i < this.__radioEntityTypeCountry.length; i++) {
if ( this.__radioEntityTypeCountry[i] === radioEntityTypeCountry) {
this.__radioEntityTypeCountry.splice(i, 1);
}
}
return this.__radioEntityTypeCountry;
}
get radioEntityTypeCountry() {
return this.__radioEntityTypeCountry;
}
set radioEntityTypeDomain(radioEntityTypeDomain = 0) {
this.__radioEntityTypeDomain = [radioEntityTypeDomain];
return this;
}
addRadioEntityTypeDomain(radioEntityTypeDomain = 0) {
if (this.__radioEntityTypeDomain == null) {
this.__radioEntityTypeDomain = [];
}
this.__radioEntityTypeDomain.append(radioEntityTypeDomain);
return this;
}
removeRadioEntityTypeDomain(radioEntityTypeDomain) {
for( let i = 0; i < this.__radioEntityTypeDomain.length; i++) {
if ( this.__radioEntityTypeDomain[i] === radioEntityTypeDomain) {
this.__radioEntityTypeDomain.splice(i, 1);
}
}
return this.__radioEntityTypeDomain;
}
get radioEntityTypeDomain() {
return this.__radioEntityTypeDomain;
}
set radioEntityTypeKind(radioEntityTypeKind = 0) {
this.__radioEntityTypeKind = [radioEntityTypeKind];
return this;
}
addRadioEntityTypeKind(radioEntityTypeKind = 0) {
if (this.__radioEntityTypeKind == null) {
this.__radioEntityTypeKind = [];
}
this.__radioEntityTypeKind.append(radioEntityTypeKind);
return this;
}
removeRadioEntityTypeKind(radioEntityTypeKind) {
for( let i = 0; i < this.__radioEntityTypeKind.length; i++) {
if ( this.__radioEntityTypeKind[i] === radioEntityTypeKind) {
this.__radioEntityTypeKind.splice(i, 1);
}
}
return this.__radioEntityTypeKind;
}
get radioEntityTypeKind() {
return this.__radioEntityTypeKind;
}
set radioEntityTypeNomenclature(radioEntityTypeNomenclature = 0) {
this.__radioEntityTypeNomenclature = [radioEntityTypeNomenclature];
return this;
}
addRadioEntityTypeNomenclature(radioEntityTypeNomenclature = 0) {
if (this.__radioEntityTypeNomenclature == null) {
this.__radioEntityTypeNomenclature = [];
}
this.__radioEntityTypeNomenclature.append(radioEntityTypeNomenclature);
return this;
}
removeRadioEntityTypeNomenclature(radioEntityTypeNomenclature) {
for( let i = 0; i < this.__radioEntityTypeNomenclature.length; i++) {
if ( this.__radioEntityTypeNomenclature[i] === radioEntityTypeNomenclature) {
this.__radioEntityTypeNomenclature.splice(i, 1);
}
}
return this.__radioEntityTypeNomenclature;
}
get radioEntityTypeNomenclature() {
return this.__radioEntityTypeNomenclature;
}
set radioEntityTypeNomenclatureVersion(radioEntityTypeNomenclatureVersion = 0) {
this.__radioEntityTypeNomenclatureVersion = [radioEntityTypeNomenclatureVersion];
return this;
}
addRadioEntityTypeNomenclatureVersion(radioEntityTypeNomenclatureVersion = 0) {
if (this.__radioEntityTypeNomenclatureVersion == null) {
this.__radioEntityTypeNomenclatureVersion = [];
}
this.__radioEntityTypeNomenclatureVersion.append(radioEntityTypeNomenclatureVersion);
return this;
}
removeRadioEntityTypeNomenclatureVersion(radioEntityTypeNomenclatureVersion) {
for( let i = 0; i < this.__radioEntityTypeNomenclatureVersion.length; i++) {
if ( this.__radioEntityTypeNomenclatureVersion[i] === radioEntityTypeNomenclatureVersion) {
this.__radioEntityTypeNomenclatureVersion.splice(i, 1);
}
}
return this.__radioEntityTypeNomenclatureVersion;
}
get radioEntityTypeNomenclatureVersion() {
return this.__radioEntityTypeNomenclatureVersion;
}
set radioID(radioID = 0) {
this.__radioID = [radioID];
return this;
}
addRadioID(radioID = 0) {
if (this.__radioID == null) {
this.__radioID = [];
}
this.__radioID.append(radioID);
return this;
}
removeRadioID(radioID) {
for( let i = 0; i < this.__radioID.length; i++) {
if ( this.__radioID[i] === radioID) {
this.__radioID.splice(i, 1);
}
}
return this.__radioID;
}
get radioID() {
return this.__radioID;
}
set readInterval(readInterval = 0.1) {
if (readInterval == null || readInterval < 0) {
return null;
}
this.__readInterval = [readInterval];
return this;
}
addReadInterval(readInterval = 0.1) {
if (readInterval == null || readInterval < 0) {
return null;
}
if (this.__readInterval == null) {
this.__readInterval = [];
}
this.__readInterval.append(readInterval);
return this;
}
removeReadInterval(readInterval) {
for( let i = 0; i < this.__readInterval.length; i++) {
if ( this.__readInterval[i] === readInterval) {
this.__readInterval.splice(i, 1);
}
}
return this.__readInterval;
}
get readInterval() {
return this.__readInterval;
}
set relativeAntennaLocation(relativeAntennaLocation = [0, 0, 0]) {
this.__relativeAntennaLocation = [relativeAntennaLocation];
return this;
}
addRelativeAntennaLocation(relativeAntennaLocation = [0, 0, 0]) {
if (this.__relativeAntennaLocation == null) {
this.__relativeAntennaLocation = [];
}
this.__relativeAntennaLocation.append(relativeAntennaLocation);
return this;
}
removeRelativeAntennaLocation(relativeAntennaLocation) {
for( let i = 0; i < this.__relativeAntennaLocation.length; i++) {
if ( this.__relativeAntennaLocation[i] === relativeAntennaLocation) {
this.__relativeAntennaLocation.splice(i, 1);
}
}
return this.__relativeAntennaLocation;
}
get relativeAntennaLocation() {
return this.__relativeAntennaLocation;
}
set siteID(siteID = 0) {
this.__siteID = [siteID];
return this;
}
addSiteID(siteID = 0) {
if (this.__siteID == null) {
this.__siteID = [];
}
this.__siteID.append(siteID);
return this;
}
removeSiteID(siteID) {
for( let i = 0; i < this.__siteID.length; i++) {
if ( this.__siteID[i] === siteID) {
this.__siteID.splice(i, 1);
}
}
return this.__siteID;
}
get siteID() {
return this.__siteID;
}
removeTimestamp(timestamp) {
for( let i = 0; i < this.__timestamp.length; i++) {
if ( this.__timestamp[i] === timestamp) {
this.__timestamp.splice(i, 1);
}
}
return this.__timestamp;
}
get timestamp() {
return this.__timestamp;
}
set transmitFrequencyBandwidth(transmitFrequencyBandwidth = 0) {
this.__transmitFrequencyBandwidth = [transmitFrequencyBandwidth];
return this;
}
addTransmitFrequencyBandwidth(transmitFrequencyBandwidth = 0) {
if (this.__transmitFrequencyBandwidth == null) {
this.__transmitFrequencyBandwidth = [];
}
this.__transmitFrequencyBandwidth.append(transmitFrequencyBandwidth);
return this;
}
removeTransmitFrequencyBandwidth(transmitFrequencyBandwidth) {
for( let i = 0; i < this.__transmitFrequencyBandwidth.length; i++) {
if ( this.__transmitFrequencyBandwidth[i] === transmitFrequencyBandwidth) {
this.__transmitFrequencyBandwidth.splice(i, 1);
}
}
return this.__transmitFrequencyBandwidth;
}
get transmitFrequencyBandwidth() {
return this.__transmitFrequencyBandwidth;
}
set transmitState(transmitState = 0) {
this.__transmitState = [transmitState];
return this;
}
addTransmitState(transmitState = 0) {
if (this.__transmitState == null) {
this.__transmitState = [];
}
this.__transmitState.append(transmitState);
return this;
}
removeTransmitState(transmitState) {
for( let i = 0; i < this.__transmitState.length; i++) {
if ( this.__transmitState[i] === transmitState) {
this.__transmitState.splice(i, 1);
}
}
return this.__transmitState;
}
get transmitState() {
return this.__transmitState;
}
set visible(visible = true) {
this.__visible = [visible];
return this;
}
addVisible(visible = true) {
if (this.__visible == null) {
this.__visible = [];
}
this.__visible.append(visible);
return this;
}
removeVisible(visible) {
for( let i = 0; i < this.__visible.length; i++) {
if ( this.__visible[i] === visible) {
this.__visible.splice(i, 1);
}
}
return this.__visible;
}
get isVisible() {
return this.__visible;
}
set whichGeometry(whichGeometry = 1) {
this.__whichGeometry = [whichGeometry];
return this;
}
addWhichGeometry(whichGeometry = 1) {
if (this.__whichGeometry == null) {
this.__whichGeometry = [];
}
this.__whichGeometry.append(whichGeometry);
return this;
}
removeWhichGeometry(whichGeometry) {
for( let i = 0; i < this.__whichGeometry.length; i++) {
if ( this.__whichGeometry[i] === whichGeometry) {
this.__whichGeometry.splice(i, 1);
}
}
return this.__whichGeometry;
}
get whichGeometry() {
return this.__whichGeometry;
}
set writeInterval(writeInterval = 1.0) {
if (writeInterval == null || writeInterval < 0) {
return null;
}
this.__writeInterval = [writeInterval];
return this;
}
addWriteInterval(writeInterval = 1.0) {
if (writeInterval == null || writeInterval < 0) {
return null;
}
if (this.__writeInterval == null) {
this.__writeInterval = [];
}
this.__writeInterval.append(writeInterval);
return this;
}
removeWriteInterval(writeInterval) {
for( let i = 0; i < this.__writeInterval.length; i++) {
if ( this.__writeInterval[i] === writeInterval) {
this.__writeInterval.splice(i, 1);
}
}
return this.__writeInterval;
}
get writeInterval() {
return this.__writeInterval;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class TriangleFanSet extends X3DComposedGeometryNode {
constructor(kwargs = {}) {
super(kwargs);
var attrib = kwargs["attrib"] || null;
this.__attrib = attrib;
var ccw = kwargs["ccw"] || true;
this.__ccw = ccw;
var color = kwargs["color"] || null;
this.__color = color;
var colorPerVertex = kwargs["colorPerVertex"] || true;
this.__colorPerVertex = colorPerVertex;
var coord = kwargs["coord"] || null;
this.__coord = coord;
var fanCount = kwargs["fanCount"] || null;
if (fanCount == null || fanCount.length <= 0 || Math.min(fanCount) < 3) {
return null;
}
this.__fanCount = fanCount;
var fogCoord = kwargs["fogCoord"] || null;
this.__fogCoord = fogCoord;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var normal = kwargs["normal"] || null;
this.__normal = normal;
var normalPerVertex = kwargs["normalPerVertex"] || true;
this.__normalPerVertex = normalPerVertex;
var solid = kwargs["solid"] || true;
this.__solid = solid;
var texCoord = kwargs["texCoord"] || null;
this.__texCoord = texCoord;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set attrib(attrib = null) {
this.__attrib = [attrib];
return this;
}
addAttrib(attrib = null) {
if (this.__attrib == null) {
this.__attrib = [];
}
this.__attrib.append(attrib);
return this;
}
removeAttrib(attrib) {
for( let i = 0; i < this.__attrib.length; i++) {
if ( this.__attrib[i] === attrib) {
this.__attrib.splice(i, 1);
}
}
return this.__attrib;
}
get attrib() {
return this.__attrib;
}
set color(color = null) {
this.__color = [color];
return this;
}
addColor(color = null) {
if (this.__color == null) {
this.__color = [];
}
this.__color.append(color);
return this;
}
removeColor(color) {
for( let i = 0; i < this.__color.length; i++) {
if ( this.__color[i] === color) {
this.__color.splice(i, 1);
}
}
return this.__color;
}
get color() {
return this.__color;
}
set coord(coord = null) {
this.__coord = [coord];
return this;
}
addCoord(coord = null) {
if (this.__coord == null) {
this.__coord = [];
}
this.__coord.append(coord);
return this;
}
removeCoord(coord) {
for( let i = 0; i < this.__coord.length; i++) {
if ( this.__coord[i] === coord) {
this.__coord.splice(i, 1);
}
}
return this.__coord;
}
get coord() {
return this.__coord;
}
set fanCount(fanCount = null) {
if (fanCount == null || fanCount.length <= 0 || Math.min(fanCount) < 3) {
return null;
}
this.__fanCount = [fanCount];
return this;
}
addFanCount(fanCount = null) {
if (fanCount == null || fanCount.length <= 0 || Math.min(fanCount) < 3) {
return null;
}
if (this.__fanCount == null) {
this.__fanCount = [];
}
this.__fanCount.append(fanCount);
return this;
}
removeFanCount(fanCount) {
for( let i = 0; i < this.__fanCount.length; i++) {
if ( this.__fanCount[i] === fanCount) {
this.__fanCount.splice(i, 1);
}
}
return this.__fanCount;
}
get fanCount() {
return this.__fanCount;
}
set fogCoord(fogCoord = null) {
this.__fogCoord = [fogCoord];
return this;
}
addFogCoord(fogCoord = null) {
if (this.__fogCoord == null) {
this.__fogCoord = [];
}
this.__fogCoord.append(fogCoord);
return this;
}
removeFogCoord(fogCoord) {
for( let i = 0; i < this.__fogCoord.length; i++) {
if ( this.__fogCoord[i] === fogCoord) {
this.__fogCoord.splice(i, 1);
}
}
return this.__fogCoord;
}
get fogCoord() {
return this.__fogCoord;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set normal(normal = null) {
this.__normal = [normal];
return this;
}
addNormal(normal = null) {
if (this.__normal == null) {
this.__normal = [];
}
this.__normal.append(normal);
return this;
}
removeNormal(normal) {
for( let i = 0; i < this.__normal.length; i++) {
if ( this.__normal[i] === normal) {
this.__normal.splice(i, 1);
}
}
return this.__normal;
}
get normal() {
return this.__normal;
}
set texCoord(texCoord = null) {
this.__texCoord = [texCoord];
return this;
}
addTexCoord(texCoord = null) {
if (this.__texCoord == null) {
this.__texCoord = [];
}
this.__texCoord.append(texCoord);
return this;
}
removeTexCoord(texCoord) {
for( let i = 0; i < this.__texCoord.length; i++) {
if ( this.__texCoord[i] === texCoord) {
this.__texCoord.splice(i, 1);
}
}
return this.__texCoord;
}
get texCoord() {
return this.__texCoord;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__attrib === null) {
} else if (typeof this.__attrib.toXMLNode === 'function') {
str += this.__attrib.toXMLNode('attrib');
} else if (typeof this.__attrib === 'string') {
str += ' attrib="'+this.__attrib+'"';
} else if (Array.isArray( this.__attrib)) {
if (typeof this.__attrib[0].toXMLNode !== 'function') {
str += ' attrib="'+this.__attrib.join(' ')+'"';
} else {
for (let i in this.__attrib) {
if (typeof this.__attrib[i].toXMLNode === 'function') {
str += this.__attrib[i].toXMLNode('attrib');
}
}
}
} else {
str += ' attrib="'+this.__attrib+'"';
}
if (this.__color === null) {
} else if (typeof this.__color.toXMLNode === 'function') {
str += this.__color.toXMLNode('color');
} else if (typeof this.__color === 'string') {
str += ' color="'+this.__color+'"';
} else if (Array.isArray( this.__color)) {
if (typeof this.__color[0].toXMLNode !== 'function') {
str += ' color="'+this.__color.join(' ')+'"';
} else {
for (let i in this.__color) {
if (typeof this.__color[i].toXMLNode === 'function') {
str += this.__color[i].toXMLNode('color');
}
}
}
} else {
str += ' color="'+this.__color+'"';
}
if (this.__coord === null) {
} else if (typeof this.__coord.toXMLNode === 'function') {
str += this.__coord.toXMLNode('coord');
} else if (typeof this.__coord === 'string') {
str += ' coord="'+this.__coord+'"';
} else if (Array.isArray( this.__coord)) {
if (typeof this.__coord[0].toXMLNode !== 'function') {
str += ' coord="'+this.__coord.join(' ')+'"';
} else {
for (let i in this.__coord) {
if (typeof this.__coord[i].toXMLNode === 'function') {
str += this.__coord[i].toXMLNode('coord');
}
}
}
} else {
str += ' coord="'+this.__coord+'"';
}
if (this.__fogCoord === null) {
} else if (typeof this.__fogCoord.toXMLNode === 'function') {
str += this.__fogCoord.toXMLNode('fogCoord');
} else if (typeof this.__fogCoord === 'string') {
str += ' fogCoord="'+this.__fogCoord+'"';
} else if (Array.isArray( this.__fogCoord)) {
if (typeof this.__fogCoord[0].toXMLNode !== 'function') {
str += ' fogCoord="'+this.__fogCoord.join(' ')+'"';
} else {
for (let i in this.__fogCoord) {
if (typeof this.__fogCoord[i].toXMLNode === 'function') {
str += this.__fogCoord[i].toXMLNode('fogCoord');
}
}
}
} else {
str += ' fogCoord="'+this.__fogCoord+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__normal === null) {
} else if (typeof this.__normal.toXMLNode === 'function') {
str += this.__normal.toXMLNode('normal');
} else if (typeof this.__normal === 'string') {
str += ' normal="'+this.__normal+'"';
} else if (Array.isArray( this.__normal)) {
if (typeof this.__normal[0].toXMLNode !== 'function') {
str += ' normal="'+this.__normal.join(' ')+'"';
} else {
for (let i in this.__normal) {
if (typeof this.__normal[i].toXMLNode === 'function') {
str += this.__normal[i].toXMLNode('normal');
}
}
}
} else {
str += ' normal="'+this.__normal+'"';
}
if (this.__texCoord === null) {
} else if (typeof this.__texCoord.toXMLNode === 'function') {
str += this.__texCoord.toXMLNode('texCoord');
} else if (typeof this.__texCoord === 'string') {
str += ' texCoord="'+this.__texCoord+'"';
} else if (Array.isArray( this.__texCoord)) {
if (typeof this.__texCoord[0].toXMLNode !== 'function') {
str += ' texCoord="'+this.__texCoord.join(' ')+'"';
} else {
for (let i in this.__texCoord) {
if (typeof this.__texCoord[i].toXMLNode === 'function') {
str += this.__texCoord[i].toXMLNode('texCoord');
}
}
}
} else {
str += ' texCoord="'+this.__texCoord+'"';
}
str += ''
return str;
}
}
export class TriangleSet extends X3DComposedGeometryNode {
constructor(kwargs = {}) {
super(kwargs);
var attrib = kwargs["attrib"] || null;
this.__attrib = attrib;
var ccw = kwargs["ccw"] || true;
this.__ccw = ccw;
var color = kwargs["color"] || null;
this.__color = color;
var colorPerVertex = kwargs["colorPerVertex"] || true;
this.__colorPerVertex = colorPerVertex;
var coord = kwargs["coord"] || null;
this.__coord = coord;
var fogCoord = kwargs["fogCoord"] || null;
this.__fogCoord = fogCoord;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var normal = kwargs["normal"] || null;
this.__normal = normal;
var normalPerVertex = kwargs["normalPerVertex"] || true;
this.__normalPerVertex = normalPerVertex;
var solid = kwargs["solid"] || true;
this.__solid = solid;
var texCoord = kwargs["texCoord"] || null;
this.__texCoord = texCoord;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set attrib(attrib = null) {
this.__attrib = [attrib];
return this;
}
addAttrib(attrib = null) {
if (this.__attrib == null) {
this.__attrib = [];
}
this.__attrib.append(attrib);
return this;
}
removeAttrib(attrib) {
for( let i = 0; i < this.__attrib.length; i++) {
if ( this.__attrib[i] === attrib) {
this.__attrib.splice(i, 1);
}
}
return this.__attrib;
}
get attrib() {
return this.__attrib;
}
set color(color = null) {
this.__color = [color];
return this;
}
addColor(color = null) {
if (this.__color == null) {
this.__color = [];
}
this.__color.append(color);
return this;
}
removeColor(color) {
for( let i = 0; i < this.__color.length; i++) {
if ( this.__color[i] === color) {
this.__color.splice(i, 1);
}
}
return this.__color;
}
get color() {
return this.__color;
}
set coord(coord = null) {
this.__coord = [coord];
return this;
}
addCoord(coord = null) {
if (this.__coord == null) {
this.__coord = [];
}
this.__coord.append(coord);
return this;
}
removeCoord(coord) {
for( let i = 0; i < this.__coord.length; i++) {
if ( this.__coord[i] === coord) {
this.__coord.splice(i, 1);
}
}
return this.__coord;
}
get coord() {
return this.__coord;
}
set fogCoord(fogCoord = null) {
this.__fogCoord = [fogCoord];
return this;
}
addFogCoord(fogCoord = null) {
if (this.__fogCoord == null) {
this.__fogCoord = [];
}
this.__fogCoord.append(fogCoord);
return this;
}
removeFogCoord(fogCoord) {
for( let i = 0; i < this.__fogCoord.length; i++) {
if ( this.__fogCoord[i] === fogCoord) {
this.__fogCoord.splice(i, 1);
}
}
return this.__fogCoord;
}
get fogCoord() {
return this.__fogCoord;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set normal(normal = null) {
this.__normal = [normal];
return this;
}
addNormal(normal = null) {
if (this.__normal == null) {
this.__normal = [];
}
this.__normal.append(normal);
return this;
}
removeNormal(normal) {
for( let i = 0; i < this.__normal.length; i++) {
if ( this.__normal[i] === normal) {
this.__normal.splice(i, 1);
}
}
return this.__normal;
}
get normal() {
return this.__normal;
}
set texCoord(texCoord = null) {
this.__texCoord = [texCoord];
return this;
}
addTexCoord(texCoord = null) {
if (this.__texCoord == null) {
this.__texCoord = [];
}
this.__texCoord.append(texCoord);
return this;
}
removeTexCoord(texCoord) {
for( let i = 0; i < this.__texCoord.length; i++) {
if ( this.__texCoord[i] === texCoord) {
this.__texCoord.splice(i, 1);
}
}
return this.__texCoord;
}
get texCoord() {
return this.__texCoord;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__attrib === null) {
} else if (typeof this.__attrib.toXMLNode === 'function') {
str += this.__attrib.toXMLNode('attrib');
} else if (typeof this.__attrib === 'string') {
str += ' attrib="'+this.__attrib+'"';
} else if (Array.isArray( this.__attrib)) {
if (typeof this.__attrib[0].toXMLNode !== 'function') {
str += ' attrib="'+this.__attrib.join(' ')+'"';
} else {
for (let i in this.__attrib) {
if (typeof this.__attrib[i].toXMLNode === 'function') {
str += this.__attrib[i].toXMLNode('attrib');
}
}
}
} else {
str += ' attrib="'+this.__attrib+'"';
}
if (this.__color === null) {
} else if (typeof this.__color.toXMLNode === 'function') {
str += this.__color.toXMLNode('color');
} else if (typeof this.__color === 'string') {
str += ' color="'+this.__color+'"';
} else if (Array.isArray( this.__color)) {
if (typeof this.__color[0].toXMLNode !== 'function') {
str += ' color="'+this.__color.join(' ')+'"';
} else {
for (let i in this.__color) {
if (typeof this.__color[i].toXMLNode === 'function') {
str += this.__color[i].toXMLNode('color');
}
}
}
} else {
str += ' color="'+this.__color+'"';
}
if (this.__coord === null) {
} else if (typeof this.__coord.toXMLNode === 'function') {
str += this.__coord.toXMLNode('coord');
} else if (typeof this.__coord === 'string') {
str += ' coord="'+this.__coord+'"';
} else if (Array.isArray( this.__coord)) {
if (typeof this.__coord[0].toXMLNode !== 'function') {
str += ' coord="'+this.__coord.join(' ')+'"';
} else {
for (let i in this.__coord) {
if (typeof this.__coord[i].toXMLNode === 'function') {
str += this.__coord[i].toXMLNode('coord');
}
}
}
} else {
str += ' coord="'+this.__coord+'"';
}
if (this.__fogCoord === null) {
} else if (typeof this.__fogCoord.toXMLNode === 'function') {
str += this.__fogCoord.toXMLNode('fogCoord');
} else if (typeof this.__fogCoord === 'string') {
str += ' fogCoord="'+this.__fogCoord+'"';
} else if (Array.isArray( this.__fogCoord)) {
if (typeof this.__fogCoord[0].toXMLNode !== 'function') {
str += ' fogCoord="'+this.__fogCoord.join(' ')+'"';
} else {
for (let i in this.__fogCoord) {
if (typeof this.__fogCoord[i].toXMLNode === 'function') {
str += this.__fogCoord[i].toXMLNode('fogCoord');
}
}
}
} else {
str += ' fogCoord="'+this.__fogCoord+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__normal === null) {
} else if (typeof this.__normal.toXMLNode === 'function') {
str += this.__normal.toXMLNode('normal');
} else if (typeof this.__normal === 'string') {
str += ' normal="'+this.__normal+'"';
} else if (Array.isArray( this.__normal)) {
if (typeof this.__normal[0].toXMLNode !== 'function') {
str += ' normal="'+this.__normal.join(' ')+'"';
} else {
for (let i in this.__normal) {
if (typeof this.__normal[i].toXMLNode === 'function') {
str += this.__normal[i].toXMLNode('normal');
}
}
}
} else {
str += ' normal="'+this.__normal+'"';
}
if (this.__texCoord === null) {
} else if (typeof this.__texCoord.toXMLNode === 'function') {
str += this.__texCoord.toXMLNode('texCoord');
} else if (typeof this.__texCoord === 'string') {
str += ' texCoord="'+this.__texCoord+'"';
} else if (Array.isArray( this.__texCoord)) {
if (typeof this.__texCoord[0].toXMLNode !== 'function') {
str += ' texCoord="'+this.__texCoord.join(' ')+'"';
} else {
for (let i in this.__texCoord) {
if (typeof this.__texCoord[i].toXMLNode === 'function') {
str += this.__texCoord[i].toXMLNode('texCoord');
}
}
}
} else {
str += ' texCoord="'+this.__texCoord+'"';
}
str += ''
return str;
}
}
export class TriangleSet2D extends X3DGeometryNode {
constructor(kwargs = {}) {
super(kwargs);
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var solid = kwargs["solid"] || false;
this.__solid = solid;
var vertices = kwargs["vertices"] || null;
this.__vertices = vertices;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set vertices(vertices = null) {
this.__vertices = [vertices];
return this;
}
addVertices(vertices = null) {
if (this.__vertices == null) {
this.__vertices = [];
}
this.__vertices.append(vertices);
return this;
}
removeVertices(vertices) {
for( let i = 0; i < this.__vertices.length; i++) {
if ( this.__vertices[i] === vertices) {
this.__vertices.splice(i, 1);
}
}
return this.__vertices;
}
get vertices() {
return this.__vertices;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class TriangleStripSet extends X3DComposedGeometryNode {
constructor(kwargs = {}) {
super(kwargs);
var attrib = kwargs["attrib"] || null;
this.__attrib = attrib;
var ccw = kwargs["ccw"] || true;
this.__ccw = ccw;
var color = kwargs["color"] || null;
this.__color = color;
var colorPerVertex = kwargs["colorPerVertex"] || true;
this.__colorPerVertex = colorPerVertex;
var coord = kwargs["coord"] || null;
this.__coord = coord;
var fogCoord = kwargs["fogCoord"] || null;
this.__fogCoord = fogCoord;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var normal = kwargs["normal"] || null;
this.__normal = normal;
var normalPerVertex = kwargs["normalPerVertex"] || true;
this.__normalPerVertex = normalPerVertex;
var solid = kwargs["solid"] || true;
this.__solid = solid;
var stripCount = kwargs["stripCount"] || null;
if (stripCount == null || stripCount.length <= 0 || Math.min(stripCount) < 3) {
return null;
}
this.__stripCount = stripCount;
var texCoord = kwargs["texCoord"] || null;
this.__texCoord = texCoord;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set attrib(attrib = null) {
this.__attrib = [attrib];
return this;
}
addAttrib(attrib = null) {
if (this.__attrib == null) {
this.__attrib = [];
}
this.__attrib.append(attrib);
return this;
}
removeAttrib(attrib) {
for( let i = 0; i < this.__attrib.length; i++) {
if ( this.__attrib[i] === attrib) {
this.__attrib.splice(i, 1);
}
}
return this.__attrib;
}
get attrib() {
return this.__attrib;
}
set color(color = null) {
this.__color = [color];
return this;
}
addColor(color = null) {
if (this.__color == null) {
this.__color = [];
}
this.__color.append(color);
return this;
}
removeColor(color) {
for( let i = 0; i < this.__color.length; i++) {
if ( this.__color[i] === color) {
this.__color.splice(i, 1);
}
}
return this.__color;
}
get color() {
return this.__color;
}
set coord(coord = null) {
this.__coord = [coord];
return this;
}
addCoord(coord = null) {
if (this.__coord == null) {
this.__coord = [];
}
this.__coord.append(coord);
return this;
}
removeCoord(coord) {
for( let i = 0; i < this.__coord.length; i++) {
if ( this.__coord[i] === coord) {
this.__coord.splice(i, 1);
}
}
return this.__coord;
}
get coord() {
return this.__coord;
}
set fogCoord(fogCoord = null) {
this.__fogCoord = [fogCoord];
return this;
}
addFogCoord(fogCoord = null) {
if (this.__fogCoord == null) {
this.__fogCoord = [];
}
this.__fogCoord.append(fogCoord);
return this;
}
removeFogCoord(fogCoord) {
for( let i = 0; i < this.__fogCoord.length; i++) {
if ( this.__fogCoord[i] === fogCoord) {
this.__fogCoord.splice(i, 1);
}
}
return this.__fogCoord;
}
get fogCoord() {
return this.__fogCoord;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set normal(normal = null) {
this.__normal = [normal];
return this;
}
addNormal(normal = null) {
if (this.__normal == null) {
this.__normal = [];
}
this.__normal.append(normal);
return this;
}
removeNormal(normal) {
for( let i = 0; i < this.__normal.length; i++) {
if ( this.__normal[i] === normal) {
this.__normal.splice(i, 1);
}
}
return this.__normal;
}
get normal() {
return this.__normal;
}
set stripCount(stripCount = null) {
if (stripCount == null || stripCount.length <= 0 || Math.min(stripCount) < 3) {
return null;
}
this.__stripCount = [stripCount];
return this;
}
addStripCount(stripCount = null) {
if (stripCount == null || stripCount.length <= 0 || Math.min(stripCount) < 3) {
return null;
}
if (this.__stripCount == null) {
this.__stripCount = [];
}
this.__stripCount.append(stripCount);
return this;
}
removeStripCount(stripCount) {
for( let i = 0; i < this.__stripCount.length; i++) {
if ( this.__stripCount[i] === stripCount) {
this.__stripCount.splice(i, 1);
}
}
return this.__stripCount;
}
get stripCount() {
return this.__stripCount;
}
set texCoord(texCoord = null) {
this.__texCoord = [texCoord];
return this;
}
addTexCoord(texCoord = null) {
if (this.__texCoord == null) {
this.__texCoord = [];
}
this.__texCoord.append(texCoord);
return this;
}
removeTexCoord(texCoord) {
for( let i = 0; i < this.__texCoord.length; i++) {
if ( this.__texCoord[i] === texCoord) {
this.__texCoord.splice(i, 1);
}
}
return this.__texCoord;
}
get texCoord() {
return this.__texCoord;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__attrib === null) {
} else if (typeof this.__attrib.toXMLNode === 'function') {
str += this.__attrib.toXMLNode('attrib');
} else if (typeof this.__attrib === 'string') {
str += ' attrib="'+this.__attrib+'"';
} else if (Array.isArray( this.__attrib)) {
if (typeof this.__attrib[0].toXMLNode !== 'function') {
str += ' attrib="'+this.__attrib.join(' ')+'"';
} else {
for (let i in this.__attrib) {
if (typeof this.__attrib[i].toXMLNode === 'function') {
str += this.__attrib[i].toXMLNode('attrib');
}
}
}
} else {
str += ' attrib="'+this.__attrib+'"';
}
if (this.__color === null) {
} else if (typeof this.__color.toXMLNode === 'function') {
str += this.__color.toXMLNode('color');
} else if (typeof this.__color === 'string') {
str += ' color="'+this.__color+'"';
} else if (Array.isArray( this.__color)) {
if (typeof this.__color[0].toXMLNode !== 'function') {
str += ' color="'+this.__color.join(' ')+'"';
} else {
for (let i in this.__color) {
if (typeof this.__color[i].toXMLNode === 'function') {
str += this.__color[i].toXMLNode('color');
}
}
}
} else {
str += ' color="'+this.__color+'"';
}
if (this.__coord === null) {
} else if (typeof this.__coord.toXMLNode === 'function') {
str += this.__coord.toXMLNode('coord');
} else if (typeof this.__coord === 'string') {
str += ' coord="'+this.__coord+'"';
} else if (Array.isArray( this.__coord)) {
if (typeof this.__coord[0].toXMLNode !== 'function') {
str += ' coord="'+this.__coord.join(' ')+'"';
} else {
for (let i in this.__coord) {
if (typeof this.__coord[i].toXMLNode === 'function') {
str += this.__coord[i].toXMLNode('coord');
}
}
}
} else {
str += ' coord="'+this.__coord+'"';
}
if (this.__fogCoord === null) {
} else if (typeof this.__fogCoord.toXMLNode === 'function') {
str += this.__fogCoord.toXMLNode('fogCoord');
} else if (typeof this.__fogCoord === 'string') {
str += ' fogCoord="'+this.__fogCoord+'"';
} else if (Array.isArray( this.__fogCoord)) {
if (typeof this.__fogCoord[0].toXMLNode !== 'function') {
str += ' fogCoord="'+this.__fogCoord.join(' ')+'"';
} else {
for (let i in this.__fogCoord) {
if (typeof this.__fogCoord[i].toXMLNode === 'function') {
str += this.__fogCoord[i].toXMLNode('fogCoord');
}
}
}
} else {
str += ' fogCoord="'+this.__fogCoord+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__normal === null) {
} else if (typeof this.__normal.toXMLNode === 'function') {
str += this.__normal.toXMLNode('normal');
} else if (typeof this.__normal === 'string') {
str += ' normal="'+this.__normal+'"';
} else if (Array.isArray( this.__normal)) {
if (typeof this.__normal[0].toXMLNode !== 'function') {
str += ' normal="'+this.__normal.join(' ')+'"';
} else {
for (let i in this.__normal) {
if (typeof this.__normal[i].toXMLNode === 'function') {
str += this.__normal[i].toXMLNode('normal');
}
}
}
} else {
str += ' normal="'+this.__normal+'"';
}
if (this.__texCoord === null) {
} else if (typeof this.__texCoord.toXMLNode === 'function') {
str += this.__texCoord.toXMLNode('texCoord');
} else if (typeof this.__texCoord === 'string') {
str += ' texCoord="'+this.__texCoord+'"';
} else if (Array.isArray( this.__texCoord)) {
if (typeof this.__texCoord[0].toXMLNode !== 'function') {
str += ' texCoord="'+this.__texCoord.join(' ')+'"';
} else {
for (let i in this.__texCoord) {
if (typeof this.__texCoord[i].toXMLNode === 'function') {
str += this.__texCoord[i].toXMLNode('texCoord');
}
}
}
} else {
str += ' texCoord="'+this.__texCoord+'"';
}
str += ''
return str;
}
}
export class TwoSidedMaterial extends X3DMaterialNode {
constructor(kwargs = {}) {
super(kwargs);
var ambientIntensity = kwargs["ambientIntensity"] || 0.2;
if (ambientIntensity == null || ambientIntensity < 0) {
return null;
}
if (ambientIntensity == null || ambientIntensity > 1) {
return null;
}
this.__ambientIntensity = ambientIntensity;
var backAmbientIntensity = kwargs["backAmbientIntensity"] || 0.2;
if (backAmbientIntensity == null || backAmbientIntensity < 0) {
return null;
}
if (backAmbientIntensity == null || backAmbientIntensity > 1) {
return null;
}
this.__backAmbientIntensity = backAmbientIntensity;
var backDiffuseColor = kwargs["backDiffuseColor"] || [0.8, 0.8, 0.8];
if (backDiffuseColor == null || backDiffuseColor.length <= 0 || Math.min(backDiffuseColor) < 0) {
return null;
}
if (backDiffuseColor == null || backDiffuseColor.length <= 0 || Math.max(backDiffuseColor) > 1) {
return null;
}
this.__backDiffuseColor = backDiffuseColor;
var backEmissiveColor = kwargs["backEmissiveColor"] || [0, 0, 0];
if (backEmissiveColor == null || backEmissiveColor.length <= 0 || Math.min(backEmissiveColor) < 0) {
return null;
}
if (backEmissiveColor == null || backEmissiveColor.length <= 0 || Math.max(backEmissiveColor) > 1) {
return null;
}
this.__backEmissiveColor = backEmissiveColor;
var backShininess = kwargs["backShininess"] || 0.2;
if (backShininess == null || backShininess < 0) {
return null;
}
if (backShininess == null || backShininess > 1) {
return null;
}
this.__backShininess = backShininess;
var backSpecularColor = kwargs["backSpecularColor"] || [0, 0, 0];
if (backSpecularColor == null || backSpecularColor.length <= 0 || Math.min(backSpecularColor) < 0) {
return null;
}
if (backSpecularColor == null || backSpecularColor.length <= 0 || Math.max(backSpecularColor) > 1) {
return null;
}
this.__backSpecularColor = backSpecularColor;
var backTransparency = kwargs["backTransparency"] || 0;
if (backTransparency == null || backTransparency < 0) {
return null;
}
if (backTransparency == null || backTransparency > 1) {
return null;
}
this.__backTransparency = backTransparency;
var diffuseColor = kwargs["diffuseColor"] || [0.8, 0.8, 0.8];
if (diffuseColor == null || diffuseColor.length <= 0 || Math.min(diffuseColor) < 0) {
return null;
}
if (diffuseColor == null || diffuseColor.length <= 0 || Math.max(diffuseColor) > 1) {
return null;
}
this.__diffuseColor = diffuseColor;
var emissiveColor = kwargs["emissiveColor"] || [0, 0, 0];
if (emissiveColor == null || emissiveColor.length <= 0 || Math.min(emissiveColor) < 0) {
return null;
}
if (emissiveColor == null || emissiveColor.length <= 0 || Math.max(emissiveColor) > 1) {
return null;
}
this.__emissiveColor = emissiveColor;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var separateBackColor = kwargs["separateBackColor"] || false;
this.__separateBackColor = separateBackColor;
var shininess = kwargs["shininess"] || 0.2;
if (shininess == null || shininess < 0) {
return null;
}
if (shininess == null || shininess > 1) {
return null;
}
this.__shininess = shininess;
var specularColor = kwargs["specularColor"] || [0, 0, 0];
if (specularColor == null || specularColor.length <= 0 || Math.min(specularColor) < 0) {
return null;
}
if (specularColor == null || specularColor.length <= 0 || Math.max(specularColor) > 1) {
return null;
}
this.__specularColor = specularColor;
var transparency = kwargs["transparency"] || 0;
if (transparency == null || transparency < 0) {
return null;
}
if (transparency == null || transparency > 1) {
return null;
}
this.__transparency = transparency;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set ambientIntensity(ambientIntensity = 0.2) {
if (ambientIntensity == null || ambientIntensity < 0) {
return null;
}
if (ambientIntensity == null || ambientIntensity > 1) {
return null;
}
this.__ambientIntensity = [ambientIntensity];
return this;
}
addAmbientIntensity(ambientIntensity = 0.2) {
if (ambientIntensity == null || ambientIntensity < 0) {
return null;
}
if (ambientIntensity == null || ambientIntensity > 1) {
return null;
}
if (this.__ambientIntensity == null) {
this.__ambientIntensity = [];
}
this.__ambientIntensity.append(ambientIntensity);
return this;
}
removeAmbientIntensity(ambientIntensity) {
for( let i = 0; i < this.__ambientIntensity.length; i++) {
if ( this.__ambientIntensity[i] === ambientIntensity) {
this.__ambientIntensity.splice(i, 1);
}
}
return this.__ambientIntensity;
}
get ambientIntensity() {
return this.__ambientIntensity;
}
set backAmbientIntensity(backAmbientIntensity = 0.2) {
if (backAmbientIntensity == null || backAmbientIntensity < 0) {
return null;
}
if (backAmbientIntensity == null || backAmbientIntensity > 1) {
return null;
}
this.__backAmbientIntensity = [backAmbientIntensity];
return this;
}
addBackAmbientIntensity(backAmbientIntensity = 0.2) {
if (backAmbientIntensity == null || backAmbientIntensity < 0) {
return null;
}
if (backAmbientIntensity == null || backAmbientIntensity > 1) {
return null;
}
if (this.__backAmbientIntensity == null) {
this.__backAmbientIntensity = [];
}
this.__backAmbientIntensity.append(backAmbientIntensity);
return this;
}
removeBackAmbientIntensity(backAmbientIntensity) {
for( let i = 0; i < this.__backAmbientIntensity.length; i++) {
if ( this.__backAmbientIntensity[i] === backAmbientIntensity) {
this.__backAmbientIntensity.splice(i, 1);
}
}
return this.__backAmbientIntensity;
}
get backAmbientIntensity() {
return this.__backAmbientIntensity;
}
set backDiffuseColor(backDiffuseColor = [0.8, 0.8, 0.8]) {
if (backDiffuseColor == null || backDiffuseColor.length <= 0 || Math.min(backDiffuseColor) < 0) {
return null;
}
if (backDiffuseColor == null || backDiffuseColor.length <= 0 || Math.max(backDiffuseColor) > 1) {
return null;
}
this.__backDiffuseColor = [backDiffuseColor];
return this;
}
addBackDiffuseColor(backDiffuseColor = [0.8, 0.8, 0.8]) {
if (backDiffuseColor == null || backDiffuseColor.length <= 0 || Math.min(backDiffuseColor) < 0) {
return null;
}
if (backDiffuseColor == null || backDiffuseColor.length <= 0 || Math.max(backDiffuseColor) > 1) {
return null;
}
if (this.__backDiffuseColor == null) {
this.__backDiffuseColor = [];
}
this.__backDiffuseColor.append(backDiffuseColor);
return this;
}
removeBackDiffuseColor(backDiffuseColor) {
for( let i = 0; i < this.__backDiffuseColor.length; i++) {
if ( this.__backDiffuseColor[i] === backDiffuseColor) {
this.__backDiffuseColor.splice(i, 1);
}
}
return this.__backDiffuseColor;
}
get backDiffuseColor() {
return this.__backDiffuseColor;
}
set backEmissiveColor(backEmissiveColor = [0, 0, 0]) {
if (backEmissiveColor == null || backEmissiveColor.length <= 0 || Math.min(backEmissiveColor) < 0) {
return null;
}
if (backEmissiveColor == null || backEmissiveColor.length <= 0 || Math.max(backEmissiveColor) > 1) {
return null;
}
this.__backEmissiveColor = [backEmissiveColor];
return this;
}
addBackEmissiveColor(backEmissiveColor = [0, 0, 0]) {
if (backEmissiveColor == null || backEmissiveColor.length <= 0 || Math.min(backEmissiveColor) < 0) {
return null;
}
if (backEmissiveColor == null || backEmissiveColor.length <= 0 || Math.max(backEmissiveColor) > 1) {
return null;
}
if (this.__backEmissiveColor == null) {
this.__backEmissiveColor = [];
}
this.__backEmissiveColor.append(backEmissiveColor);
return this;
}
removeBackEmissiveColor(backEmissiveColor) {
for( let i = 0; i < this.__backEmissiveColor.length; i++) {
if ( this.__backEmissiveColor[i] === backEmissiveColor) {
this.__backEmissiveColor.splice(i, 1);
}
}
return this.__backEmissiveColor;
}
get backEmissiveColor() {
return this.__backEmissiveColor;
}
set backShininess(backShininess = 0.2) {
if (backShininess == null || backShininess < 0) {
return null;
}
if (backShininess == null || backShininess > 1) {
return null;
}
this.__backShininess = [backShininess];
return this;
}
addBackShininess(backShininess = 0.2) {
if (backShininess == null || backShininess < 0) {
return null;
}
if (backShininess == null || backShininess > 1) {
return null;
}
if (this.__backShininess == null) {
this.__backShininess = [];
}
this.__backShininess.append(backShininess);
return this;
}
removeBackShininess(backShininess) {
for( let i = 0; i < this.__backShininess.length; i++) {
if ( this.__backShininess[i] === backShininess) {
this.__backShininess.splice(i, 1);
}
}
return this.__backShininess;
}
get backShininess() {
return this.__backShininess;
}
set backSpecularColor(backSpecularColor = [0, 0, 0]) {
if (backSpecularColor == null || backSpecularColor.length <= 0 || Math.min(backSpecularColor) < 0) {
return null;
}
if (backSpecularColor == null || backSpecularColor.length <= 0 || Math.max(backSpecularColor) > 1) {
return null;
}
this.__backSpecularColor = [backSpecularColor];
return this;
}
addBackSpecularColor(backSpecularColor = [0, 0, 0]) {
if (backSpecularColor == null || backSpecularColor.length <= 0 || Math.min(backSpecularColor) < 0) {
return null;
}
if (backSpecularColor == null || backSpecularColor.length <= 0 || Math.max(backSpecularColor) > 1) {
return null;
}
if (this.__backSpecularColor == null) {
this.__backSpecularColor = [];
}
this.__backSpecularColor.append(backSpecularColor);
return this;
}
removeBackSpecularColor(backSpecularColor) {
for( let i = 0; i < this.__backSpecularColor.length; i++) {
if ( this.__backSpecularColor[i] === backSpecularColor) {
this.__backSpecularColor.splice(i, 1);
}
}
return this.__backSpecularColor;
}
get backSpecularColor() {
return this.__backSpecularColor;
}
set backTransparency(backTransparency = 0) {
if (backTransparency == null || backTransparency < 0) {
return null;
}
if (backTransparency == null || backTransparency > 1) {
return null;
}
this.__backTransparency = [backTransparency];
return this;
}
addBackTransparency(backTransparency = 0) {
if (backTransparency == null || backTransparency < 0) {
return null;
}
if (backTransparency == null || backTransparency > 1) {
return null;
}
if (this.__backTransparency == null) {
this.__backTransparency = [];
}
this.__backTransparency.append(backTransparency);
return this;
}
removeBackTransparency(backTransparency) {
for( let i = 0; i < this.__backTransparency.length; i++) {
if ( this.__backTransparency[i] === backTransparency) {
this.__backTransparency.splice(i, 1);
}
}
return this.__backTransparency;
}
get backTransparency() {
return this.__backTransparency;
}
set diffuseColor(diffuseColor = [0.8, 0.8, 0.8]) {
if (diffuseColor == null || diffuseColor.length <= 0 || Math.min(diffuseColor) < 0) {
return null;
}
if (diffuseColor == null || diffuseColor.length <= 0 || Math.max(diffuseColor) > 1) {
return null;
}
this.__diffuseColor = [diffuseColor];
return this;
}
addDiffuseColor(diffuseColor = [0.8, 0.8, 0.8]) {
if (diffuseColor == null || diffuseColor.length <= 0 || Math.min(diffuseColor) < 0) {
return null;
}
if (diffuseColor == null || diffuseColor.length <= 0 || Math.max(diffuseColor) > 1) {
return null;
}
if (this.__diffuseColor == null) {
this.__diffuseColor = [];
}
this.__diffuseColor.append(diffuseColor);
return this;
}
removeDiffuseColor(diffuseColor) {
for( let i = 0; i < this.__diffuseColor.length; i++) {
if ( this.__diffuseColor[i] === diffuseColor) {
this.__diffuseColor.splice(i, 1);
}
}
return this.__diffuseColor;
}
get diffuseColor() {
return this.__diffuseColor;
}
set emissiveColor(emissiveColor = [0, 0, 0]) {
if (emissiveColor == null || emissiveColor.length <= 0 || Math.min(emissiveColor) < 0) {
return null;
}
if (emissiveColor == null || emissiveColor.length <= 0 || Math.max(emissiveColor) > 1) {
return null;
}
this.__emissiveColor = [emissiveColor];
return this;
}
addEmissiveColor(emissiveColor = [0, 0, 0]) {
if (emissiveColor == null || emissiveColor.length <= 0 || Math.min(emissiveColor) < 0) {
return null;
}
if (emissiveColor == null || emissiveColor.length <= 0 || Math.max(emissiveColor) > 1) {
return null;
}
if (this.__emissiveColor == null) {
this.__emissiveColor = [];
}
this.__emissiveColor.append(emissiveColor);
return this;
}
removeEmissiveColor(emissiveColor) {
for( let i = 0; i < this.__emissiveColor.length; i++) {
if ( this.__emissiveColor[i] === emissiveColor) {
this.__emissiveColor.splice(i, 1);
}
}
return this.__emissiveColor;
}
get emissiveColor() {
return this.__emissiveColor;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set separateBackColor(separateBackColor = false) {
this.__separateBackColor = [separateBackColor];
return this;
}
addSeparateBackColor(separateBackColor = false) {
if (this.__separateBackColor == null) {
this.__separateBackColor = [];
}
this.__separateBackColor.append(separateBackColor);
return this;
}
removeSeparateBackColor(separateBackColor) {
for( let i = 0; i < this.__separateBackColor.length; i++) {
if ( this.__separateBackColor[i] === separateBackColor) {
this.__separateBackColor.splice(i, 1);
}
}
return this.__separateBackColor;
}
get isSeparateBackColor() {
return this.__separateBackColor;
}
set shininess(shininess = 0.2) {
if (shininess == null || shininess < 0) {
return null;
}
if (shininess == null || shininess > 1) {
return null;
}
this.__shininess = [shininess];
return this;
}
addShininess(shininess = 0.2) {
if (shininess == null || shininess < 0) {
return null;
}
if (shininess == null || shininess > 1) {
return null;
}
if (this.__shininess == null) {
this.__shininess = [];
}
this.__shininess.append(shininess);
return this;
}
removeShininess(shininess) {
for( let i = 0; i < this.__shininess.length; i++) {
if ( this.__shininess[i] === shininess) {
this.__shininess.splice(i, 1);
}
}
return this.__shininess;
}
get shininess() {
return this.__shininess;
}
set specularColor(specularColor = [0, 0, 0]) {
if (specularColor == null || specularColor.length <= 0 || Math.min(specularColor) < 0) {
return null;
}
if (specularColor == null || specularColor.length <= 0 || Math.max(specularColor) > 1) {
return null;
}
this.__specularColor = [specularColor];
return this;
}
addSpecularColor(specularColor = [0, 0, 0]) {
if (specularColor == null || specularColor.length <= 0 || Math.min(specularColor) < 0) {
return null;
}
if (specularColor == null || specularColor.length <= 0 || Math.max(specularColor) > 1) {
return null;
}
if (this.__specularColor == null) {
this.__specularColor = [];
}
this.__specularColor.append(specularColor);
return this;
}
removeSpecularColor(specularColor) {
for( let i = 0; i < this.__specularColor.length; i++) {
if ( this.__specularColor[i] === specularColor) {
this.__specularColor.splice(i, 1);
}
}
return this.__specularColor;
}
get specularColor() {
return this.__specularColor;
}
set transparency(transparency = 0) {
if (transparency == null || transparency < 0) {
return null;
}
if (transparency == null || transparency > 1) {
return null;
}
this.__transparency = [transparency];
return this;
}
addTransparency(transparency = 0) {
if (transparency == null || transparency < 0) {
return null;
}
if (transparency == null || transparency > 1) {
return null;
}
if (this.__transparency == null) {
this.__transparency = [];
}
this.__transparency.append(transparency);
return this;
}
removeTransparency(transparency) {
for( let i = 0; i < this.__transparency.length; i++) {
if ( this.__transparency[i] === transparency) {
this.__transparency.splice(i, 1);
}
}
return this.__transparency;
}
get transparency() {
return this.__transparency;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class UniversalJoint extends X3DRigidJointNode {
constructor(kwargs = {}) {
super(kwargs);
var anchorPoint = kwargs["anchorPoint"] || [0, 0, 0];
this.__anchorPoint = anchorPoint;
var axis1 = kwargs["axis1"] || [0, 0, 0];
this.__axis1 = axis1;
var axis2 = kwargs["axis2"] || [0, 0, 0];
this.__axis2 = axis2;
var body1 = kwargs["body1"] || null;
this.__body1 = body1;
var body1AnchorPoint = kwargs["body1AnchorPoint"] || null;
this.__body1AnchorPoint = body1AnchorPoint;
var body1Axis = kwargs["body1Axis"] || null;
this.__body1Axis = body1Axis;
var body2 = kwargs["body2"] || null;
this.__body2 = body2;
var body2AnchorPoint = kwargs["body2AnchorPoint"] || null;
this.__body2AnchorPoint = body2AnchorPoint;
var body2Axis = kwargs["body2Axis"] || null;
this.__body2Axis = body2Axis;
var forceOutput = kwargs["forceOutput"] || ["NONE"];
this.__forceOutput = forceOutput;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var stop1Bounce = kwargs["stop1Bounce"] || 0;
if (stop1Bounce == null || stop1Bounce < 0) {
return null;
}
if (stop1Bounce == null || stop1Bounce > 1) {
return null;
}
this.__stop1Bounce = stop1Bounce;
var stop1ErrorCorrection = kwargs["stop1ErrorCorrection"] || 0.8;
if (stop1ErrorCorrection == null || stop1ErrorCorrection < 0) {
return null;
}
if (stop1ErrorCorrection == null || stop1ErrorCorrection > 1) {
return null;
}
this.__stop1ErrorCorrection = stop1ErrorCorrection;
var stop2Bounce = kwargs["stop2Bounce"] || 0;
if (stop2Bounce == null || stop2Bounce < 0) {
return null;
}
if (stop2Bounce == null || stop2Bounce > 1) {
return null;
}
this.__stop2Bounce = stop2Bounce;
var stop2ErrorCorrection = kwargs["stop2ErrorCorrection"] || 0.8;
if (stop2ErrorCorrection == null || stop2ErrorCorrection < 0) {
return null;
}
if (stop2ErrorCorrection == null || stop2ErrorCorrection > 1) {
return null;
}
this.__stop2ErrorCorrection = stop2ErrorCorrection;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set anchorPoint(anchorPoint = [0, 0, 0]) {
this.__anchorPoint = [anchorPoint];
return this;
}
addAnchorPoint(anchorPoint = [0, 0, 0]) {
if (this.__anchorPoint == null) {
this.__anchorPoint = [];
}
this.__anchorPoint.append(anchorPoint);
return this;
}
removeAnchorPoint(anchorPoint) {
for( let i = 0; i < this.__anchorPoint.length; i++) {
if ( this.__anchorPoint[i] === anchorPoint) {
this.__anchorPoint.splice(i, 1);
}
}
return this.__anchorPoint;
}
get anchorPoint() {
return this.__anchorPoint;
}
set axis1(axis1 = [0, 0, 0]) {
this.__axis1 = [axis1];
return this;
}
addAxis1(axis1 = [0, 0, 0]) {
if (this.__axis1 == null) {
this.__axis1 = [];
}
this.__axis1.append(axis1);
return this;
}
removeAxis1(axis1) {
for( let i = 0; i < this.__axis1.length; i++) {
if ( this.__axis1[i] === axis1) {
this.__axis1.splice(i, 1);
}
}
return this.__axis1;
}
get axis1() {
return this.__axis1;
}
set axis2(axis2 = [0, 0, 0]) {
this.__axis2 = [axis2];
return this;
}
addAxis2(axis2 = [0, 0, 0]) {
if (this.__axis2 == null) {
this.__axis2 = [];
}
this.__axis2.append(axis2);
return this;
}
removeAxis2(axis2) {
for( let i = 0; i < this.__axis2.length; i++) {
if ( this.__axis2[i] === axis2) {
this.__axis2.splice(i, 1);
}
}
return this.__axis2;
}
get axis2() {
return this.__axis2;
}
set body1(body1 = null) {
this.__body1 = [body1];
return this;
}
addBody1(body1 = null) {
if (this.__body1 == null) {
this.__body1 = [];
}
this.__body1.append(body1);
return this;
}
removeBody1(body1) {
for( let i = 0; i < this.__body1.length; i++) {
if ( this.__body1[i] === body1) {
this.__body1.splice(i, 1);
}
}
return this.__body1;
}
get body1() {
return this.__body1;
}
removeBody1AnchorPoint(body1AnchorPoint) {
for( let i = 0; i < this.__body1AnchorPoint.length; i++) {
if ( this.__body1AnchorPoint[i] === body1AnchorPoint) {
this.__body1AnchorPoint.splice(i, 1);
}
}
return this.__body1AnchorPoint;
}
get body1AnchorPoint() {
return this.__body1AnchorPoint;
}
removeBody1Axis(body1Axis) {
for( let i = 0; i < this.__body1Axis.length; i++) {
if ( this.__body1Axis[i] === body1Axis) {
this.__body1Axis.splice(i, 1);
}
}
return this.__body1Axis;
}
get body1Axis() {
return this.__body1Axis;
}
set body2(body2 = null) {
this.__body2 = [body2];
return this;
}
addBody2(body2 = null) {
if (this.__body2 == null) {
this.__body2 = [];
}
this.__body2.append(body2);
return this;
}
removeBody2(body2) {
for( let i = 0; i < this.__body2.length; i++) {
if ( this.__body2[i] === body2) {
this.__body2.splice(i, 1);
}
}
return this.__body2;
}
get body2() {
return this.__body2;
}
removeBody2AnchorPoint(body2AnchorPoint) {
for( let i = 0; i < this.__body2AnchorPoint.length; i++) {
if ( this.__body2AnchorPoint[i] === body2AnchorPoint) {
this.__body2AnchorPoint.splice(i, 1);
}
}
return this.__body2AnchorPoint;
}
get body2AnchorPoint() {
return this.__body2AnchorPoint;
}
removeBody2Axis(body2Axis) {
for( let i = 0; i < this.__body2Axis.length; i++) {
if ( this.__body2Axis[i] === body2Axis) {
this.__body2Axis.splice(i, 1);
}
}
return this.__body2Axis;
}
get body2Axis() {
return this.__body2Axis;
}
set forceOutput(forceOutput = ["NONE"]) {
this.__forceOutput = [forceOutput];
return this;
}
addForceOutput(forceOutput = ["NONE"]) {
if (this.__forceOutput == null) {
this.__forceOutput = [];
}
this.__forceOutput.append(forceOutput);
return this;
}
removeForceOutput(forceOutput) {
for( let i = 0; i < this.__forceOutput.length; i++) {
if ( this.__forceOutput[i] === forceOutput) {
this.__forceOutput.splice(i, 1);
}
}
return this.__forceOutput;
}
get forceOutput() {
return this.__forceOutput;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set stop1Bounce(stop1Bounce = 0) {
if (stop1Bounce == null || stop1Bounce < 0) {
return null;
}
if (stop1Bounce == null || stop1Bounce > 1) {
return null;
}
this.__stop1Bounce = [stop1Bounce];
return this;
}
addStop1Bounce(stop1Bounce = 0) {
if (stop1Bounce == null || stop1Bounce < 0) {
return null;
}
if (stop1Bounce == null || stop1Bounce > 1) {
return null;
}
if (this.__stop1Bounce == null) {
this.__stop1Bounce = [];
}
this.__stop1Bounce.append(stop1Bounce);
return this;
}
removeStop1Bounce(stop1Bounce) {
for( let i = 0; i < this.__stop1Bounce.length; i++) {
if ( this.__stop1Bounce[i] === stop1Bounce) {
this.__stop1Bounce.splice(i, 1);
}
}
return this.__stop1Bounce;
}
get stop1Bounce() {
return this.__stop1Bounce;
}
set stop1ErrorCorrection(stop1ErrorCorrection = 0.8) {
if (stop1ErrorCorrection == null || stop1ErrorCorrection < 0) {
return null;
}
if (stop1ErrorCorrection == null || stop1ErrorCorrection > 1) {
return null;
}
this.__stop1ErrorCorrection = [stop1ErrorCorrection];
return this;
}
addStop1ErrorCorrection(stop1ErrorCorrection = 0.8) {
if (stop1ErrorCorrection == null || stop1ErrorCorrection < 0) {
return null;
}
if (stop1ErrorCorrection == null || stop1ErrorCorrection > 1) {
return null;
}
if (this.__stop1ErrorCorrection == null) {
this.__stop1ErrorCorrection = [];
}
this.__stop1ErrorCorrection.append(stop1ErrorCorrection);
return this;
}
removeStop1ErrorCorrection(stop1ErrorCorrection) {
for( let i = 0; i < this.__stop1ErrorCorrection.length; i++) {
if ( this.__stop1ErrorCorrection[i] === stop1ErrorCorrection) {
this.__stop1ErrorCorrection.splice(i, 1);
}
}
return this.__stop1ErrorCorrection;
}
get stop1ErrorCorrection() {
return this.__stop1ErrorCorrection;
}
set stop2Bounce(stop2Bounce = 0) {
if (stop2Bounce == null || stop2Bounce < 0) {
return null;
}
if (stop2Bounce == null || stop2Bounce > 1) {
return null;
}
this.__stop2Bounce = [stop2Bounce];
return this;
}
addStop2Bounce(stop2Bounce = 0) {
if (stop2Bounce == null || stop2Bounce < 0) {
return null;
}
if (stop2Bounce == null || stop2Bounce > 1) {
return null;
}
if (this.__stop2Bounce == null) {
this.__stop2Bounce = [];
}
this.__stop2Bounce.append(stop2Bounce);
return this;
}
removeStop2Bounce(stop2Bounce) {
for( let i = 0; i < this.__stop2Bounce.length; i++) {
if ( this.__stop2Bounce[i] === stop2Bounce) {
this.__stop2Bounce.splice(i, 1);
}
}
return this.__stop2Bounce;
}
get stop2Bounce() {
return this.__stop2Bounce;
}
set stop2ErrorCorrection(stop2ErrorCorrection = 0.8) {
if (stop2ErrorCorrection == null || stop2ErrorCorrection < 0) {
return null;
}
if (stop2ErrorCorrection == null || stop2ErrorCorrection > 1) {
return null;
}
this.__stop2ErrorCorrection = [stop2ErrorCorrection];
return this;
}
addStop2ErrorCorrection(stop2ErrorCorrection = 0.8) {
if (stop2ErrorCorrection == null || stop2ErrorCorrection < 0) {
return null;
}
if (stop2ErrorCorrection == null || stop2ErrorCorrection > 1) {
return null;
}
if (this.__stop2ErrorCorrection == null) {
this.__stop2ErrorCorrection = [];
}
this.__stop2ErrorCorrection.append(stop2ErrorCorrection);
return this;
}
removeStop2ErrorCorrection(stop2ErrorCorrection) {
for( let i = 0; i < this.__stop2ErrorCorrection.length; i++) {
if ( this.__stop2ErrorCorrection[i] === stop2ErrorCorrection) {
this.__stop2ErrorCorrection.splice(i, 1);
}
}
return this.__stop2ErrorCorrection;
}
get stop2ErrorCorrection() {
return this.__stop2ErrorCorrection;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__body1 === null) {
} else if (typeof this.__body1.toXMLNode === 'function') {
str += this.__body1.toXMLNode('body1');
} else if (typeof this.__body1 === 'string') {
str += ' body1="'+this.__body1+'"';
} else if (Array.isArray( this.__body1)) {
if (typeof this.__body1[0].toXMLNode !== 'function') {
str += ' body1="'+this.__body1.join(' ')+'"';
} else {
for (let i in this.__body1) {
if (typeof this.__body1[i].toXMLNode === 'function') {
str += this.__body1[i].toXMLNode('body1');
}
}
}
} else {
str += ' body1="'+this.__body1+'"';
}
if (this.__body2 === null) {
} else if (typeof this.__body2.toXMLNode === 'function') {
str += this.__body2.toXMLNode('body2');
} else if (typeof this.__body2 === 'string') {
str += ' body2="'+this.__body2+'"';
} else if (Array.isArray( this.__body2)) {
if (typeof this.__body2[0].toXMLNode !== 'function') {
str += ' body2="'+this.__body2.join(' ')+'"';
} else {
for (let i in this.__body2) {
if (typeof this.__body2[i].toXMLNode === 'function') {
str += this.__body2[i].toXMLNode('body2');
}
}
}
} else {
str += ' body2="'+this.__body2+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class Viewpoint extends X3DViewpointNode {
constructor(kwargs = {}) {
super(kwargs);
var bindTime = kwargs["bindTime"] || null;
this.__bindTime = bindTime;
var centerOfRotation = kwargs["centerOfRotation"] || [0, 0, 0];
this.__centerOfRotation = centerOfRotation;
var description = kwargs["description"] || null;
this.__description = description;
var fieldOfView = kwargs["fieldOfView"] || 0.7854;
if (fieldOfView == null || fieldOfView <= 0) {
return null;
}
if (fieldOfView == null || fieldOfView >= 3.1416) {
return null;
}
this.__fieldOfView = fieldOfView;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Bound = kwargs["Bound"] || null;
this.__Bound = Bound;
var jump = kwargs["jump"] || true;
this.__jump = jump;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var orientation = kwargs["orientation"] || [0, 0, 1, 0];
this.__orientation = orientation;
var position = kwargs["position"] || [0, 0, 10];
this.__position = position;
var retainUserOffsets = kwargs["retainUserOffsets"] || false;
this.__retainUserOffsets = retainUserOffsets;
var bind = kwargs["bind"] || null;
this.__bind = bind;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
removeBindTime(bindTime) {
for( let i = 0; i < this.__bindTime.length; i++) {
if ( this.__bindTime[i] === bindTime) {
this.__bindTime.splice(i, 1);
}
}
return this.__bindTime;
}
get bindTime() {
return this.__bindTime;
}
set centerOfRotation(centerOfRotation = [0, 0, 0]) {
this.__centerOfRotation = [centerOfRotation];
return this;
}
addCenterOfRotation(centerOfRotation = [0, 0, 0]) {
if (this.__centerOfRotation == null) {
this.__centerOfRotation = [];
}
this.__centerOfRotation.append(centerOfRotation);
return this;
}
removeCenterOfRotation(centerOfRotation) {
for( let i = 0; i < this.__centerOfRotation.length; i++) {
if ( this.__centerOfRotation[i] === centerOfRotation) {
this.__centerOfRotation.splice(i, 1);
}
}
return this.__centerOfRotation;
}
get centerOfRotation() {
return this.__centerOfRotation;
}
set description(description = null) {
this.__description = [description];
return this;
}
addDescription(description = null) {
if (this.__description == null) {
this.__description = [];
}
this.__description.append(description);
return this;
}
removeDescription(description) {
for( let i = 0; i < this.__description.length; i++) {
if ( this.__description[i] === description) {
this.__description.splice(i, 1);
}
}
return this.__description;
}
get description() {
return this.__description;
}
set fieldOfView(fieldOfView = 0.7854) {
if (fieldOfView == null || fieldOfView <= 0) {
return null;
}
if (fieldOfView == null || fieldOfView >= 3.1416) {
return null;
}
this.__fieldOfView = [fieldOfView];
return this;
}
addFieldOfView(fieldOfView = 0.7854) {
if (fieldOfView == null || fieldOfView <= 0) {
return null;
}
if (fieldOfView == null || fieldOfView >= 3.1416) {
return null;
}
if (this.__fieldOfView == null) {
this.__fieldOfView = [];
}
this.__fieldOfView.append(fieldOfView);
return this;
}
removeFieldOfView(fieldOfView) {
for( let i = 0; i < this.__fieldOfView.length; i++) {
if ( this.__fieldOfView[i] === fieldOfView) {
this.__fieldOfView.splice(i, 1);
}
}
return this.__fieldOfView;
}
get fieldOfView() {
return this.__fieldOfView;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isBound() {
return this.__Bound;
}
set jump(jump = true) {
this.__jump = [jump];
return this;
}
addJump(jump = true) {
if (this.__jump == null) {
this.__jump = [];
}
this.__jump.append(jump);
return this;
}
removeJump(jump) {
for( let i = 0; i < this.__jump.length; i++) {
if ( this.__jump[i] === jump) {
this.__jump.splice(i, 1);
}
}
return this.__jump;
}
get isJump() {
return this.__jump;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set orientation(orientation = [0, 0, 1, 0]) {
this.__orientation = [orientation];
return this;
}
addOrientation(orientation = [0, 0, 1, 0]) {
if (this.__orientation == null) {
this.__orientation = [];
}
this.__orientation.append(orientation);
return this;
}
removeOrientation(orientation) {
for( let i = 0; i < this.__orientation.length; i++) {
if ( this.__orientation[i] === orientation) {
this.__orientation.splice(i, 1);
}
}
return this.__orientation;
}
get orientation() {
return this.__orientation;
}
set position(position = [0, 0, 10]) {
this.__position = [position];
return this;
}
addPosition(position = [0, 0, 10]) {
if (this.__position == null) {
this.__position = [];
}
this.__position.append(position);
return this;
}
removePosition(position) {
for( let i = 0; i < this.__position.length; i++) {
if ( this.__position[i] === position) {
this.__position.splice(i, 1);
}
}
return this.__position;
}
get position() {
return this.__position;
}
set retainUserOffsets(retainUserOffsets = false) {
this.__retainUserOffsets = [retainUserOffsets];
return this;
}
addRetainUserOffsets(retainUserOffsets = false) {
if (this.__retainUserOffsets == null) {
this.__retainUserOffsets = [];
}
this.__retainUserOffsets.append(retainUserOffsets);
return this;
}
removeRetainUserOffsets(retainUserOffsets) {
for( let i = 0; i < this.__retainUserOffsets.length; i++) {
if ( this.__retainUserOffsets[i] === retainUserOffsets) {
this.__retainUserOffsets.splice(i, 1);
}
}
return this.__retainUserOffsets;
}
get isRetainUserOffsets() {
return this.__retainUserOffsets;
}
set set_bind(bind = null) {
this.__bind = [bind];
return this;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class ViewpointGroup extends X3DChildNode {
constructor(kwargs = {}) {
super(kwargs);
var center = kwargs["center"] || [0, 0, 0];
this.__center = center;
var children = kwargs["children"] || null;
this.__children = children;
var description = kwargs["description"] || null;
this.__description = description;
var displayed = kwargs["displayed"] || true;
this.__displayed = displayed;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var retainUserOffsets = kwargs["retainUserOffsets"] || false;
this.__retainUserOffsets = retainUserOffsets;
var size = kwargs["size"] || [0, 0, 0];
this.__size = size;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set center(center = [0, 0, 0]) {
this.__center = [center];
return this;
}
addCenter(center = [0, 0, 0]) {
if (this.__center == null) {
this.__center = [];
}
this.__center.append(center);
return this;
}
removeCenter(center) {
for( let i = 0; i < this.__center.length; i++) {
if ( this.__center[i] === center) {
this.__center.splice(i, 1);
}
}
return this.__center;
}
get center() {
return this.__center;
}
set children(children = null) {
this.__children = [children];
return this;
}
addChildren(children = null) {
if (this.__children == null) {
this.__children = [];
}
this.__children.append(children);
return this;
}
removeChildren(children) {
for( let i = 0; i < this.__children.length; i++) {
if ( this.__children[i] === children) {
this.__children.splice(i, 1);
}
}
return this.__children;
}
get children() {
return this.__children;
}
set description(description = null) {
this.__description = [description];
return this;
}
addDescription(description = null) {
if (this.__description == null) {
this.__description = [];
}
this.__description.append(description);
return this;
}
removeDescription(description) {
for( let i = 0; i < this.__description.length; i++) {
if ( this.__description[i] === description) {
this.__description.splice(i, 1);
}
}
return this.__description;
}
get description() {
return this.__description;
}
set displayed(displayed = true) {
this.__displayed = [displayed];
return this;
}
addDisplayed(displayed = true) {
if (this.__displayed == null) {
this.__displayed = [];
}
this.__displayed.append(displayed);
return this;
}
removeDisplayed(displayed) {
for( let i = 0; i < this.__displayed.length; i++) {
if ( this.__displayed[i] === displayed) {
this.__displayed.splice(i, 1);
}
}
return this.__displayed;
}
get isDisplayed() {
return this.__displayed;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set retainUserOffsets(retainUserOffsets = false) {
this.__retainUserOffsets = [retainUserOffsets];
return this;
}
addRetainUserOffsets(retainUserOffsets = false) {
if (this.__retainUserOffsets == null) {
this.__retainUserOffsets = [];
}
this.__retainUserOffsets.append(retainUserOffsets);
return this;
}
removeRetainUserOffsets(retainUserOffsets) {
for( let i = 0; i < this.__retainUserOffsets.length; i++) {
if ( this.__retainUserOffsets[i] === retainUserOffsets) {
this.__retainUserOffsets.splice(i, 1);
}
}
return this.__retainUserOffsets;
}
get isRetainUserOffsets() {
return this.__retainUserOffsets;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__children === null) {
} else if (typeof this.__children.toXMLNode === 'function') {
str += this.__children.toXMLNode('children');
} else if (typeof this.__children === 'string') {
str += ' children="'+this.__children+'"';
} else if (Array.isArray( this.__children)) {
if (typeof this.__children[0].toXMLNode !== 'function') {
str += ' children="'+this.__children.join(' ')+'"';
} else {
for (let i in this.__children) {
if (typeof this.__children[i].toXMLNode === 'function') {
str += this.__children[i].toXMLNode('children');
}
}
}
} else {
str += ' children="'+this.__children+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class Viewport extends X3DViewportNode {
constructor(kwargs = {}) {
super(kwargs);
var children_ = kwargs["children_"] || null;
this.__children_ = children_;
var bboxCenter = kwargs["bboxCenter"] || [0, 0, 0];
this.__bboxCenter = bboxCenter;
var bboxSize = kwargs["bboxSize"] || [-1, -1, -1];
this.__bboxSize = bboxSize;
var children = kwargs["children"] || null;
this.__children = children;
var clipBoundary = kwargs["clipBoundary"] || [0, 1, 0, 1];
if (clipBoundary == null || clipBoundary.length <= 0 || Math.min(clipBoundary) < 0) {
return null;
}
if (clipBoundary == null || clipBoundary.length <= 0 || Math.max(clipBoundary) > 1) {
return null;
}
this.__clipBoundary = clipBoundary;
var displayBBox = kwargs["displayBBox"] || false;
this.__displayBBox = displayBBox;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var children_ = kwargs["children_"] || null;
this.__children_ = children_;
var visible = kwargs["visible"] || true;
this.__visible = visible;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
addChildren(children_ = null) {
if (this.__children_ == null) {
this.__children_ = [];
}
this.__children_.append(children_);
return this;
}
set children(children = null) {
this.__children = [children];
return this;
}
addChildren(children = null) {
if (this.__children == null) {
this.__children = [];
}
this.__children.append(children);
return this;
}
removeChildren(children) {
for( let i = 0; i < this.__children.length; i++) {
if ( this.__children[i] === children) {
this.__children.splice(i, 1);
}
}
return this.__children;
}
get children() {
return this.__children;
}
set clipBoundary(clipBoundary = [0, 1, 0, 1]) {
if (clipBoundary == null || clipBoundary.length <= 0 || Math.min(clipBoundary) < 0) {
return null;
}
if (clipBoundary == null || clipBoundary.length <= 0 || Math.max(clipBoundary) > 1) {
return null;
}
this.__clipBoundary = [clipBoundary];
return this;
}
addClipBoundary(clipBoundary = [0, 1, 0, 1]) {
if (clipBoundary == null || clipBoundary.length <= 0 || Math.min(clipBoundary) < 0) {
return null;
}
if (clipBoundary == null || clipBoundary.length <= 0 || Math.max(clipBoundary) > 1) {
return null;
}
if (this.__clipBoundary == null) {
this.__clipBoundary = [];
}
this.__clipBoundary.append(clipBoundary);
return this;
}
removeClipBoundary(clipBoundary) {
for( let i = 0; i < this.__clipBoundary.length; i++) {
if ( this.__clipBoundary[i] === clipBoundary) {
this.__clipBoundary.splice(i, 1);
}
}
return this.__clipBoundary;
}
get clipBoundary() {
return this.__clipBoundary;
}
set displayBBox(displayBBox = false) {
this.__displayBBox = [displayBBox];
return this;
}
addDisplayBBox(displayBBox = false) {
if (this.__displayBBox == null) {
this.__displayBBox = [];
}
this.__displayBBox.append(displayBBox);
return this;
}
removeDisplayBBox(displayBBox) {
for( let i = 0; i < this.__displayBBox.length; i++) {
if ( this.__displayBBox[i] === displayBBox) {
this.__displayBBox.splice(i, 1);
}
}
return this.__displayBBox;
}
get isDisplayBBox() {
return this.__displayBBox;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set visible(visible = true) {
this.__visible = [visible];
return this;
}
addVisible(visible = true) {
if (this.__visible == null) {
this.__visible = [];
}
this.__visible.append(visible);
return this;
}
removeVisible(visible) {
for( let i = 0; i < this.__visible.length; i++) {
if ( this.__visible[i] === visible) {
this.__visible.splice(i, 1);
}
}
return this.__visible;
}
get isVisible() {
return this.__visible;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__children_ === null) {
} else if (typeof this.__children_.toXMLNode === 'function') {
str += this.__children_.toXMLNode('children_');
} else if (typeof this.__children_ === 'string') {
str += ' children_="'+this.__children_+'"';
} else if (Array.isArray( this.__children_)) {
if (typeof this.__children_[0].toXMLNode !== 'function') {
str += ' children_="'+this.__children_.join(' ')+'"';
} else {
for (let i in this.__children_) {
if (typeof this.__children_[i].toXMLNode === 'function') {
str += this.__children_[i].toXMLNode('children_');
}
}
}
} else {
str += ' children_="'+this.__children_+'"';
}
if (this.__children === null) {
} else if (typeof this.__children.toXMLNode === 'function') {
str += this.__children.toXMLNode('children');
} else if (typeof this.__children === 'string') {
str += ' children="'+this.__children+'"';
} else if (Array.isArray( this.__children)) {
if (typeof this.__children[0].toXMLNode !== 'function') {
str += ' children="'+this.__children.join(' ')+'"';
} else {
for (let i in this.__children) {
if (typeof this.__children[i].toXMLNode === 'function') {
str += this.__children[i].toXMLNode('children');
}
}
}
} else {
str += ' children="'+this.__children+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__children_ === null) {
} else if (typeof this.__children_.toXMLNode === 'function') {
str += this.__children_.toXMLNode('children_');
} else if (typeof this.__children_ === 'string') {
str += ' children_="'+this.__children_+'"';
} else if (Array.isArray( this.__children_)) {
if (typeof this.__children_[0].toXMLNode !== 'function') {
str += ' children_="'+this.__children_.join(' ')+'"';
} else {
for (let i in this.__children_) {
if (typeof this.__children_[i].toXMLNode === 'function') {
str += this.__children_[i].toXMLNode('children_');
}
}
}
} else {
str += ' children_="'+this.__children_+'"';
}
str += ''
return str;
}
}
export class VisibilitySensor extends X3DEnvironmentalSensorNode {
constructor(kwargs = {}) {
super(kwargs);
var center = kwargs["center"] || [0, 0, 0];
this.__center = center;
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var enterTime = kwargs["enterTime"] || null;
this.__enterTime = enterTime;
var exitTime = kwargs["exitTime"] || null;
this.__exitTime = exitTime;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var size = kwargs["size"] || [0, 0, 0];
if (size == null || size.length <= 0 || Math.min(size) < 0) {
return null;
}
this.__size = size;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set center(center = [0, 0, 0]) {
this.__center = [center];
return this;
}
addCenter(center = [0, 0, 0]) {
if (this.__center == null) {
this.__center = [];
}
this.__center.append(center);
return this;
}
removeCenter(center) {
for( let i = 0; i < this.__center.length; i++) {
if ( this.__center[i] === center) {
this.__center.splice(i, 1);
}
}
return this.__center;
}
get center() {
return this.__center;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
removeEnterTime(enterTime) {
for( let i = 0; i < this.__enterTime.length; i++) {
if ( this.__enterTime[i] === enterTime) {
this.__enterTime.splice(i, 1);
}
}
return this.__enterTime;
}
get enterTime() {
return this.__enterTime;
}
removeExitTime(exitTime) {
for( let i = 0; i < this.__exitTime.length; i++) {
if ( this.__exitTime[i] === exitTime) {
this.__exitTime.splice(i, 1);
}
}
return this.__exitTime;
}
get exitTime() {
return this.__exitTime;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class VolumeData extends X3DVolumeDataNode {
constructor(kwargs = {}) {
super(kwargs);
var bboxCenter = kwargs["bboxCenter"] || [0, 0, 0];
this.__bboxCenter = bboxCenter;
var bboxSize = kwargs["bboxSize"] || [-1, -1, -1];
this.__bboxSize = bboxSize;
var dimensions = kwargs["dimensions"] || [1, 1, 1];
if (dimensions == null || dimensions.length <= 0 || Math.min(dimensions) <= 0) {
return null;
}
this.__dimensions = dimensions;
var displayBBox = kwargs["displayBBox"] || false;
this.__displayBBox = displayBBox;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var renderStyle = kwargs["renderStyle"] || null;
this.__renderStyle = renderStyle;
var visible = kwargs["visible"] || true;
this.__visible = visible;
var voxels = kwargs["voxels"] || null;
this.__voxels = voxels;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set dimensions(dimensions = [1, 1, 1]) {
if (dimensions == null || dimensions.length <= 0 || Math.min(dimensions) <= 0) {
return null;
}
this.__dimensions = [dimensions];
return this;
}
addDimensions(dimensions = [1, 1, 1]) {
if (dimensions == null || dimensions.length <= 0 || Math.min(dimensions) <= 0) {
return null;
}
if (this.__dimensions == null) {
this.__dimensions = [];
}
this.__dimensions.append(dimensions);
return this;
}
removeDimensions(dimensions) {
for( let i = 0; i < this.__dimensions.length; i++) {
if ( this.__dimensions[i] === dimensions) {
this.__dimensions.splice(i, 1);
}
}
return this.__dimensions;
}
get dimensions() {
return this.__dimensions;
}
set displayBBox(displayBBox = false) {
this.__displayBBox = [displayBBox];
return this;
}
addDisplayBBox(displayBBox = false) {
if (this.__displayBBox == null) {
this.__displayBBox = [];
}
this.__displayBBox.append(displayBBox);
return this;
}
removeDisplayBBox(displayBBox) {
for( let i = 0; i < this.__displayBBox.length; i++) {
if ( this.__displayBBox[i] === displayBBox) {
this.__displayBBox.splice(i, 1);
}
}
return this.__displayBBox;
}
get isDisplayBBox() {
return this.__displayBBox;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set renderStyle(renderStyle = null) {
this.__renderStyle = [renderStyle];
return this;
}
addRenderStyle(renderStyle = null) {
if (this.__renderStyle == null) {
this.__renderStyle = [];
}
this.__renderStyle.append(renderStyle);
return this;
}
removeRenderStyle(renderStyle) {
for( let i = 0; i < this.__renderStyle.length; i++) {
if ( this.__renderStyle[i] === renderStyle) {
this.__renderStyle.splice(i, 1);
}
}
return this.__renderStyle;
}
get renderStyle() {
return this.__renderStyle;
}
set visible(visible = true) {
this.__visible = [visible];
return this;
}
addVisible(visible = true) {
if (this.__visible == null) {
this.__visible = [];
}
this.__visible.append(visible);
return this;
}
removeVisible(visible) {
for( let i = 0; i < this.__visible.length; i++) {
if ( this.__visible[i] === visible) {
this.__visible.splice(i, 1);
}
}
return this.__visible;
}
get isVisible() {
return this.__visible;
}
set voxels(voxels = null) {
this.__voxels = [voxels];
return this;
}
addVoxels(voxels = null) {
if (this.__voxels == null) {
this.__voxels = [];
}
this.__voxels.append(voxels);
return this;
}
removeVoxels(voxels) {
for( let i = 0; i < this.__voxels.length; i++) {
if ( this.__voxels[i] === voxels) {
this.__voxels.splice(i, 1);
}
}
return this.__voxels;
}
get voxels() {
return this.__voxels;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__renderStyle === null) {
} else if (typeof this.__renderStyle.toXMLNode === 'function') {
str += this.__renderStyle.toXMLNode('renderStyle');
} else if (typeof this.__renderStyle === 'string') {
str += ' renderStyle="'+this.__renderStyle+'"';
} else if (Array.isArray( this.__renderStyle)) {
if (typeof this.__renderStyle[0].toXMLNode !== 'function') {
str += ' renderStyle="'+this.__renderStyle.join(' ')+'"';
} else {
for (let i in this.__renderStyle) {
if (typeof this.__renderStyle[i].toXMLNode === 'function') {
str += this.__renderStyle[i].toXMLNode('renderStyle');
}
}
}
} else {
str += ' renderStyle="'+this.__renderStyle+'"';
}
if (this.__voxels === null) {
} else if (typeof this.__voxels.toXMLNode === 'function') {
str += this.__voxels.toXMLNode('voxels');
} else if (typeof this.__voxels === 'string') {
str += ' voxels="'+this.__voxels+'"';
} else if (Array.isArray( this.__voxels)) {
if (typeof this.__voxels[0].toXMLNode !== 'function') {
str += ' voxels="'+this.__voxels.join(' ')+'"';
} else {
for (let i in this.__voxels) {
if (typeof this.__voxels[i].toXMLNode === 'function') {
str += this.__voxels[i].toXMLNode('voxels');
}
}
}
} else {
str += ' voxels="'+this.__voxels+'"';
}
str += ''
return str;
}
}
export class VolumeEmitter extends X3DParticleEmitterNode {
constructor(kwargs = {}) {
super(kwargs);
var coord = kwargs["coord"] || null;
this.__coord = coord;
var coordIndex = kwargs["coordIndex"] || [-1];
if (coordIndex == null || coordIndex.length <= 0 || Math.min(coordIndex) < -1) {
return null;
}
this.__coordIndex = coordIndex;
var direction = kwargs["direction"] || [0, 1, 0];
if (direction == null || direction.length <= 0 || Math.min(direction) < -1) {
return null;
}
if (direction == null || direction.length <= 0 || Math.max(direction) > 1) {
return null;
}
this.__direction = direction;
var internal = kwargs["internal"] || true;
this.__internal = internal;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var mass = kwargs["mass"] || 0;
if (mass == null || mass < 0) {
return null;
}
this.__mass = mass;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var coordIndex = kwargs["coordIndex"] || null;
if (coordIndex == null || coordIndex.length <= 0 || Math.min(coordIndex) < -1) {
return null;
}
this.__coordIndex = coordIndex;
var speed = kwargs["speed"] || 0;
if (speed == null || speed < 0) {
return null;
}
this.__speed = speed;
var surfaceArea = kwargs["surfaceArea"] || 0;
if (surfaceArea == null || surfaceArea < 0) {
return null;
}
this.__surfaceArea = surfaceArea;
var variation = kwargs["variation"] || 0.25;
if (variation == null || variation < 0) {
return null;
}
this.__variation = variation;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set coord(coord = null) {
this.__coord = [coord];
return this;
}
addCoord(coord = null) {
if (this.__coord == null) {
this.__coord = [];
}
this.__coord.append(coord);
return this;
}
removeCoord(coord) {
for( let i = 0; i < this.__coord.length; i++) {
if ( this.__coord[i] === coord) {
this.__coord.splice(i, 1);
}
}
return this.__coord;
}
get coord() {
return this.__coord;
}
set direction(direction = [0, 1, 0]) {
if (direction == null || direction.length <= 0 || Math.min(direction) < -1) {
return null;
}
if (direction == null || direction.length <= 0 || Math.max(direction) > 1) {
return null;
}
this.__direction = [direction];
return this;
}
addDirection(direction = [0, 1, 0]) {
if (direction == null || direction.length <= 0 || Math.min(direction) < -1) {
return null;
}
if (direction == null || direction.length <= 0 || Math.max(direction) > 1) {
return null;
}
if (this.__direction == null) {
this.__direction = [];
}
this.__direction.append(direction);
return this;
}
removeDirection(direction) {
for( let i = 0; i < this.__direction.length; i++) {
if ( this.__direction[i] === direction) {
this.__direction.splice(i, 1);
}
}
return this.__direction;
}
get direction() {
return this.__direction;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set mass(mass = 0) {
if (mass == null || mass < 0) {
return null;
}
this.__mass = [mass];
return this;
}
addMass(mass = 0) {
if (mass == null || mass < 0) {
return null;
}
if (this.__mass == null) {
this.__mass = [];
}
this.__mass.append(mass);
return this;
}
removeMass(mass) {
for( let i = 0; i < this.__mass.length; i++) {
if ( this.__mass[i] === mass) {
this.__mass.splice(i, 1);
}
}
return this.__mass;
}
get mass() {
return this.__mass;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set set_coordIndex(coordIndex = null) {
if (coordIndex == null || coordIndex.length <= 0 || Math.min(coordIndex) < -1) {
return null;
}
this.__coordIndex = [coordIndex];
return this;
}
set speed(speed = 0) {
if (speed == null || speed < 0) {
return null;
}
this.__speed = [speed];
return this;
}
addSpeed(speed = 0) {
if (speed == null || speed < 0) {
return null;
}
if (this.__speed == null) {
this.__speed = [];
}
this.__speed.append(speed);
return this;
}
removeSpeed(speed) {
for( let i = 0; i < this.__speed.length; i++) {
if ( this.__speed[i] === speed) {
this.__speed.splice(i, 1);
}
}
return this.__speed;
}
get speed() {
return this.__speed;
}
set variation(variation = 0.25) {
if (variation == null || variation < 0) {
return null;
}
this.__variation = [variation];
return this;
}
addVariation(variation = 0.25) {
if (variation == null || variation < 0) {
return null;
}
if (this.__variation == null) {
this.__variation = [];
}
this.__variation.append(variation);
return this;
}
removeVariation(variation) {
for( let i = 0; i < this.__variation.length; i++) {
if ( this.__variation[i] === variation) {
this.__variation.splice(i, 1);
}
}
return this.__variation;
}
get variation() {
return this.__variation;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__coord === null) {
} else if (typeof this.__coord.toXMLNode === 'function') {
str += this.__coord.toXMLNode('coord');
} else if (typeof this.__coord === 'string') {
str += ' coord="'+this.__coord+'"';
} else if (Array.isArray( this.__coord)) {
if (typeof this.__coord[0].toXMLNode !== 'function') {
str += ' coord="'+this.__coord.join(' ')+'"';
} else {
for (let i in this.__coord) {
if (typeof this.__coord[i].toXMLNode === 'function') {
str += this.__coord[i].toXMLNode('coord');
}
}
}
} else {
str += ' coord="'+this.__coord+'"';
}
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class VolumePickSensor extends X3DPickSensorNode {
constructor(kwargs = {}) {
super(kwargs);
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var intersectionType = kwargs["intersectionType"] || "BOUNDS";
this.__intersectionType = intersectionType;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var Active = kwargs["Active"] || null;
this.__Active = Active;
var matchCriterion = kwargs["matchCriterion"] || "MATCH_ANY";
if ('MATCH_ANY' === matchCriterion) {
} else if ('MATCH_EVERY' === matchCriterion) {
} else if ('MATCH_ONLY_ONE' === matchCriterion) {
} else {
return null;
}
this.__matchCriterion = matchCriterion;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var objectType = kwargs["objectType"] || ["ALL"];
this.__objectType = objectType;
var pickedGeometry = kwargs["pickedGeometry"] || null;
this.__pickedGeometry = pickedGeometry;
var pickingGeometry = kwargs["pickingGeometry"] || null;
this.__pickingGeometry = pickingGeometry;
var pickTarget = kwargs["pickTarget"] || null;
this.__pickTarget = pickTarget;
var sortOrder = kwargs["sortOrder"] || "CLOSEST";
this.__sortOrder = sortOrder;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
get isActive() {
return this.__Active;
}
set matchCriterion(matchCriterion = "MATCH_ANY") {
if ('MATCH_ANY' === matchCriterion) {
} else if ('MATCH_EVERY' === matchCriterion) {
} else if ('MATCH_ONLY_ONE' === matchCriterion) {
} else {
return null;
}
this.__matchCriterion = [matchCriterion];
return this;
}
addMatchCriterion(matchCriterion = "MATCH_ANY") {
if ('MATCH_ANY' === matchCriterion) {
} else if ('MATCH_EVERY' === matchCriterion) {
} else if ('MATCH_ONLY_ONE' === matchCriterion) {
} else {
return null;
}
if (this.__matchCriterion == null) {
this.__matchCriterion = [];
}
this.__matchCriterion.append(matchCriterion);
return this;
}
removeMatchCriterion(matchCriterion) {
for( let i = 0; i < this.__matchCriterion.length; i++) {
if ( this.__matchCriterion[i] === matchCriterion) {
this.__matchCriterion.splice(i, 1);
}
}
return this.__matchCriterion;
}
get matchCriterion() {
return this.__matchCriterion;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set objectType(objectType = ["ALL"]) {
this.__objectType = [objectType];
return this;
}
addObjectType(objectType = ["ALL"]) {
if (this.__objectType == null) {
this.__objectType = [];
}
this.__objectType.append(objectType);
return this;
}
removeObjectType(objectType) {
for( let i = 0; i < this.__objectType.length; i++) {
if ( this.__objectType[i] === objectType) {
this.__objectType.splice(i, 1);
}
}
return this.__objectType;
}
get objectType() {
return this.__objectType;
}
removePickedGeometry(pickedGeometry) {
for( let i = 0; i < this.__pickedGeometry.length; i++) {
if ( this.__pickedGeometry[i] === pickedGeometry) {
this.__pickedGeometry.splice(i, 1);
}
}
return this.__pickedGeometry;
}
get pickedGeometry() {
return this.__pickedGeometry;
}
set pickingGeometry(pickingGeometry = null) {
this.__pickingGeometry = [pickingGeometry];
return this;
}
addPickingGeometry(pickingGeometry = null) {
if (this.__pickingGeometry == null) {
this.__pickingGeometry = [];
}
this.__pickingGeometry.append(pickingGeometry);
return this;
}
removePickingGeometry(pickingGeometry) {
for( let i = 0; i < this.__pickingGeometry.length; i++) {
if ( this.__pickingGeometry[i] === pickingGeometry) {
this.__pickingGeometry.splice(i, 1);
}
}
return this.__pickingGeometry;
}
get pickingGeometry() {
return this.__pickingGeometry;
}
set pickTarget(pickTarget = null) {
this.__pickTarget = [pickTarget];
return this;
}
addPickTarget(pickTarget = null) {
if (this.__pickTarget == null) {
this.__pickTarget = [];
}
this.__pickTarget.append(pickTarget);
return this;
}
removePickTarget(pickTarget) {
for( let i = 0; i < this.__pickTarget.length; i++) {
if ( this.__pickTarget[i] === pickTarget) {
this.__pickTarget.splice(i, 1);
}
}
return this.__pickTarget;
}
get pickTarget() {
return this.__pickTarget;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
if (this.__pickedGeometry === null) {
} else if (typeof this.__pickedGeometry.toXMLNode === 'function') {
str += this.__pickedGeometry.toXMLNode('pickedGeometry');
} else if (typeof this.__pickedGeometry === 'string') {
str += ' pickedGeometry="'+this.__pickedGeometry+'"';
} else if (Array.isArray( this.__pickedGeometry)) {
if (typeof this.__pickedGeometry[0].toXMLNode !== 'function') {
str += ' pickedGeometry="'+this.__pickedGeometry.join(' ')+'"';
} else {
for (let i in this.__pickedGeometry) {
if (typeof this.__pickedGeometry[i].toXMLNode === 'function') {
str += this.__pickedGeometry[i].toXMLNode('pickedGeometry');
}
}
}
} else {
str += ' pickedGeometry="'+this.__pickedGeometry+'"';
}
if (this.__pickingGeometry === null) {
} else if (typeof this.__pickingGeometry.toXMLNode === 'function') {
str += this.__pickingGeometry.toXMLNode('pickingGeometry');
} else if (typeof this.__pickingGeometry === 'string') {
str += ' pickingGeometry="'+this.__pickingGeometry+'"';
} else if (Array.isArray( this.__pickingGeometry)) {
if (typeof this.__pickingGeometry[0].toXMLNode !== 'function') {
str += ' pickingGeometry="'+this.__pickingGeometry.join(' ')+'"';
} else {
for (let i in this.__pickingGeometry) {
if (typeof this.__pickingGeometry[i].toXMLNode === 'function') {
str += this.__pickingGeometry[i].toXMLNode('pickingGeometry');
}
}
}
} else {
str += ' pickingGeometry="'+this.__pickingGeometry+'"';
}
if (this.__pickTarget === null) {
} else if (typeof this.__pickTarget.toXMLNode === 'function') {
str += this.__pickTarget.toXMLNode('pickTarget');
} else if (typeof this.__pickTarget === 'string') {
str += ' pickTarget="'+this.__pickTarget+'"';
} else if (Array.isArray( this.__pickTarget)) {
if (typeof this.__pickTarget[0].toXMLNode !== 'function') {
str += ' pickTarget="'+this.__pickTarget.join(' ')+'"';
} else {
for (let i in this.__pickTarget) {
if (typeof this.__pickTarget[i].toXMLNode === 'function') {
str += this.__pickTarget[i].toXMLNode('pickTarget');
}
}
}
} else {
str += ' pickTarget="'+this.__pickTarget+'"';
}
str += ''
return str;
}
}
export class WindPhysicsModel extends X3DParticlePhysicsModelNode {
constructor(kwargs = {}) {
super(kwargs);
var direction = kwargs["direction"] || [1, 0, 0];
this.__direction = direction;
var enabled = kwargs["enabled"] || true;
this.__enabled = enabled;
var gustiness = kwargs["gustiness"] || 0.1;
if (gustiness == null || gustiness < 0) {
return null;
}
this.__gustiness = gustiness;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var speed = kwargs["speed"] || 0.1;
if (speed == null || speed < 0) {
return null;
}
this.__speed = speed;
var turbulence = kwargs["turbulence"] || 0;
if (turbulence == null || turbulence < 0) {
return null;
}
if (turbulence == null || turbulence > 1) {
return null;
}
this.__turbulence = turbulence;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set direction(direction = [1, 0, 0]) {
this.__direction = [direction];
return this;
}
addDirection(direction = [1, 0, 0]) {
if (this.__direction == null) {
this.__direction = [];
}
this.__direction.append(direction);
return this;
}
removeDirection(direction) {
for( let i = 0; i < this.__direction.length; i++) {
if ( this.__direction[i] === direction) {
this.__direction.splice(i, 1);
}
}
return this.__direction;
}
get direction() {
return this.__direction;
}
set enabled(enabled = true) {
this.__enabled = [enabled];
return this;
}
addEnabled(enabled = true) {
if (this.__enabled == null) {
this.__enabled = [];
}
this.__enabled.append(enabled);
return this;
}
removeEnabled(enabled) {
for( let i = 0; i < this.__enabled.length; i++) {
if ( this.__enabled[i] === enabled) {
this.__enabled.splice(i, 1);
}
}
return this.__enabled;
}
get isEnabled() {
return this.__enabled;
}
set gustiness(gustiness = 0.1) {
if (gustiness == null || gustiness < 0) {
return null;
}
this.__gustiness = [gustiness];
return this;
}
addGustiness(gustiness = 0.1) {
if (gustiness == null || gustiness < 0) {
return null;
}
if (this.__gustiness == null) {
this.__gustiness = [];
}
this.__gustiness.append(gustiness);
return this;
}
removeGustiness(gustiness) {
for( let i = 0; i < this.__gustiness.length; i++) {
if ( this.__gustiness[i] === gustiness) {
this.__gustiness.splice(i, 1);
}
}
return this.__gustiness;
}
get gustiness() {
return this.__gustiness;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set speed(speed = 0.1) {
if (speed == null || speed < 0) {
return null;
}
this.__speed = [speed];
return this;
}
addSpeed(speed = 0.1) {
if (speed == null || speed < 0) {
return null;
}
if (this.__speed == null) {
this.__speed = [];
}
this.__speed.append(speed);
return this;
}
removeSpeed(speed) {
for( let i = 0; i < this.__speed.length; i++) {
if ( this.__speed[i] === speed) {
this.__speed.splice(i, 1);
}
}
return this.__speed;
}
get speed() {
return this.__speed;
}
set turbulence(turbulence = 0) {
if (turbulence == null || turbulence < 0) {
return null;
}
if (turbulence == null || turbulence > 1) {
return null;
}
this.__turbulence = [turbulence];
return this;
}
addTurbulence(turbulence = 0) {
if (turbulence == null || turbulence < 0) {
return null;
}
if (turbulence == null || turbulence > 1) {
return null;
}
if (this.__turbulence == null) {
this.__turbulence = [];
}
this.__turbulence.append(turbulence);
return this;
}
removeTurbulence(turbulence) {
for( let i = 0; i < this.__turbulence.length; i++) {
if ( this.__turbulence[i] === turbulence) {
this.__turbulence.splice(i, 1);
}
}
return this.__turbulence;
}
get turbulence() {
return this.__turbulence;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class WorldInfo extends X3DInfoNode {
constructor(kwargs = {}) {
super(kwargs);
var info = kwargs["info"] || null;
this.__info = info;
var IS = kwargs["IS"] || null;
this.__IS = IS;
var metadata = kwargs["metadata"] || null;
this.__metadata = metadata;
var title = kwargs["title"] || null;
this.__title = title;
var DEF = kwargs["DEF"] || null;
this.__DEF = DEF;
var USE = kwargs["USE"] || null;
this.__USE = USE;
var class_ = kwargs["class_"] || null;
this.__class_ = class_;
}
set info(info = null) {
this.__info = [info];
return this;
}
addInfo(info = null) {
if (this.__info == null) {
this.__info = [];
}
this.__info.append(info);
return this;
}
removeInfo(info) {
for( let i = 0; i < this.__info.length; i++) {
if ( this.__info[i] === info) {
this.__info.splice(i, 1);
}
}
return this.__info;
}
get info() {
return this.__info;
}
set IS(IS = null) {
this.__IS = [IS];
return this;
}
addIS(IS = null) {
if (this.__IS == null) {
this.__IS = [];
}
this.__IS.append(IS);
return this;
}
removeIS(IS) {
for( let i = 0; i < this.__IS.length; i++) {
if ( this.__IS[i] === IS) {
this.__IS.splice(i, 1);
}
}
return this.__IS;
}
get IS() {
return this.__IS;
}
set metadata(metadata = null) {
this.__metadata = [metadata];
return this;
}
addMetadata(metadata = null) {
if (this.__metadata == null) {
this.__metadata = [];
}
this.__metadata.append(metadata);
return this;
}
removeMetadata(metadata) {
for( let i = 0; i < this.__metadata.length; i++) {
if ( this.__metadata[i] === metadata) {
this.__metadata.splice(i, 1);
}
}
return this.__metadata;
}
get metadata() {
return this.__metadata;
}
set title(title = null) {
this.__title = [title];
return this;
}
addTitle(title = null) {
if (this.__title == null) {
this.__title = [];
}
this.__title.append(title);
return this;
}
removeTitle(title) {
for( let i = 0; i < this.__title.length; i++) {
if ( this.__title[i] === title) {
this.__title.splice(i, 1);
}
}
return this.__title;
}
get title() {
return this.__title;
}
set DEF(DEF = null) {
this.__DEF = [DEF];
return this;
}
addDEF(DEF = null) {
if (this.__DEF == null) {
this.__DEF = [];
}
this.__DEF.append(DEF);
return this;
}
removeDEF(DEF) {
for( let i = 0; i < this.__DEF.length; i++) {
if ( this.__DEF[i] === DEF) {
this.__DEF.splice(i, 1);
}
}
return this.__DEF;
}
get DEF() {
return this.__DEF;
}
set USE(USE = null) {
this.__USE = [USE];
return this;
}
addUSE(USE = null) {
if (this.__USE == null) {
this.__USE = [];
}
this.__USE.append(USE);
return this;
}
removeUSE(USE) {
for( let i = 0; i < this.__USE.length; i++) {
if ( this.__USE[i] === USE) {
this.__USE.splice(i, 1);
}
}
return this.__USE;
}
get USE() {
return this.__USE;
}
set class(class_ = null) {
this.__class_ = [class_];
return this;
}
addClass(class_ = null) {
if (this.__class_ == null) {
this.__class_ = [];
}
this.__class_.append(class_);
return this;
}
removeClass(class_) {
for( let i = 0; i < this.__class_.length; i++) {
if ( this.__class_[i] === class_) {
this.__class_.splice(i, 1);
}
}
return this.__class_;
}
get class() {
return this.__class_;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__IS === null) {
} else if (typeof this.__IS.toXMLNode === 'function') {
str += this.__IS.toXMLNode('IS');
} else if (typeof this.__IS === 'string') {
str += ' IS="'+this.__IS+'"';
} else if (Array.isArray( this.__IS)) {
if (typeof this.__IS[0].toXMLNode !== 'function') {
str += ' IS="'+this.__IS.join(' ')+'"';
} else {
for (let i in this.__IS) {
if (typeof this.__IS[i].toXMLNode === 'function') {
str += this.__IS[i].toXMLNode('IS');
}
}
}
} else {
str += ' IS="'+this.__IS+'"';
}
if (this.__metadata === null) {
} else if (typeof this.__metadata.toXMLNode === 'function') {
str += this.__metadata.toXMLNode('metadata');
} else if (typeof this.__metadata === 'string') {
str += ' metadata="'+this.__metadata+'"';
} else if (Array.isArray( this.__metadata)) {
if (typeof this.__metadata[0].toXMLNode !== 'function') {
str += ' metadata="'+this.__metadata.join(' ')+'"';
} else {
for (let i in this.__metadata) {
if (typeof this.__metadata[i].toXMLNode === 'function') {
str += this.__metadata[i].toXMLNode('metadata');
}
}
}
} else {
str += ' metadata="'+this.__metadata+'"';
}
str += ''
return str;
}
}
export class component {
constructor(kwargs = {}) {
var level = kwargs["level"] || 1;
if (level == null || level < 1) {
return null;
}
if (level == null || level > 5) {
return null;
}
this.__level = level;
var name = kwargs["name"] || null;
if ('Core' === name) {
} else if ('CADGeometry' === name) {
} else if ('CubeMapTexturing' === name) {
} else if ('DIS' === name) {
} else if ('EnvironmentalEffects' === name) {
} else if ('EnvironmentalSensor' === name) {
} else if ('EventUtilities' === name) {
} else if ('Followers' === name) {
} else if ('Geometry2D' === name) {
} else if ('Geometry3D' === name) {
} else if ('Geospatial' === name) {
} else if ('Grouping' === name) {
} else if ('HAnim' === name) {
} else if ('H-Anim' === name) {
} else if ('Interpolation' === name) {
} else if ('KeyDeviceSensor' === name) {
} else if ('Layering' === name) {
} else if ('Layout' === name) {
} else if ('Lighting' === name) {
} else if ('Navigation' === name) {
} else if ('Networking' === name) {
} else if ('NURBS' === name) {
} else if ('ParticleSystems' === name) {
} else if ('Picking' === name) {
} else if ('PointingDeviceSensor' === name) {
} else if ('Rendering' === name) {
} else if ('RigidBodyPhysics' === name) {
} else if ('Scripting' === name) {
} else if ('Shaders' === name) {
} else if ('Shape' === name) {
} else if ('Sound' === name) {
} else if ('Text' === name) {
} else if ('Texturing' === name) {
} else if ('Texturing3D' === name) {
} else if ('Time' === name) {
} else if ('VolumeRendering' === name) {
} else {
return null;
}
this.__name = name;
}
set level(level = 1) {
if (level == null || level < 1) {
return null;
}
if (level == null || level > 5) {
return null;
}
this.__level = [level];
return this;
}
addLevel(level = 1) {
if (level == null || level < 1) {
return null;
}
if (level == null || level > 5) {
return null;
}
if (this.__level == null) {
this.__level = [];
}
this.__level.append(level);
return this;
}
removeLevel(level) {
for( let i = 0; i < this.__level.length; i++) {
if ( this.__level[i] === level) {
this.__level.splice(i, 1);
}
}
return this.__level;
}
get level() {
return this.__level;
}
set name(name = null) {
if ('Core' === name) {
} else if ('CADGeometry' === name) {
} else if ('CubeMapTexturing' === name) {
} else if ('DIS' === name) {
} else if ('EnvironmentalEffects' === name) {
} else if ('EnvironmentalSensor' === name) {
} else if ('EventUtilities' === name) {
} else if ('Followers' === name) {
} else if ('Geometry2D' === name) {
} else if ('Geometry3D' === name) {
} else if ('Geospatial' === name) {
} else if ('Grouping' === name) {
} else if ('HAnim' === name) {
} else if ('H-Anim' === name) {
} else if ('Interpolation' === name) {
} else if ('KeyDeviceSensor' === name) {
} else if ('Layering' === name) {
} else if ('Layout' === name) {
} else if ('Lighting' === name) {
} else if ('Navigation' === name) {
} else if ('Networking' === name) {
} else if ('NURBS' === name) {
} else if ('ParticleSystems' === name) {
} else if ('Picking' === name) {
} else if ('PointingDeviceSensor' === name) {
} else if ('Rendering' === name) {
} else if ('RigidBodyPhysics' === name) {
} else if ('Scripting' === name) {
} else if ('Shaders' === name) {
} else if ('Shape' === name) {
} else if ('Sound' === name) {
} else if ('Text' === name) {
} else if ('Texturing' === name) {
} else if ('Texturing3D' === name) {
} else if ('Time' === name) {
} else if ('VolumeRendering' === name) {
} else {
return null;
}
this.__name = [name];
return this;
}
addName(name = null) {
if ('Core' === name) {
} else if ('CADGeometry' === name) {
} else if ('CubeMapTexturing' === name) {
} else if ('DIS' === name) {
} else if ('EnvironmentalEffects' === name) {
} else if ('EnvironmentalSensor' === name) {
} else if ('EventUtilities' === name) {
} else if ('Followers' === name) {
} else if ('Geometry2D' === name) {
} else if ('Geometry3D' === name) {
} else if ('Geospatial' === name) {
} else if ('Grouping' === name) {
} else if ('HAnim' === name) {
} else if ('H-Anim' === name) {
} else if ('Interpolation' === name) {
} else if ('KeyDeviceSensor' === name) {
} else if ('Layering' === name) {
} else if ('Layout' === name) {
} else if ('Lighting' === name) {
} else if ('Navigation' === name) {
} else if ('Networking' === name) {
} else if ('NURBS' === name) {
} else if ('ParticleSystems' === name) {
} else if ('Picking' === name) {
} else if ('PointingDeviceSensor' === name) {
} else if ('Rendering' === name) {
} else if ('RigidBodyPhysics' === name) {
} else if ('Scripting' === name) {
} else if ('Shaders' === name) {
} else if ('Shape' === name) {
} else if ('Sound' === name) {
} else if ('Text' === name) {
} else if ('Texturing' === name) {
} else if ('Texturing3D' === name) {
} else if ('Time' === name) {
} else if ('VolumeRendering' === name) {
} else {
return null;
}
if (this.__name == null) {
this.__name = [];
}
this.__name.append(name);
return this;
}
removeName(name) {
for( let i = 0; i < this.__name.length; i++) {
if ( this.__name[i] === name) {
this.__name.splice(i, 1);
}
}
return this.__name;
}
get name() {
return this.__name;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
str += ''
return str;
}
}
export class connect {
constructor(kwargs = {}) {
var nodeField = kwargs["nodeField"] || null;
this.__nodeField = nodeField;
var protoField = kwargs["protoField"] || null;
this.__protoField = protoField;
}
set nodeField(nodeField = null) {
this.__nodeField = [nodeField];
return this;
}
addNodeField(nodeField = null) {
if (this.__nodeField == null) {
this.__nodeField = [];
}
this.__nodeField.append(nodeField);
return this;
}
removeNodeField(nodeField) {
for( let i = 0; i < this.__nodeField.length; i++) {
if ( this.__nodeField[i] === nodeField) {
this.__nodeField.splice(i, 1);
}
}
return this.__nodeField;
}
get nodeField() {
return this.__nodeField;
}
set protoField(protoField = null) {
this.__protoField = [protoField];
return this;
}
addProtoField(protoField = null) {
if (this.__protoField == null) {
this.__protoField = [];
}
this.__protoField.append(protoField);
return this;
}
removeProtoField(protoField) {
for( let i = 0; i < this.__protoField.length; i++) {
if ( this.__protoField[i] === protoField) {
this.__protoField.splice(i, 1);
}
}
return this.__protoField;
}
get protoField() {
return this.__protoField;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
str += ''
return str;
}
}
export class EXPORT {
constructor(kwargs = {}) {
var AS = kwargs["AS"] || null;
this.__AS = AS;
var localDEF = kwargs["localDEF"] || null;
this.__localDEF = localDEF;
}
set AS(AS = null) {
this.__AS = [AS];
return this;
}
addAS(AS = null) {
if (this.__AS == null) {
this.__AS = [];
}
this.__AS.append(AS);
return this;
}
removeAS(AS) {
for( let i = 0; i < this.__AS.length; i++) {
if ( this.__AS[i] === AS) {
this.__AS.splice(i, 1);
}
}
return this.__AS;
}
get AS() {
return this.__AS;
}
set localDEF(localDEF = null) {
this.__localDEF = [localDEF];
return this;
}
addLocalDEF(localDEF = null) {
if (this.__localDEF == null) {
this.__localDEF = [];
}
this.__localDEF.append(localDEF);
return this;
}
removeLocalDEF(localDEF) {
for( let i = 0; i < this.__localDEF.length; i++) {
if ( this.__localDEF[i] === localDEF) {
this.__localDEF.splice(i, 1);
}
}
return this.__localDEF;
}
get localDEF() {
return this.__localDEF;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
str += ''
return str;
}
}
export class ExternProtoDeclare {
constructor(kwargs = {}) {
var appinfo = kwargs["appinfo"] || null;
this.__appinfo = appinfo;
var documentation = kwargs["documentation"] || null;
this.__documentation = documentation;
var field = kwargs["field"] || null;
this.__field = field;
var name = kwargs["name"] || null;
this.__name = name;
var url = kwargs["url"] || null;
this.__url = url;
}
set appinfo(appinfo = null) {
this.__appinfo = [appinfo];
return this;
}
addAppinfo(appinfo = null) {
if (this.__appinfo == null) {
this.__appinfo = [];
}
this.__appinfo.append(appinfo);
return this;
}
removeAppinfo(appinfo) {
for( let i = 0; i < this.__appinfo.length; i++) {
if ( this.__appinfo[i] === appinfo) {
this.__appinfo.splice(i, 1);
}
}
return this.__appinfo;
}
get appinfo() {
return this.__appinfo;
}
set documentation(documentation = null) {
this.__documentation = [documentation];
return this;
}
addDocumentation(documentation = null) {
if (this.__documentation == null) {
this.__documentation = [];
}
this.__documentation.append(documentation);
return this;
}
removeDocumentation(documentation) {
for( let i = 0; i < this.__documentation.length; i++) {
if ( this.__documentation[i] === documentation) {
this.__documentation.splice(i, 1);
}
}
return this.__documentation;
}
get documentation() {
return this.__documentation;
}
set field(field = null) {
this.__field = [field];
return this;
}
addField(field = null) {
if (this.__field == null) {
this.__field = [];
}
this.__field.append(field);
return this;
}
removeField(field) {
for( let i = 0; i < this.__field.length; i++) {
if ( this.__field[i] === field) {
this.__field.splice(i, 1);
}
}
return this.__field;
}
get field() {
return this.__field;
}
set name(name = null) {
this.__name = [name];
return this;
}
addName(name = null) {
if (this.__name == null) {
this.__name = [];
}
this.__name.append(name);
return this;
}
removeName(name) {
for( let i = 0; i < this.__name.length; i++) {
if ( this.__name[i] === name) {
this.__name.splice(i, 1);
}
}
return this.__name;
}
get name() {
return this.__name;
}
set url(url = null) {
this.__url = [url];
return this;
}
addUrl(url = null) {
if (this.__url == null) {
this.__url = [];
}
this.__url.append(url);
return this;
}
removeUrl(url) {
for( let i = 0; i < this.__url.length; i++) {
if ( this.__url[i] === url) {
this.__url.splice(i, 1);
}
}
return this.__url;
}
get url() {
return this.__url;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__field === null) {
} else if (typeof this.__field.toXMLNode === 'function') {
str += this.__field.toXMLNode('field');
} else if (typeof this.__field === 'string') {
str += ' field="'+this.__field+'"';
} else if (Array.isArray( this.__field)) {
if (typeof this.__field[0].toXMLNode !== 'function') {
str += ' field="'+this.__field.join(' ')+'"';
} else {
for (let i in this.__field) {
if (typeof this.__field[i].toXMLNode === 'function') {
str += this.__field[i].toXMLNode('field');
}
}
}
} else {
str += ' field="'+this.__field+'"';
}
str += ''
return str;
}
}
export class field {
constructor(kwargs = {}) {
var accessType = kwargs["accessType"] || null;
this.__accessType = accessType;
var appinfo = kwargs["appinfo"] || null;
this.__appinfo = appinfo;
var children = kwargs["children"] || null;
this.__children = children;
var documentation = kwargs["documentation"] || null;
this.__documentation = documentation;
var name = kwargs["name"] || null;
this.__name = name;
var type = kwargs["type"] || null;
if ('SFBool' === type) {
} else if ('MFBool' === type) {
} else if ('SFColor' === type) {
} else if ('MFColor' === type) {
} else if ('SFColorRGBA' === type) {
} else if ('MFColorRGBA' === type) {
} else if ('SFDouble' === type) {
} else if ('MFDouble' === type) {
} else if ('SFFloat' === type) {
} else if ('MFFloat' === type) {
} else if ('SFImage' === type) {
} else if ('MFImage' === type) {
} else if ('SFInt32' === type) {
} else if ('MFInt32' === type) {
} else if ('SFNode' === type) {
} else if ('MFNode' === type) {
} else if ('SFRotation' === type) {
} else if ('MFRotation' === type) {
} else if ('SFString' === type) {
} else if ('MFString' === type) {
} else if ('SFTime' === type) {
} else if ('MFTime' === type) {
} else if ('SFVec2d' === type) {
} else if ('MFVec2d' === type) {
} else if ('SFVec2f' === type) {
} else if ('MFVec2f' === type) {
} else if ('SFVec3d' === type) {
} else if ('MFVec3d' === type) {
} else if ('SFVec3f' === type) {
} else if ('MFVec3f' === type) {
} else if ('SFVec4d' === type) {
} else if ('MFVec4d' === type) {
} else if ('SFVec4f' === type) {
} else if ('MFVec4f' === type) {
} else if ('SFMatrix3d' === type) {
} else if ('MFMatrix3d' === type) {
} else if ('SFMatrix3f' === type) {
} else if ('MFMatrix3f' === type) {
} else if ('SFMatrix4d' === type) {
} else if ('MFMatrix4d' === type) {
} else if ('SFMatrix4f' === type) {
} else if ('MFMatrix4f' === type) {
} else {
return null;
}
this.__type = type;
var value = kwargs["value"] || null;
this.__value = value;
var children = kwargs["children"] || null;
this.__children = children;
}
set accessType(accessType = null) {
if ('initializeOnly' === accessType) {
} else if ('inputOnly' === accessType) {
} else if ('outputOnly' === accessType) {
} else if ('inputOutput' === accessType) {
} else {
return null;
}
this.__accessType = [accessType];
return this;
}
addAccessType(accessType = null) {
if ('initializeOnly' === accessType) {
} else if ('inputOnly' === accessType) {
} else if ('outputOnly' === accessType) {
} else if ('inputOutput' === accessType) {
} else {
return null;
}
if (this.__accessType == null) {
this.__accessType = [];
}
this.__accessType.append(accessType);
return this;
}
removeAccessType(accessType) {
for( let i = 0; i < this.__accessType.length; i++) {
if ( this.__accessType[i] === accessType) {
this.__accessType.splice(i, 1);
}
}
return this.__accessType;
}
get accessType() {
return this.__accessType;
}
set appinfo(appinfo = null) {
this.__appinfo = [appinfo];
return this;
}
addAppinfo(appinfo = null) {
if (this.__appinfo == null) {
this.__appinfo = [];
}
this.__appinfo.append(appinfo);
return this;
}
removeAppinfo(appinfo) {
for( let i = 0; i < this.__appinfo.length; i++) {
if ( this.__appinfo[i] === appinfo) {
this.__appinfo.splice(i, 1);
}
}
return this.__appinfo;
}
get appinfo() {
return this.__appinfo;
}
set children(children = null) {
this.__children = [children];
return this;
}
addChildren(children = null) {
if (this.__children == null) {
this.__children = [];
}
this.__children.append(children);
return this;
}
removeChildren(children) {
for( let i = 0; i < this.__children.length; i++) {
if ( this.__children[i] === children) {
this.__children.splice(i, 1);
}
}
return this.__children;
}
get children() {
return this.__children;
}
set documentation(documentation = null) {
this.__documentation = [documentation];
return this;
}
addDocumentation(documentation = null) {
if (this.__documentation == null) {
this.__documentation = [];
}
this.__documentation.append(documentation);
return this;
}
removeDocumentation(documentation) {
for( let i = 0; i < this.__documentation.length; i++) {
if ( this.__documentation[i] === documentation) {
this.__documentation.splice(i, 1);
}
}
return this.__documentation;
}
get documentation() {
return this.__documentation;
}
set name(name = null) {
this.__name = [name];
return this;
}
addName(name = null) {
if (this.__name == null) {
this.__name = [];
}
this.__name.append(name);
return this;
}
removeName(name) {
for( let i = 0; i < this.__name.length; i++) {
if ( this.__name[i] === name) {
this.__name.splice(i, 1);
}
}
return this.__name;
}
get name() {
return this.__name;
}
set type(type = null) {
if ('SFBool' === type) {
} else if ('MFBool' === type) {
} else if ('SFColor' === type) {
} else if ('MFColor' === type) {
} else if ('SFColorRGBA' === type) {
} else if ('MFColorRGBA' === type) {
} else if ('SFDouble' === type) {
} else if ('MFDouble' === type) {
} else if ('SFFloat' === type) {
} else if ('MFFloat' === type) {
} else if ('SFImage' === type) {
} else if ('MFImage' === type) {
} else if ('SFInt32' === type) {
} else if ('MFInt32' === type) {
} else if ('SFNode' === type) {
} else if ('MFNode' === type) {
} else if ('SFRotation' === type) {
} else if ('MFRotation' === type) {
} else if ('SFString' === type) {
} else if ('MFString' === type) {
} else if ('SFTime' === type) {
} else if ('MFTime' === type) {
} else if ('SFVec2d' === type) {
} else if ('MFVec2d' === type) {
} else if ('SFVec2f' === type) {
} else if ('MFVec2f' === type) {
} else if ('SFVec3d' === type) {
} else if ('MFVec3d' === type) {
} else if ('SFVec3f' === type) {
} else if ('MFVec3f' === type) {
} else if ('SFVec4d' === type) {
} else if ('MFVec4d' === type) {
} else if ('SFVec4f' === type) {
} else if ('MFVec4f' === type) {
} else if ('SFMatrix3d' === type) {
} else if ('MFMatrix3d' === type) {
} else if ('SFMatrix3f' === type) {
} else if ('MFMatrix3f' === type) {
} else if ('SFMatrix4d' === type) {
} else if ('MFMatrix4d' === type) {
} else if ('SFMatrix4f' === type) {
} else if ('MFMatrix4f' === type) {
} else {
return null;
}
this.__type = [type];
return this;
}
addType(type = null) {
if ('SFBool' === type) {
} else if ('MFBool' === type) {
} else if ('SFColor' === type) {
} else if ('MFColor' === type) {
} else if ('SFColorRGBA' === type) {
} else if ('MFColorRGBA' === type) {
} else if ('SFDouble' === type) {
} else if ('MFDouble' === type) {
} else if ('SFFloat' === type) {
} else if ('MFFloat' === type) {
} else if ('SFImage' === type) {
} else if ('MFImage' === type) {
} else if ('SFInt32' === type) {
} else if ('MFInt32' === type) {
} else if ('SFNode' === type) {
} else if ('MFNode' === type) {
} else if ('SFRotation' === type) {
} else if ('MFRotation' === type) {
} else if ('SFString' === type) {
} else if ('MFString' === type) {
} else if ('SFTime' === type) {
} else if ('MFTime' === type) {
} else if ('SFVec2d' === type) {
} else if ('MFVec2d' === type) {
} else if ('SFVec2f' === type) {
} else if ('MFVec2f' === type) {
} else if ('SFVec3d' === type) {
} else if ('MFVec3d' === type) {
} else if ('SFVec3f' === type) {
} else if ('MFVec3f' === type) {
} else if ('SFVec4d' === type) {
} else if ('MFVec4d' === type) {
} else if ('SFVec4f' === type) {
} else if ('MFVec4f' === type) {
} else if ('SFMatrix3d' === type) {
} else if ('MFMatrix3d' === type) {
} else if ('SFMatrix3f' === type) {
} else if ('MFMatrix3f' === type) {
} else if ('SFMatrix4d' === type) {
} else if ('MFMatrix4d' === type) {
} else if ('SFMatrix4f' === type) {
} else if ('MFMatrix4f' === type) {
} else {
return null;
}
if (this.__type == null) {
this.__type = [];
}
this.__type.append(type);
return this;
}
removeType(type) {
for( let i = 0; i < this.__type.length; i++) {
if ( this.__type[i] === type) {
this.__type.splice(i, 1);
}
}
return this.__type;
}
get type() {
return this.__type;
}
set value(value = null) {
this.__value = [value];
return this;
}
addValue(value = null) {
if (this.__value == null) {
this.__value = [];
}
this.__value.append(value);
return this;
}
removeValue(value) {
for( let i = 0; i < this.__value.length; i++) {
if ( this.__value[i] === value) {
this.__value.splice(i, 1);
}
}
return this.__value;
}
get value() {
return this.__value;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
set children(children = null) {
this.__children = [children];
return this;
}
addChildren(children = null) {
if (this.__children == null) {
this.__children = [];
}
this.__children.append(children);
return this;
}
removeChildren(children) {
for( let i = 0; i < this.__children.length; i++) {
if ( this.__children[i] === children) {
this.__children.splice(i, 1);
}
}
return this.__children;
}
get children() {
return this.__children;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__children === null) {
} else if (typeof this.__children.toXMLNode === 'function') {
str += this.__children.toXMLNode('children');
} else if (typeof this.__children === 'string') {
str += ' children="'+this.__children+'"';
} else if (Array.isArray( this.__children)) {
if (typeof this.__children[0].toXMLNode !== 'function') {
str += ' children="'+this.__children.join(' ')+'"';
} else {
for (let i in this.__children) {
if (typeof this.__children[i].toXMLNode === 'function') {
str += this.__children[i].toXMLNode('children');
}
}
}
} else {
str += ' children="'+this.__children+'"';
}
str += ''
return str;
}
}
export class fieldValue {
constructor(kwargs = {}) {
var children = kwargs["children"] || null;
this.__children = children;
var name = kwargs["name"] || null;
this.__name = name;
var value = kwargs["value"] || null;
this.__value = value;
}
set children(children = null) {
this.__children = [children];
return this;
}
addChildren(children = null) {
if (this.__children == null) {
this.__children = [];
}
this.__children.append(children);
return this;
}
removeChildren(children) {
for( let i = 0; i < this.__children.length; i++) {
if ( this.__children[i] === children) {
this.__children.splice(i, 1);
}
}
return this.__children;
}
get children() {
return this.__children;
}
set name(name = null) {
this.__name = [name];
return this;
}
addName(name = null) {
if (this.__name == null) {
this.__name = [];
}
this.__name.append(name);
return this;
}
removeName(name) {
for( let i = 0; i < this.__name.length; i++) {
if ( this.__name[i] === name) {
this.__name.splice(i, 1);
}
}
return this.__name;
}
get name() {
return this.__name;
}
set value(value = null) {
this.__value = [value];
return this;
}
addValue(value = null) {
if (this.__value == null) {
this.__value = [];
}
this.__value.append(value);
return this;
}
removeValue(value) {
for( let i = 0; i < this.__value.length; i++) {
if ( this.__value[i] === value) {
this.__value.splice(i, 1);
}
}
return this.__value;
}
get value() {
return this.__value;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__children === null) {
} else if (typeof this.__children.toXMLNode === 'function') {
str += this.__children.toXMLNode('children');
} else if (typeof this.__children === 'string') {
str += ' children="'+this.__children+'"';
} else if (Array.isArray( this.__children)) {
if (typeof this.__children[0].toXMLNode !== 'function') {
str += ' children="'+this.__children.join(' ')+'"';
} else {
for (let i in this.__children) {
if (typeof this.__children[i].toXMLNode === 'function') {
str += this.__children[i].toXMLNode('children');
}
}
}
} else {
str += ' children="'+this.__children+'"';
}
str += ''
return str;
}
}
export class head {
constructor(kwargs = {}) {
var component = kwargs["component"] || null;
this.__component = component;
var meta = kwargs["meta"] || null;
this.__meta = meta;
var unit = kwargs["unit"] || null;
this.__unit = unit;
}
set component(component = null) {
this.__component = [component];
return this;
}
addComponent(component = null) {
if (this.__component == null) {
this.__component = [];
}
this.__component.append(component);
return this;
}
removeComponent(component) {
for( let i = 0; i < this.__component.length; i++) {
if ( this.__component[i] === component) {
this.__component.splice(i, 1);
}
}
return this.__component;
}
get component() {
return this.__component;
}
set meta(meta = null) {
this.__meta = [meta];
return this;
}
addMeta(meta = null) {
if (this.__meta == null) {
this.__meta = [];
}
this.__meta.append(meta);
return this;
}
removeMeta(meta) {
for( let i = 0; i < this.__meta.length; i++) {
if ( this.__meta[i] === meta) {
this.__meta.splice(i, 1);
}
}
return this.__meta;
}
get meta() {
return this.__meta;
}
set unit(unit = null) {
this.__unit = [unit];
return this;
}
addUnit(unit = null) {
if (this.__unit == null) {
this.__unit = [];
}
this.__unit.append(unit);
return this;
}
removeUnit(unit) {
for( let i = 0; i < this.__unit.length; i++) {
if ( this.__unit[i] === unit) {
this.__unit.splice(i, 1);
}
}
return this.__unit;
}
get unit() {
return this.__unit;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
set meta(meta = null) {
this.__meta = [meta];
return this;
}
addMeta(meta = null) {
if (this.__meta == null) {
this.__meta = [];
}
this.__meta.append(meta);
return this;
}
removeMeta(meta) {
for( let i = 0; i < this.__meta.length; i++) {
if ( this.__meta[i] === meta) {
this.__meta.splice(i, 1);
}
}
return this.__meta;
}
get meta() {
return this.__meta;
}
toXMLNode(attrName) {
let str = ''
str += '
'
if (this.__component === null) {
} else if (typeof this.__component.toXMLNode === 'function') {
str += this.__component.toXMLNode('component');
} else if (typeof this.__component === 'string') {
str += ' component="'+this.__component+'"';
} else if (Array.isArray( this.__component)) {
if (typeof this.__component[0].toXMLNode !== 'function') {
str += ' component="'+this.__component.join(' ')+'"';
} else {
for (let i in this.__component) {
if (typeof this.__component[i].toXMLNode === 'function') {
str += this.__component[i].toXMLNode('component');
}
}
}
} else {
str += ' component="'+this.__component+'"';
}
if (this.__meta === null) {
} else if (typeof this.__meta.toXMLNode === 'function') {
str += this.__meta.toXMLNode('meta');
} else if (typeof this.__meta === 'string') {
str += ' meta="'+this.__meta+'"';
} else if (Array.isArray( this.__meta)) {
if (typeof this.__meta[0].toXMLNode !== 'function') {
str += ' meta="'+this.__meta.join(' ')+'"';
} else {
for (let i in this.__meta) {
if (typeof this.__meta[i].toXMLNode === 'function') {
str += this.__meta[i].toXMLNode('meta');
}
}
}
} else {
str += ' meta="'+this.__meta+'"';
}
if (this.__unit === null) {
} else if (typeof this.__unit.toXMLNode === 'function') {
str += this.__unit.toXMLNode('unit');
} else if (typeof this.__unit === 'string') {
str += ' unit="'+this.__unit+'"';
} else if (Array.isArray( this.__unit)) {
if (typeof this.__unit[0].toXMLNode !== 'function') {
str += ' unit="'+this.__unit.join(' ')+'"';
} else {
for (let i in this.__unit) {
if (typeof this.__unit[i].toXMLNode === 'function') {
str += this.__unit[i].toXMLNode('unit');
}
}
}
} else {
str += ' unit="'+this.__unit+'"';
}
str += ''
return str;
}
}
export class IMPORT {
constructor(kwargs = {}) {
var AS = kwargs["AS"] || null;
this.__AS = AS;
var importedDEF = kwargs["importedDEF"] || null;
this.__importedDEF = importedDEF;
var inlineDEF = kwargs["inlineDEF"] || null;
this.__inlineDEF = inlineDEF;
}
set AS(AS = null) {
this.__AS = [AS];
return this;
}
addAS(AS = null) {
if (this.__AS == null) {
this.__AS = [];
}
this.__AS.append(AS);
return this;
}
removeAS(AS) {
for( let i = 0; i < this.__AS.length; i++) {
if ( this.__AS[i] === AS) {
this.__AS.splice(i, 1);
}
}
return this.__AS;
}
get AS() {
return this.__AS;
}
set importedDEF(importedDEF = null) {
this.__importedDEF = [importedDEF];
return this;
}
addImportedDEF(importedDEF = null) {
if (this.__importedDEF == null) {
this.__importedDEF = [];
}
this.__importedDEF.append(importedDEF);
return this;
}
removeImportedDEF(importedDEF) {
for( let i = 0; i < this.__importedDEF.length; i++) {
if ( this.__importedDEF[i] === importedDEF) {
this.__importedDEF.splice(i, 1);
}
}
return this.__importedDEF;
}
get importedDEF() {
return this.__importedDEF;
}
set inlineDEF(inlineDEF = null) {
this.__inlineDEF = [inlineDEF];
return this;
}
addInlineDEF(inlineDEF = null) {
if (this.__inlineDEF == null) {
this.__inlineDEF = [];
}
this.__inlineDEF.append(inlineDEF);
return this;
}
removeInlineDEF(inlineDEF) {
for( let i = 0; i < this.__inlineDEF.length; i++) {
if ( this.__inlineDEF[i] === inlineDEF) {
this.__inlineDEF.splice(i, 1);
}
}
return this.__inlineDEF;
}
get inlineDEF() {
return this.__inlineDEF;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
str += ''
return str;
}
}
export class IS {
constructor(kwargs = {}) {
var connect = kwargs["connect"] || null;
this.__connect = connect;
}
set connect(connect = null) {
this.__connect = [connect];
return this;
}
addConnect(connect = null) {
if (this.__connect == null) {
this.__connect = [];
}
this.__connect.append(connect);
return this;
}
removeConnect(connect) {
for( let i = 0; i < this.__connect.length; i++) {
if ( this.__connect[i] === connect) {
this.__connect.splice(i, 1);
}
}
return this.__connect;
}
get connect() {
return this.__connect;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__connect === null) {
} else if (typeof this.__connect.toXMLNode === 'function') {
str += this.__connect.toXMLNode('connect');
} else if (typeof this.__connect === 'string') {
str += ' connect="'+this.__connect+'"';
} else if (Array.isArray( this.__connect)) {
if (typeof this.__connect[0].toXMLNode !== 'function') {
str += ' connect="'+this.__connect.join(' ')+'"';
} else {
for (let i in this.__connect) {
if (typeof this.__connect[i].toXMLNode === 'function') {
str += this.__connect[i].toXMLNode('connect');
}
}
}
} else {
str += ' connect="'+this.__connect+'"';
}
str += ''
return str;
}
}
export class meta {
constructor(kwargs = {}) {
var content = kwargs["content"] || null;
this.__content = content;
var dir = kwargs["dir"] || null;
this.__dir = dir;
var http_equiv = kwargs["http_equiv"] || null;
this.__http_equiv = http_equiv;
var lang = kwargs["lang"] || null;
this.__lang = lang;
var name = kwargs["name"] || null;
this.__name = name;
var scheme = kwargs["scheme"] || null;
this.__scheme = scheme;
}
set content(content = null) {
this.__content = [content];
return this;
}
addContent(content = null) {
if (this.__content == null) {
this.__content = [];
}
this.__content.append(content);
return this;
}
removeContent(content) {
for( let i = 0; i < this.__content.length; i++) {
if ( this.__content[i] === content) {
this.__content.splice(i, 1);
}
}
return this.__content;
}
get content() {
return this.__content;
}
set dir(dir = null) {
this.__dir = [dir];
return this;
}
addDir(dir = null) {
if (this.__dir == null) {
this.__dir = [];
}
this.__dir.append(dir);
return this;
}
removeDir(dir) {
for( let i = 0; i < this.__dir.length; i++) {
if ( this.__dir[i] === dir) {
this.__dir.splice(i, 1);
}
}
return this.__dir;
}
get dir() {
return this.__dir;
}
set http_equiv(http_equiv = null) {
this.__http_equiv = [http_equiv];
return this;
}
addHttp_equiv(http_equiv = null) {
if (this.__http_equiv == null) {
this.__http_equiv = [];
}
this.__http_equiv.append(http_equiv);
return this;
}
removeHttp_equiv(http_equiv) {
for( let i = 0; i < this.__http_equiv.length; i++) {
if ( this.__http_equiv[i] === http_equiv) {
this.__http_equiv.splice(i, 1);
}
}
return this.__http_equiv;
}
get http_equiv() {
return this.__http_equiv;
}
set lang(lang = null) {
this.__lang = [lang];
return this;
}
addLang(lang = null) {
if (this.__lang == null) {
this.__lang = [];
}
this.__lang.append(lang);
return this;
}
removeLang(lang) {
for( let i = 0; i < this.__lang.length; i++) {
if ( this.__lang[i] === lang) {
this.__lang.splice(i, 1);
}
}
return this.__lang;
}
get lang() {
return this.__lang;
}
set name(name = null) {
this.__name = [name];
return this;
}
addName(name = null) {
if (this.__name == null) {
this.__name = [];
}
this.__name.append(name);
return this;
}
removeName(name) {
for( let i = 0; i < this.__name.length; i++) {
if ( this.__name[i] === name) {
this.__name.splice(i, 1);
}
}
return this.__name;
}
get name() {
return this.__name;
}
set scheme(scheme = null) {
this.__scheme = [scheme];
return this;
}
addScheme(scheme = null) {
if (this.__scheme == null) {
this.__scheme = [];
}
this.__scheme.append(scheme);
return this;
}
removeScheme(scheme) {
for( let i = 0; i < this.__scheme.length; i++) {
if ( this.__scheme[i] === scheme) {
this.__scheme.splice(i, 1);
}
}
return this.__scheme;
}
get scheme() {
return this.__scheme;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
str += ''
return str;
}
}
export class ProtoBody {
constructor(kwargs = {}) {
var children = kwargs["children"] || null;
this.__children = children;
}
set children(children = null) {
this.__children = [children];
return this;
}
addChildren(children = null) {
if (this.__children == null) {
this.__children = [];
}
this.__children.append(children);
return this;
}
removeChildren(children) {
for( let i = 0; i < this.__children.length; i++) {
if ( this.__children[i] === children) {
this.__children.splice(i, 1);
}
}
return this.__children;
}
get children() {
return this.__children;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__children === null) {
} else if (typeof this.__children.toXMLNode === 'function') {
str += this.__children.toXMLNode('children');
} else if (typeof this.__children === 'string') {
str += ' children="'+this.__children+'"';
} else if (Array.isArray( this.__children)) {
if (typeof this.__children[0].toXMLNode !== 'function') {
str += ' children="'+this.__children.join(' ')+'"';
} else {
for (let i in this.__children) {
if (typeof this.__children[i].toXMLNode === 'function') {
str += this.__children[i].toXMLNode('children');
}
}
}
} else {
str += ' children="'+this.__children+'"';
}
str += ''
return str;
}
}
export class ProtoDeclare {
constructor(kwargs = {}) {
var appinfo = kwargs["appinfo"] || null;
this.__appinfo = appinfo;
var documentation = kwargs["documentation"] || null;
this.__documentation = documentation;
var name = kwargs["name"] || null;
this.__name = name;
var ProtoBody = kwargs["ProtoBody"] || null;
this.__ProtoBody = ProtoBody;
var ProtoInterface = kwargs["ProtoInterface"] || null;
this.__ProtoInterface = ProtoInterface;
}
set appinfo(appinfo = null) {
this.__appinfo = [appinfo];
return this;
}
addAppinfo(appinfo = null) {
if (this.__appinfo == null) {
this.__appinfo = [];
}
this.__appinfo.append(appinfo);
return this;
}
removeAppinfo(appinfo) {
for( let i = 0; i < this.__appinfo.length; i++) {
if ( this.__appinfo[i] === appinfo) {
this.__appinfo.splice(i, 1);
}
}
return this.__appinfo;
}
get appinfo() {
return this.__appinfo;
}
set documentation(documentation = null) {
this.__documentation = [documentation];
return this;
}
addDocumentation(documentation = null) {
if (this.__documentation == null) {
this.__documentation = [];
}
this.__documentation.append(documentation);
return this;
}
removeDocumentation(documentation) {
for( let i = 0; i < this.__documentation.length; i++) {
if ( this.__documentation[i] === documentation) {
this.__documentation.splice(i, 1);
}
}
return this.__documentation;
}
get documentation() {
return this.__documentation;
}
set name(name = null) {
this.__name = [name];
return this;
}
addName(name = null) {
if (this.__name == null) {
this.__name = [];
}
this.__name.append(name);
return this;
}
removeName(name) {
for( let i = 0; i < this.__name.length; i++) {
if ( this.__name[i] === name) {
this.__name.splice(i, 1);
}
}
return this.__name;
}
get name() {
return this.__name;
}
set ProtoBody(ProtoBody = null) {
this.__ProtoBody = [ProtoBody];
return this;
}
addProtoBody(ProtoBody = null) {
if (this.__ProtoBody == null) {
this.__ProtoBody = [];
}
this.__ProtoBody.append(ProtoBody);
return this;
}
removeProtoBody(ProtoBody) {
for( let i = 0; i < this.__ProtoBody.length; i++) {
if ( this.__ProtoBody[i] === ProtoBody) {
this.__ProtoBody.splice(i, 1);
}
}
return this.__ProtoBody;
}
get ProtoBody() {
return this.__ProtoBody;
}
set ProtoInterface(ProtoInterface = null) {
this.__ProtoInterface = [ProtoInterface];
return this;
}
addProtoInterface(ProtoInterface = null) {
if (this.__ProtoInterface == null) {
this.__ProtoInterface = [];
}
this.__ProtoInterface.append(ProtoInterface);
return this;
}
removeProtoInterface(ProtoInterface) {
for( let i = 0; i < this.__ProtoInterface.length; i++) {
if ( this.__ProtoInterface[i] === ProtoInterface) {
this.__ProtoInterface.splice(i, 1);
}
}
return this.__ProtoInterface;
}
get ProtoInterface() {
return this.__ProtoInterface;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__ProtoBody === null) {
} else if (typeof this.__ProtoBody.toXMLNode === 'function') {
str += this.__ProtoBody.toXMLNode('ProtoBody');
} else if (typeof this.__ProtoBody === 'string') {
str += ' ProtoBody="'+this.__ProtoBody+'"';
} else if (Array.isArray( this.__ProtoBody)) {
if (typeof this.__ProtoBody[0].toXMLNode !== 'function') {
str += ' ProtoBody="'+this.__ProtoBody.join(' ')+'"';
} else {
for (let i in this.__ProtoBody) {
if (typeof this.__ProtoBody[i].toXMLNode === 'function') {
str += this.__ProtoBody[i].toXMLNode('ProtoBody');
}
}
}
} else {
str += ' ProtoBody="'+this.__ProtoBody+'"';
}
if (this.__ProtoInterface === null) {
} else if (typeof this.__ProtoInterface.toXMLNode === 'function') {
str += this.__ProtoInterface.toXMLNode('ProtoInterface');
} else if (typeof this.__ProtoInterface === 'string') {
str += ' ProtoInterface="'+this.__ProtoInterface+'"';
} else if (Array.isArray( this.__ProtoInterface)) {
if (typeof this.__ProtoInterface[0].toXMLNode !== 'function') {
str += ' ProtoInterface="'+this.__ProtoInterface.join(' ')+'"';
} else {
for (let i in this.__ProtoInterface) {
if (typeof this.__ProtoInterface[i].toXMLNode === 'function') {
str += this.__ProtoInterface[i].toXMLNode('ProtoInterface');
}
}
}
} else {
str += ' ProtoInterface="'+this.__ProtoInterface+'"';
}
str += ''
return str;
}
}
export class ProtoInterface {
constructor(kwargs = {}) {
var field = kwargs["field"] || null;
this.__field = field;
}
set field(field = null) {
this.__field = [field];
return this;
}
addField(field = null) {
if (this.__field == null) {
this.__field = [];
}
this.__field.append(field);
return this;
}
removeField(field) {
for( let i = 0; i < this.__field.length; i++) {
if ( this.__field[i] === field) {
this.__field.splice(i, 1);
}
}
return this.__field;
}
get field() {
return this.__field;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__field === null) {
} else if (typeof this.__field.toXMLNode === 'function') {
str += this.__field.toXMLNode('field');
} else if (typeof this.__field === 'string') {
str += ' field="'+this.__field+'"';
} else if (Array.isArray( this.__field)) {
if (typeof this.__field[0].toXMLNode !== 'function') {
str += ' field="'+this.__field.join(' ')+'"';
} else {
for (let i in this.__field) {
if (typeof this.__field[i].toXMLNode === 'function') {
str += this.__field[i].toXMLNode('field');
}
}
}
} else {
str += ' field="'+this.__field+'"';
}
str += ''
return str;
}
}
export class ROUTE {
constructor(kwargs = {}) {
var fromField = kwargs["fromField"] || null;
this.__fromField = fromField;
var fromNode = kwargs["fromNode"] || null;
this.__fromNode = fromNode;
var toField = kwargs["toField"] || null;
this.__toField = toField;
var toNode = kwargs["toNode"] || null;
this.__toNode = toNode;
}
set fromField(fromField = null) {
this.__fromField = [fromField];
return this;
}
addFromField(fromField = null) {
if (this.__fromField == null) {
this.__fromField = [];
}
this.__fromField.append(fromField);
return this;
}
removeFromField(fromField) {
for( let i = 0; i < this.__fromField.length; i++) {
if ( this.__fromField[i] === fromField) {
this.__fromField.splice(i, 1);
}
}
return this.__fromField;
}
get fromField() {
return this.__fromField;
}
set fromNode(fromNode = null) {
this.__fromNode = [fromNode];
return this;
}
addFromNode(fromNode = null) {
if (this.__fromNode == null) {
this.__fromNode = [];
}
this.__fromNode.append(fromNode);
return this;
}
removeFromNode(fromNode) {
for( let i = 0; i < this.__fromNode.length; i++) {
if ( this.__fromNode[i] === fromNode) {
this.__fromNode.splice(i, 1);
}
}
return this.__fromNode;
}
get fromNode() {
return this.__fromNode;
}
set toField(toField = null) {
this.__toField = [toField];
return this;
}
addToField(toField = null) {
if (this.__toField == null) {
this.__toField = [];
}
this.__toField.append(toField);
return this;
}
removeToField(toField) {
for( let i = 0; i < this.__toField.length; i++) {
if ( this.__toField[i] === toField) {
this.__toField.splice(i, 1);
}
}
return this.__toField;
}
get toField() {
return this.__toField;
}
set toNode(toNode = null) {
this.__toNode = [toNode];
return this;
}
addToNode(toNode = null) {
if (this.__toNode == null) {
this.__toNode = [];
}
this.__toNode.append(toNode);
return this;
}
removeToNode(toNode) {
for( let i = 0; i < this.__toNode.length; i++) {
if ( this.__toNode[i] === toNode) {
this.__toNode.splice(i, 1);
}
}
return this.__toNode;
}
get toNode() {
return this.__toNode;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
str += ''
return str;
}
}
export class Scene {
constructor(kwargs = {}) {
var children = kwargs["children"] || null;
this.__children = children;
var LayerSet = kwargs["LayerSet"] || null;
this.__LayerSet = LayerSet;
}
set children(children = null) {
this.__children = [children];
return this;
}
addChildren(children = null) {
if (this.__children == null) {
this.__children = [];
}
this.__children.append(children);
return this;
}
removeChildren(children) {
for( let i = 0; i < this.__children.length; i++) {
if ( this.__children[i] === children) {
this.__children.splice(i, 1);
}
}
return this.__children;
}
get children() {
return this.__children;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
set LayerSet(LayerSet = null) {
this.__LayerSet = [LayerSet];
return this;
}
addLayerSet(LayerSet = null) {
if (this.__LayerSet == null) {
this.__LayerSet = [];
}
this.__LayerSet.append(LayerSet);
return this;
}
removeLayerSet(LayerSet) {
for( let i = 0; i < this.__LayerSet.length; i++) {
if ( this.__LayerSet[i] === LayerSet) {
this.__LayerSet.splice(i, 1);
}
}
return this.__LayerSet;
}
get LayerSet() {
return this.__LayerSet;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__children === null) {
} else if (typeof this.__children.toXMLNode === 'function') {
str += this.__children.toXMLNode('children');
} else if (typeof this.__children === 'string') {
str += ' children="'+this.__children+'"';
} else if (Array.isArray( this.__children)) {
if (typeof this.__children[0].toXMLNode !== 'function') {
str += ' children="'+this.__children.join(' ')+'"';
} else {
for (let i in this.__children) {
if (typeof this.__children[i].toXMLNode === 'function') {
str += this.__children[i].toXMLNode('children');
}
}
}
} else {
str += ' children="'+this.__children+'"';
}
str += ''
return str;
}
}
export class unit {
constructor(kwargs = {}) {
var category = kwargs["category"] || null;
if ('angle' === category) {
} else if ('force' === category) {
} else if ('length' === category) {
} else if ('mass' === category) {
} else {
return null;
}
this.__category = category;
var conversionFactor = kwargs["conversionFactor"] || 1.0;
if (conversionFactor == null || conversionFactor <= 0) {
return null;
}
this.__conversionFactor = conversionFactor;
var name = kwargs["name"] || null;
this.__name = name;
}
set conversionFactor(conversionFactor = 1.0) {
if (conversionFactor == null || conversionFactor <= 0) {
return null;
}
this.__conversionFactor = [conversionFactor];
return this;
}
addConversionFactor(conversionFactor = 1.0) {
if (conversionFactor == null || conversionFactor <= 0) {
return null;
}
if (this.__conversionFactor == null) {
this.__conversionFactor = [];
}
this.__conversionFactor.append(conversionFactor);
return this;
}
removeConversionFactor(conversionFactor) {
for( let i = 0; i < this.__conversionFactor.length; i++) {
if ( this.__conversionFactor[i] === conversionFactor) {
this.__conversionFactor.splice(i, 1);
}
}
return this.__conversionFactor;
}
get conversionFactor() {
return this.__conversionFactor;
}
set name(name = null) {
this.__name = [name];
return this;
}
addName(name = null) {
if (this.__name == null) {
this.__name = [];
}
this.__name.append(name);
return this;
}
removeName(name) {
for( let i = 0; i < this.__name.length; i++) {
if ( this.__name[i] === name) {
this.__name.splice(i, 1);
}
}
return this.__name;
}
get name() {
return this.__name;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
str += ''
return str;
}
}
export default class X3D {
constructor(kwargs = {}) {
var head = kwargs["head"] || null;
this.__head = head;
var profile = kwargs["profile"] || "Immersive";
if ('Core' === profile) {
} else if ('Interchange' === profile) {
} else if ('CADInterchange' === profile) {
} else if ('Interactive' === profile) {
} else if ('Immersive' === profile) {
} else if ('MedicalInterchange' === profile) {
} else if ('MPEG4Interactive' === profile) {
} else if ('Full' === profile) {
} else {
return null;
}
this.__profile = profile;
var Scene = kwargs["Scene"] || null;
this.__Scene = Scene;
var version = kwargs["version"] || "4.0";
if ('3.0' === version) {
} else if ('3.1' === version) {
} else if ('3.2' === version) {
} else if ('3.3' === version) {
} else if ('4.0' === version) {
} else {
return null;
}
this.__version = version;
}
set head(head = null) {
this.__head = [head];
return this;
}
addHead(head = null) {
if (this.__head == null) {
this.__head = [];
}
this.__head.append(head);
return this;
}
removeHead(head) {
for( let i = 0; i < this.__head.length; i++) {
if ( this.__head[i] === head) {
this.__head.splice(i, 1);
}
}
return this.__head;
}
get head() {
return this.__head;
}
set profile(profile = "Immersive") {
if ('Core' === profile) {
} else if ('Interchange' === profile) {
} else if ('CADInterchange' === profile) {
} else if ('Interactive' === profile) {
} else if ('Immersive' === profile) {
} else if ('MedicalInterchange' === profile) {
} else if ('MPEG4Interactive' === profile) {
} else if ('Full' === profile) {
} else {
return null;
}
this.__profile = [profile];
return this;
}
addProfile(profile = "Immersive") {
if ('Core' === profile) {
} else if ('Interchange' === profile) {
} else if ('CADInterchange' === profile) {
} else if ('Interactive' === profile) {
} else if ('Immersive' === profile) {
} else if ('MedicalInterchange' === profile) {
} else if ('MPEG4Interactive' === profile) {
} else if ('Full' === profile) {
} else {
return null;
}
if (this.__profile == null) {
this.__profile = [];
}
this.__profile.append(profile);
return this;
}
removeProfile(profile) {
for( let i = 0; i < this.__profile.length; i++) {
if ( this.__profile[i] === profile) {
this.__profile.splice(i, 1);
}
}
return this.__profile;
}
get profile() {
return this.__profile;
}
set Scene(Scene = null) {
this.__Scene = [Scene];
return this;
}
addScene(Scene = null) {
if (this.__Scene == null) {
this.__Scene = [];
}
this.__Scene.append(Scene);
return this;
}
removeScene(Scene) {
for( let i = 0; i < this.__Scene.length; i++) {
if ( this.__Scene[i] === Scene) {
this.__Scene.splice(i, 1);
}
}
return this.__Scene;
}
get Scene() {
return this.__Scene;
}
set version(version = "4.0") {
if ('3.0' === version) {
} else if ('3.1' === version) {
} else if ('3.2' === version) {
} else if ('3.3' === version) {
} else if ('4.0' === version) {
} else {
return null;
}
this.__version = [version];
return this;
}
addVersion(version = "4.0") {
if ('3.0' === version) {
} else if ('3.1' === version) {
} else if ('3.2' === version) {
} else if ('3.3' === version) {
} else if ('4.0' === version) {
} else {
return null;
}
if (this.__version == null) {
this.__version = [];
}
this.__version.append(version);
return this;
}
removeVersion(version) {
for( let i = 0; i < this.__version.length; i++) {
if ( this.__version[i] === version) {
this.__version.splice(i, 1);
}
}
return this.__version;
}
get version() {
return this.__version;
}
set comments(comments = null) {
this.__comments = [comments];
return this;
}
addComments(comments = null) {
if (this.__comments == null) {
this.__comments = [];
}
this.__comments.append(comments);
return this;
}
toXMLNode(attrName) {
let str = ''
str += ''
if (this.__head === null) {
} else if (typeof this.__head.toXMLNode === 'function') {
str += this.__head.toXMLNode('head');
} else if (typeof this.__head === 'string') {
str += ' head="'+this.__head+'"';
} else if (Array.isArray( this.__head)) {
if (typeof this.__head[0].toXMLNode !== 'function') {
str += ' head="'+this.__head.join(' ')+'"';
} else {
for (let i in this.__head) {
if (typeof this.__head[i].toXMLNode === 'function') {
str += this.__head[i].toXMLNode('head');
}
}
}
} else {
str += ' head="'+this.__head+'"';
}
if (this.__Scene === null) {
} else if (typeof this.__Scene.toXMLNode === 'function') {
str += this.__Scene.toXMLNode('Scene');
} else if (typeof this.__Scene === 'string') {
str += ' Scene="'+this.__Scene+'"';
} else if (Array.isArray( this.__Scene)) {
if (typeof this.__Scene[0].toXMLNode !== 'function') {
str += ' Scene="'+this.__Scene.join(' ')+'"';
} else {
for (let i in this.__Scene) {
if (typeof this.__Scene[i].toXMLNode === 'function') {
str += this.__Scene[i].toXMLNode('Scene');
}
}
}
} else {
str += ' Scene="'+this.__Scene+'"';
}
str += ''
return str;
}
}
export class SFBool extends Array {
constructor(value_ = null) {
super(value_);
this.__value = value_;
}
toXMLNode(attrName) {
let str = ''
str += ' '+attrName+'='+'"'+this.__value+'"';
return str;
}
}
export class MFBool extends Array {
constructor(value_ = null) {
super(value_);
this.__value = value_;
}
toXMLNode(attrName) {
let str = ''
str += ' '+attrName+'='+'"'+this.__value+'"';
return str;
}
}
export class SFColor extends Array {
constructor(value_ = null) {
super(value_);
this.__value = value_;
}
toXMLNode(attrName) {
let str = ''
str += ' '+attrName+'='+'"'+this.__value+'"';
return str;
}
}
export class MFColor extends Array {
constructor(value_ = null) {
super(value_);
this.__value = value_;
}
toXMLNode(attrName) {
let str = ''
str += ' '+attrName+'='+'"'+this.__value+'"';
return str;
}
}
export class SFColorRGBA extends Array {
constructor(value_ = null) {
super(value_);
this.__value = value_;
}
toXMLNode(attrName) {
let str = ''
str += ' '+attrName+'='+'"'+this.__value+'"';
return str;
}
}
export class MFColorRGBA extends Array {
constructor(value_ = null) {
super(value_);
this.__value = value_;
}
toXMLNode(attrName) {
let str = ''
str += ' '+attrName+'='+'"'+this.__value+'"';
return str;
}
}
export class SFDouble extends Array {
constructor(value_ = null) {
super(value_);
this.__value = value_;
}
toXMLNode(attrName) {
let str = ''
str += ' '+attrName+'='+'"'+this.__value+'"';
return str;
}
}
export class MFDouble extends Array {
constructor(value_ = null) {
super(value_);
this.__value = value_;
}
toXMLNode(attrName) {
let str = ''
str += ' '+attrName+'='+'"'+this.__value+'"';
return str;
}
}
export class SFFloat extends Array {
constructor(value_ = null) {
super(value_);
this.__value = value_;
}
toXMLNode(attrName) {
let str = ''
str += ' '+attrName+'='+'"'+this.__value+'"';
return str;
}
}
export class MFFloat extends Array {
constructor(value_ = null) {
super(value_);
this.__value = value_;
}
toXMLNode(attrName) {
let str = ''
str += ' '+attrName+'='+'"'+this.__value+'"';
return str;
}
}
export class SFImage extends Array {
constructor(value_ = null) {
super(value_);
this.__value = value_;
}
toXMLNode(attrName) {
let str = ''
str += ' '+attrName+'='+'"'+this.__value+'"';
return str;
}
}
export class MFImage extends Array {
constructor(value_ = null) {
super(value_);
this.__value = value_;
}
toXMLNode(attrName) {
let str = ''
str += ' '+attrName+'='+'"'+this.__value+'"';
return str;
}
}
export class SFInt32 extends Array {
constructor(value_ = null) {
super(value_);
this.__value = value_;
}
toXMLNode(attrName) {
let str = ''
str += ' '+attrName+'='+'"'+this.__value+'"';
return str;
}
}
export class MFInt32 extends Array {
constructor(value_ = null) {
super(value_);
this.__value = value_;
}
toXMLNode(attrName) {
let str = ''
str += ' '+attrName+'='+'"'+this.__value+'"';
return str;
}
}
export class SFMatrix3d extends Array {
constructor(value_ = null) {
super(value_);
this.__value = value_;
}
toXMLNode(attrName) {
let str = ''
str += ' '+attrName+'='+'"'+this.__value+'"';
return str;
}
}
export class MFMatrix3d extends Array {
constructor(value_ = null) {
super(value_);
this.__value = value_;
}
toXMLNode(attrName) {
let str = ''
str += ' '+attrName+'='+'"'+this.__value+'"';
return str;
}
}
export class SFMatrix3f extends Array {
constructor(value_ = null) {
super(value_);
this.__value = value_;
}
toXMLNode(attrName) {
let str = ''
str += ' '+attrName+'='+'"'+this.__value+'"';
return str;
}
}
export class MFMatrix3f extends Array {
constructor(value_ = null) {
super(value_);
this.__value = value_;
}
toXMLNode(attrName) {
let str = ''
str += ' '+attrName+'='+'"'+this.__value+'"';
return str;
}
}
export class SFMatrix4d extends Array {
constructor(value_ = null) {
super(value_);
this.__value = value_;
}
toXMLNode(attrName) {
let str = ''
str += ' '+attrName+'='+'"'+this.__value+'"';
return str;
}
}
export class MFMatrix4d extends Array {
constructor(value_ = null) {
super(value_);
this.__value = value_;
}
toXMLNode(attrName) {
let str = ''
str += ' '+attrName+'='+'"'+this.__value+'"';
return str;
}
}
export class SFMatrix4f extends Array {
constructor(value_ = null) {
super(value_);
this.__value = value_;
}
toXMLNode(attrName) {
let str = ''
str += ' '+attrName+'='+'"'+this.__value+'"';
return str;
}
}
export class MFMatrix4f extends Array {
constructor(value_ = null) {
super(value_);
this.__value = value_;
}
toXMLNode(attrName) {
let str = ''
str += ' '+attrName+'='+'"'+this.__value+'"';
return str;
}
}
export class SFString extends Array {
constructor(value_ = null) {
super(value_);
this.__value = value_;
}
toXMLNode(attrName) {
let str = ''
str += ' '+attrName+'='+'"'+this.__value+'"';
return str;
}
}
export class SFNode extends Array {
constructor(value_ = null) {
super(value_);
this.__value = value_;
}
toXMLNode(attrName) {
let str = ''
for (let i in this.__value) {
if (typeof this.__value[i].toXMLNode === 'function') {
str += this.__value[i].toXMLNode(attrName);
}
}
return str;
}
}
export class MFNode extends Array {
constructor(value_ = null) {
super(value_);
this.__value = value_;
}
toXMLNode(attrName) {
let str = ''
for (let i in this.__value) {
if (typeof this.__value[i].toXMLNode === 'function') {
str += this.__value[i].toXMLNode(attrName);
}
}
return str;
}
}
export class SFRotation extends Array {
constructor(value_ = null) {
super(value_);
this.__value = value_;
}
toXMLNode(attrName) {
let str = ''
str += ' '+attrName+'='+'"'+this.__value+'"';
return str;
}
}
export class MFRotation extends Array {
constructor(value_ = null) {
super(value_);
this.__value = value_;
}
toXMLNode(attrName) {
let str = ''
str += ' '+attrName+'='+'"'+this.__value+'"';
return str;
}
}
export class MFString extends Array {
constructor(value_ = null) {
super(value_);
this.__value = value_;
}
toXMLNode(attrName) {
let str = ''
str += ' '+attrName+'='+'"'+this.__value+'"';
return str;
}
}
export class SFTime extends Array {
constructor(value_ = null) {
super(value_);
this.__value = value_;
}
toXMLNode(attrName) {
let str = ''
str += ' '+attrName+'='+'"'+this.__value+'"';
return str;
}
}
export class MFTime extends Array {
constructor(value_ = null) {
super(value_);
this.__value = value_;
}
toXMLNode(attrName) {
let str = ''
str += ' '+attrName+'='+'"'+this.__value+'"';
return str;
}
}
export class SFVec2d extends Array {
constructor(value_ = null) {
super(value_);
this.__value = value_;
}
toXMLNode(attrName) {
let str = ''
str += ' '+attrName+'='+'"'+this.__value+'"';
return str;
}
}
export class MFVec2d extends Array {
constructor(value_ = null) {
super(value_);
this.__value = value_;
}
toXMLNode(attrName) {
let str = ''
str += ' '+attrName+'='+'"'+this.__value+'"';
return str;
}
}
export class SFVec2f extends Array {
constructor(value_ = null) {
super(value_);
this.__value = value_;
}
toXMLNode(attrName) {
let str = ''
str += ' '+attrName+'='+'"'+this.__value+'"';
return str;
}
}
export class MFVec2f extends Array {
constructor(value_ = null) {
super(value_);
this.__value = value_;
}
toXMLNode(attrName) {
let str = ''
str += ' '+attrName+'='+'"'+this.__value+'"';
return str;
}
}
export class SFVec3d extends Array {
constructor(value_ = null) {
super(value_);
this.__value = value_;
}
toXMLNode(attrName) {
let str = ''
str += ' '+attrName+'='+'"'+this.__value+'"';
return str;
}
}
export class MFVec3d extends Array {
constructor(value_ = null) {
super(value_);
this.__value = value_;
}
toXMLNode(attrName) {
let str = ''
str += ' '+attrName+'='+'"'+this.__value+'"';
return str;
}
}
export class SFVec3f extends Array {
constructor(value_ = null) {
super(value_);
this.__value = value_;
}
toXMLNode(attrName) {
let str = ''
str += ' '+attrName+'='+'"'+this.__value+'"';
return str;
}
}
export class MFVec3f extends Array {
constructor(value_ = null) {
super(value_);
this.__value = value_;
}
toXMLNode(attrName) {
let str = ''
str += ' '+attrName+'='+'"'+this.__value+'"';
return str;
}
}
export class SFVec4d extends Array {
constructor(value_ = null) {
super(value_);
this.__value = value_;
}
toXMLNode(attrName) {
let str = ''
str += ' '+attrName+'='+'"'+this.__value+'"';
return str;
}
}
export class MFVec4d extends Array {
constructor(value_ = null) {
super(value_);
this.__value = value_;
}
toXMLNode(attrName) {
let str = ''
str += ' '+attrName+'='+'"'+this.__value+'"';
return str;
}
}
export class SFVec4f extends Array {
constructor(value_ = null) {
super(value_);
this.__value = value_;
}
toXMLNode(attrName) {
let str = ''
str += ' '+attrName+'='+'"'+this.__value+'"';
return str;
}
}
export class MFVec4f extends Array {
constructor(value_ = null) {
super(value_);
this.__value = value_;
}
toXMLNode(attrName) {
let str = ''
str += ' '+attrName+'='+'"'+this.__value+'"';
return str;
}
}