/** * Constructor. */ SoXipBindTextures::SoXipBindTextures() { SO_NODE_CONSTRUCTOR(SoXipBindTextures); SO_NODE_DEFINE_ENUM_VALUE(TextureDimension, TEXTURE_1D); SO_NODE_DEFINE_ENUM_VALUE(TextureDimension, TEXTURE_2D); SO_NODE_DEFINE_ENUM_VALUE(TextureDimension, TEXTURE_3D); SO_NODE_SET_SF_ENUM_TYPE(textureDimension, TextureDimension); // add input fields SO_NODE_ADD_FIELD(textureDimension, (TEXTURE_2D)); SO_NODE_ADD_FIELD(attachmentHandles, (0)); // add output fields SO_NODE_ADD_FIELD(texture0Output, (-1)); SO_NODE_ADD_FIELD(texture1Output, (-1)); SO_NODE_ADD_FIELD(texture2Output, (-1)); SO_NODE_ADD_FIELD(texture3Output, (-1)); SO_NODE_ADD_FIELD(texture4Output, (-1)); SO_NODE_ADD_FIELD(texture5Output, (-1)); SO_NODE_ADD_FIELD(texture6Output, (-1)); SO_NODE_ADD_FIELD(texture7Output, (-1)); //attachmentHandles.deleteValues(0); mNumTextures = attachmentHandles.getNum(); for (int i = 0; i < 16; i++) { mTexHandles[i] = 0; mTexUnits[i] = 0; } mNodeId = 0; mNeedsSync = true; }
SoXipBlendFunc::SoXipBlendFunc() { SO_NODE_CONSTRUCTOR(SoXipBlendFunc); SO_NODE_ADD_FIELD(enableBlending, (true)); SO_NODE_DEFINE_ENUM_VALUE(BlendFactor, ZERO); SO_NODE_DEFINE_ENUM_VALUE(BlendFactor, ONE); SO_NODE_DEFINE_ENUM_VALUE(BlendFactor, SRC_COLOR); SO_NODE_DEFINE_ENUM_VALUE(BlendFactor, DST_COLOR); SO_NODE_DEFINE_ENUM_VALUE(BlendFactor, SRC_ALPHA); SO_NODE_DEFINE_ENUM_VALUE(BlendFactor, DST_ALPHA); SO_NODE_DEFINE_ENUM_VALUE(BlendFactor, ONE_MINUS_SRC_COLOR); SO_NODE_DEFINE_ENUM_VALUE(BlendFactor, ONE_MINUS_DST_COLOR); SO_NODE_DEFINE_ENUM_VALUE(BlendFactor, ONE_MINUS_SRC_ALPHA); SO_NODE_DEFINE_ENUM_VALUE(BlendFactor, ONE_MINUS_DST_ALPHA); SO_NODE_DEFINE_ENUM_VALUE(BlendFactor, CONSTANT_COLOR); SO_NODE_DEFINE_ENUM_VALUE(BlendFactor, CONSTANT_ALPHA); SO_NODE_DEFINE_ENUM_VALUE(BlendFactor, ONE_MINUS_CONSTANT_COLOR); SO_NODE_DEFINE_ENUM_VALUE(BlendFactor, ONE_MINUS_CONSTANT_ALPHA); SO_NODE_DEFINE_ENUM_VALUE(BlendFactor, SRC_ALPHA_SATURATE); SO_NODE_SET_SF_ENUM_TYPE(srcFunc, BlendFactor); SO_NODE_SET_SF_ENUM_TYPE(dstFunc, BlendFactor); SO_NODE_ADD_FIELD(srcFunc, (SRC_ALPHA)); SO_NODE_ADD_FIELD(dstFunc, (ONE_MINUS_SRC_ALPHA)); }
SoXipOverlayManips::SoXipOverlayManips() { SO_NODE_CONSTRUCTOR( SoXipOverlayManips ); SO_NODE_ADD_FIELD( numNodesUpToContainer, (2) ); SO_NODE_ADD_FIELD( multipleSelection, (FALSE) ); SO_NODE_ADD_FIELD( enableSelection, (TRUE) ); // Main separator SO_XIP_KIT_ADD_ENTRY( mTopSeparator, SoSeparator, this ); // Manipulators SO_XIP_KIT_ADD_ENTRY( mHandlerManip, SoXipOverlayHandlerManip, this ); SO_XIP_KIT_ADD_ENTRY( mTransformBox, SoXipOverlayTransformBoxManip, this ); SO_XIP_KIT_ADD_ENTRY( mSelectionManip, SoXipOverlaySelectionManip, this ); SO_XIP_KIT_ADD_ENTRY( mTranslationManip, SoXipOverlayTranslationManip, this ); SO_XIP_KIT_ADD_ENTRY( mSelectionFrame, SoXipOverlaySelectionFrame, this ); ((SoXipOverlayManipBase *) mHandlerManip)->numNodesUpToContainer.connectFrom( &numNodesUpToContainer ); ((SoXipOverlayManipBase *) mHandlerManip)->on.connectFrom( &enableSelection ); ((SoXipOverlayManipBase *) mSelectionManip)->numNodesUpToContainer.connectFrom( &numNodesUpToContainer ); ((SoXipOverlayManipBase *) mSelectionManip)->on.connectFrom( &enableSelection ); ((SoXipOverlayManipBase *) mSelectionFrame)->numNodesUpToContainer.connectFrom( &numNodesUpToContainer ); ((SoXipOverlayManipBase *) mSelectionFrame)->on.connectFrom( &multipleSelection ); ((SoXipOverlayManipBase *) mTransformBox)->numNodesUpToContainer.connectFrom( &numNodesUpToContainer ); ((SoXipOverlayManipBase *) mTransformBox)->on.connectFrom( &enableSelection ); ((SoXipOverlayManipBase *) mTranslationManip)->numNodesUpToContainer.connectFrom( &numNodesUpToContainer ); ((SoXipOverlayManipBase *) mTranslationManip)->on.connectFrom( &enableSelection ); }
/*! Constructor. */ SoShaderParameter::SoShaderParameter(void) { SO_NODE_INTERNAL_CONSTRUCTOR(SoShaderParameter); SO_NODE_ADD_FIELD(name, ("")); SO_NODE_ADD_FIELD(identifier, (0)); }
SoVRMLShape::SoVRMLShape(void) { PRIVATE(this) = new SoVRMLShapeP; SO_VRMLNODE_INTERNAL_CONSTRUCTOR(SoVRMLShape); SO_VRMLNODE_ADD_EXPOSED_FIELD(appearance, (NULL)); SO_VRMLNODE_ADD_EXPOSED_FIELD(geometry, (NULL)); SO_NODE_ADD_FIELD(renderCaching, (AUTO)); SO_NODE_ADD_FIELD(boundingBoxCaching, (AUTO)); SO_NODE_DEFINE_ENUM_VALUE(CacheEnabled, ON); SO_NODE_DEFINE_ENUM_VALUE(CacheEnabled, OFF); SO_NODE_DEFINE_ENUM_VALUE(CacheEnabled, AUTO); SO_NODE_SET_SF_ENUM_TYPE(renderCaching, CacheEnabled); SO_NODE_SET_SF_ENUM_TYPE(boundingBoxCaching, CacheEnabled); // supply a NULL-pointer as parent, since notifications will be // handled by the fields that actually contain the node(s) PRIVATE(this)->childlist = new SoChildList(NULL); PRIVATE(this)->childlistvalid = FALSE; PRIVATE(this)->cachelist = NULL; }
SoV2Text3::SoV2Text3() // //////////////////////////////////////////////////////////////////////// { SO_NODE_CONSTRUCTOR(SoV2Text3); SO_NODE_ADD_FIELD(string, ("")); SO_NODE_ADD_FIELD(spacing, (1.0)); SO_NODE_ADD_FIELD(justification, (LEFT)); SO_NODE_ADD_FIELD(parts, (FRONT)); // Set up static info for enumerated type field SO_NODE_DEFINE_ENUM_VALUE(Justification, LEFT); SO_NODE_DEFINE_ENUM_VALUE(Justification, RIGHT); SO_NODE_DEFINE_ENUM_VALUE(Justification, CENTER); // Set up static info for enumerated type field SO_NODE_DEFINE_ENUM_VALUE(Part, SIDES); SO_NODE_DEFINE_ENUM_VALUE(Part, FRONT); SO_NODE_DEFINE_ENUM_VALUE(Part, BACK); SO_NODE_DEFINE_ENUM_VALUE(Part, ALL); // Set up info in enumerated type field SO_NODE_SET_SF_ENUM_TYPE(justification, Justification); SO_NODE_SET_SF_ENUM_TYPE(parts, Part); isBuiltIn = TRUE; }
/*! Constructor. */ SoBlinker::SoBlinker(void) { PRIVATE(this) = new SoBlinkerP(this); PRIVATE(this)->calculator = new SoCalculator; PRIVATE(this)->calculator->ref(); PRIVATE(this)->calculator->a.connectFrom(&this->on); PRIVATE(this)->calculator->b.connectFrom(&this->speed); PRIVATE(this)->calculator->expression = "oa = ((b > 0) && (a != 0)) ? 1.0 : 0.0;"; PRIVATE(this)->counter = new SoTimeCounter; PRIVATE(this)->counter->ref(); PRIVATE(this)->counter->min = SO_SWITCH_NONE; PRIVATE(this)->counter->max = SO_SWITCH_NONE; PRIVATE(this)->counter->frequency.connectFrom(&this->speed); PRIVATE(this)->counter->on.connectFrom(&PRIVATE(this)->calculator->oa); PRIVATE(this)->whichChildSensor = new SoOneShotSensor(SoBlinkerP::whichChildCB, PRIVATE(this)); PRIVATE(this)->whichChildSensor->setPriority(1); PRIVATE(this)->whichvalue = SO_SWITCH_NONE; SO_NODE_INTERNAL_CONSTRUCTOR(SoBlinker); SO_NODE_ADD_FIELD(speed, (1)); SO_NODE_ADD_FIELD(on, (TRUE)); this->whichChild.connectFrom(&PRIVATE(this)->counter->output, TRUE); }
/*! Constructor. */ SoShuttle::SoShuttle(void) { SO_NODE_INTERNAL_CONSTRUCTOR(SoShuttle); SO_NODE_ADD_FIELD(translation0, (SbVec3f(0.0f, 0.0f, 0.0f))); SO_NODE_ADD_FIELD(translation1, (SbVec3f(0.0f, 0.0f, 0.0f))); SO_NODE_ADD_FIELD(speed, (1.0f)); SO_NODE_ADD_FIELD(on, (TRUE)); this->interpolator = new SoInterpolateVec3f; this->interpolator->ref(); this->calculator = new SoCalculator; this->calculator->ref(); this->timer = new SoElapsedTime; this->timer->ref(); this->calculator->expression = "oa = (1.0 - cos(a*b*2*M_PI)) * 0.5"; this->calculator->a.connectFrom(&this->timer->timeOut); this->timer->on.connectFrom(&this->on); this->calculator->b.connectFrom(&this->speed); this->interpolator->input0.connectFrom(&this->translation0); this->interpolator->input1.connectFrom(&this->translation1); this->interpolator->alpha.connectFrom(&this->calculator->oa); this->translation.connectFrom(&this->interpolator->output, TRUE); }
SoXipIcon::SoXipIcon() { SO_NODE_CONSTRUCTOR( SoXipIcon ); SO_NODE_DEFINE_ENUM_VALUE( IconType, IC_NONE ); SO_NODE_DEFINE_ENUM_VALUE( IconType, IC_COPY ); SO_NODE_DEFINE_ENUM_VALUE( IconType, IC_CUT ); SO_NODE_DEFINE_ENUM_VALUE( IconType, IC_PASTE ); SO_NODE_SET_SF_ENUM_TYPE( icon, IconType ); SO_NODE_ADD_FIELD( icon, (IC_NONE) ); SO_NODE_ADD_FIELD( isTransparent, (FALSE) ); SO_NODE_ADD_FIELD( transparentColor, (0, 0, 0) ); mTexture = new SoTexture2; mTexture->ref(); mFieldSensors[0] = new SoFieldSensor( fieldSensorsCB, this ); mFieldSensors[0]->attach( &icon ); mFieldSensors[1] = new SoFieldSensor( fieldSensorsCB, this ); mFieldSensors[1]->attach( &isTransparent ); mFieldSensors[2] = new SoFieldSensor( fieldSensorsCB, this ); mFieldSensors[2]->attach( &transparentColor ); }
SoXipGetCameraProperties::SoXipGetCameraProperties() { SO_NODE_CONSTRUCTOR(SoXipGetCameraProperties); SO_NODE_ADD_FIELD(camPos, (SbVec3f(0.0,0.0,0.0))); SO_NODE_ADD_FIELD(camDir, (SbVec3f(0.0,0.0,0.0))); SO_NODE_ADD_FIELD(viewport, (SbVec4f(0.0,0.0,0.0,0.0))); }
SoXipDrawClipPlane::SoXipDrawClipPlane() { SO_NODE_CONSTRUCTOR(SoXipDrawClipPlane); SO_NODE_ADD_FIELD(plane, (SbPlane(SbVec3f(0, 0, 1), 0))); SO_NODE_ADD_FIELD(on, (TRUE)); SO_NODE_ADD_FIELD(boundingBox, (SbMatrix::identity())); }
SoXipMenuItemBase::SoXipMenuItemBase() { SO_NODE_CONSTRUCTOR( SoXipMenuItemBase ); SO_XIP_KIT_ADD_TYPE_ENTRY( mSeparator, SoSeparator, this ); SO_XIP_KIT_ADD_TYPE_ENTRY( mSubMenuSwitch, SoSwitch, mSeparator ); SO_NODE_DEFINE_ENUM_VALUE( IconType, IC_NONE ); SO_NODE_DEFINE_ENUM_VALUE( IconType, IC_COPY ); SO_NODE_DEFINE_ENUM_VALUE( IconType, IC_CUT ); SO_NODE_DEFINE_ENUM_VALUE( IconType, IC_PASTE ); SO_NODE_SET_SF_ENUM_TYPE( icon, IconType ); SO_NODE_ADD_FIELD( focused, (FALSE) ); SO_NODE_ADD_FIELD( enabled, (TRUE) ); SO_NODE_ADD_FIELD( caption, ("") ); SO_NODE_ADD_FIELD( icon, (IC_NONE) ); SoField* fields[] = { &focused, &enabled, &caption, &icon }; int numFieldSensors = 4; for( int i = 0; i < numFieldSensors; ++ i ) { mFieldSensors[i] = new SoFieldSensor( fieldSensorCB, this ); mFieldSensors[i]->attach( fields[i] ); } }
TransmissivityATMParameters::TransmissivityATMParameters( ) { SO_NODE_CONSTRUCTOR( TransmissivityATMParameters ); SO_NODE_ADD_FIELD( atm1, ( 0.29544 ) ); SO_NODE_ADD_FIELD( atm2, ( 15.22128 ) ); SO_NODE_ADD_FIELD( atm3, ( -1.8598 ) ); SO_NODE_ADD_FIELD( atm4, ( 0.15182 ) ); }
/*! Constructor. */ SoTextureCoordinateObject::SoTextureCoordinateObject() { SO_NODE_INTERNAL_CONSTRUCTOR(SoTextureCoordinateObject); SO_NODE_ADD_FIELD(factorS, (1.0f, 0.0f, 0.0f, 0.0f)); SO_NODE_ADD_FIELD(factorT, (0.0f, 1.0f, 0.0f, 0.0f)); SO_NODE_ADD_FIELD(factorR, (0.0f, 0.0f, 1.0f, 0.0f)); SO_NODE_ADD_FIELD(factorQ, (0.0f, 0.0f, 0.0f, 1.0f)); }
SoXipDropShadowStyle::SoXipDropShadowStyle() { SO_NODE_CONSTRUCTOR( SoXipDropShadowStyle ); SO_NODE_ADD_FIELD( on, (FALSE) ); SO_NODE_ADD_FIELD( color, (0, 0, 0) ); SO_NODE_ADD_FIELD( transparency, (0) ); SO_NODE_ADD_FIELD( pixelOffset, (1, -1) ); }
SoXipMprLock::SoXipMprLock() { SO_NODE_CONSTRUCTOR(SoXipMprLock); SO_NODE_ADD_FIELD(orientation, (FALSE)); SO_NODE_ADD_FIELD(position, (FALSE)); SO_NODE_ADD_FIELD(scale, (FALSE)); SO_NODE_ADD_FIELD(lineOrientation, (FALSE)); SO_NODE_ADD_FIELD(linePosition, (FALSE)); }
SoGradientBackground::SoGradientBackground() : SoNode(), color0(), color1() { SO_NODE_CONSTRUCTOR(SoGradientBackground); SO_NODE_ADD_FIELD(color0, (1.0f, 1.0f, 1.0f)); SO_NODE_ADD_FIELD(color1, (0.0f, 0.0f, 0.0f)); }
/*! Constructor. */ SoSceneTextureCubeMap::SoSceneTextureCubeMap(void) { PRIVATE(this) = new SoSceneTextureCubeMapP(this); SO_NODE_CONSTRUCTOR(SoSceneTextureCubeMap); SO_NODE_ADD_FIELD(size, (256, 256)); SO_NODE_ADD_FIELD(scene, (NULL)); SO_NODE_ADD_FIELD(backgroundColor, (0.0f, 0.0f, 0.0f)); SO_NODE_ADD_FIELD(transparencyFunction, (NONE)); SO_NODE_ADD_FIELD(wrapS, (REPEAT)); SO_NODE_ADD_FIELD(wrapT, (REPEAT)); SO_NODE_ADD_FIELD(wrapR, (REPEAT)); SO_NODE_ADD_FIELD(model, (MODULATE)); SO_NODE_ADD_FIELD(blendColor, (0.0f, 0.0f, 0.0f)); SO_NODE_DEFINE_ENUM_VALUE(Wrap, REPEAT); SO_NODE_DEFINE_ENUM_VALUE(Wrap, CLAMP); SO_NODE_SET_SF_ENUM_TYPE(wrapS, Wrap); SO_NODE_SET_SF_ENUM_TYPE(wrapT, Wrap); SO_NODE_SET_SF_ENUM_TYPE(wrapR, Wrap); SO_NODE_DEFINE_ENUM_VALUE(Model, MODULATE); SO_NODE_DEFINE_ENUM_VALUE(Model, DECAL); SO_NODE_DEFINE_ENUM_VALUE(Model, BLEND); SO_NODE_DEFINE_ENUM_VALUE(Model, REPLACE); SO_NODE_SET_SF_ENUM_TYPE(model, Model); SO_NODE_DEFINE_ENUM_VALUE(TransparencyFunction, NONE); SO_NODE_DEFINE_ENUM_VALUE(TransparencyFunction, ALPHA_BLEND); SO_NODE_DEFINE_ENUM_VALUE(TransparencyFunction, ALPHA_TEST); SO_NODE_SET_SF_ENUM_TYPE(transparencyFunction, TransparencyFunction); }
SoV1Environment::SoV1Environment() // //////////////////////////////////////////////////////////////////////// { SO_NODE_CONSTRUCTOR(SoV1Environment); SO_NODE_ADD_FIELD(ambientIntensity, (0.2)); SO_NODE_ADD_FIELD(ambientColor, (1.0, 1.0, 1.0)); SO_NODE_ADD_FIELD(attenuation, (0.0, 0.0, 1.0)); SO_NODE_ADD_FIELD(fogType, (NONE)); SO_NODE_ADD_FIELD(fogComputed, (PER_VERTEX)); SO_NODE_ADD_FIELD(fogColor, (1.0, 1.0, 1.0)); SO_NODE_ADD_FIELD(fogDensity, (0.0)); SO_NODE_ADD_FIELD(fogNearDistance, (1.0)); SO_NODE_ADD_FIELD(fogFarDistance, (10.0)); // Set up static info for enumerated type fields SO_NODE_DEFINE_ENUM_VALUE(Type, NONE); SO_NODE_DEFINE_ENUM_VALUE(Type, LINEAR); SO_NODE_DEFINE_ENUM_VALUE(Type, EXPONENTIAL); SO_NODE_DEFINE_ENUM_VALUE(Type, EXPONENTIAL_SQUARED); SO_NODE_DEFINE_ENUM_VALUE(Computed, PER_VERTEX); SO_NODE_DEFINE_ENUM_VALUE(Computed, PER_PIXEL); // Set up info in enumerated type fields SO_NODE_SET_SF_ENUM_TYPE(fogType, Type); SO_NODE_SET_SF_ENUM_TYPE(fogComputed, Computed); }
SoV1IndexedTriangleMesh::SoV1IndexedTriangleMesh() // //////////////////////////////////////////////////////////////////////// { SO_NODE_CONSTRUCTOR(SoV1IndexedTriangleMesh); SO_NODE_ADD_FIELD(coordIndex, (-1)); SO_NODE_ADD_FIELD(materialIndex, (-1)); SO_NODE_ADD_FIELD(normalIndex, (-1)); SO_NODE_ADD_FIELD(textureCoordIndex, (-1)); }
/*! Constructor. */ SoTextureUnit::SoTextureUnit(void) { SO_NODE_INTERNAL_CONSTRUCTOR(SoTextureUnit); SO_NODE_ADD_FIELD(unit, (0)); SO_NODE_ADD_FIELD(mappingMethod, (IMAGE_MAPPING)); SO_NODE_DEFINE_ENUM_VALUE(MappingMethod, IMAGE_MAPPING); SO_NODE_DEFINE_ENUM_VALUE(MappingMethod, BUMP_MAPPING); SO_NODE_SET_SF_ENUM_TYPE(mappingMethod, MappingMethod); }
/** * Creates a new TSceneKit node. */ TSceneKit::TSceneKit() { SO_KIT_CONSTRUCTOR(TSceneKit); SO_KIT_ADD_CATALOG_ABSTRACT_ENTRY( transmissivity, TTransmissivity, TDefaultTransmissivity, TRUE, topSeparator, "", TRUE); SO_NODE_ADD_FIELD( azimuth, ( gc::Pi ) ); SO_NODE_ADD_FIELD( zenith, ( 0.0f ) ); SO_KIT_INIT_INSTANCE(); }
ShapeParabolicRectangle::ShapeParabolicRectangle() { SO_NODE_CONSTRUCTOR(ShapeParabolicRectangle); SO_NODE_ADD_FIELD( focusLength, (0.125) ); SO_NODE_ADD_FIELD( widthX, (1.0) ); SO_NODE_ADD_FIELD( widthZ, (1.0) ); SO_NODE_DEFINE_ENUM_VALUE( Side, INSIDE ); SO_NODE_DEFINE_ENUM_VALUE( Side, OUTSIDE ); SO_NODE_SET_SF_ENUM_TYPE( activeSide, Side ); SO_NODE_ADD_FIELD( activeSide, (OUTSIDE) ); }
/*! Constructor. */ SoGeoSeparator::SoGeoSeparator(void) { SO_NODE_INTERNAL_CONSTRUCTOR(SoGeoSeparator); SO_NODE_ADD_FIELD(geoCoords, (0.0, 0.0, 0.0)); SO_NODE_ADD_FIELD(geoSystem, ("")); this->geoSystem.setNum(2); this->geoSystem.set1Value(0, "GD"); this->geoSystem.set1Value(1, "WE"); this->geoSystem.setDefault(TRUE); }
SoRing::SoRing() { if(!initialized) { initClass(); } SO_NODE_CONSTRUCTOR(SoRing); SO_NODE_ADD_FIELD(center, (0,0) ); SO_NODE_ADD_FIELD(innerRadius, (0.2F)); SO_NODE_ADD_FIELD(outerRadius, (1)); SO_NODE_ADD_FIELD(sweepAngle, (360)); }
SoV2MaterialIndex::SoV2MaterialIndex() // //////////////////////////////////////////////////////////////////////// { SO_NODE_CONSTRUCTOR(SoV2MaterialIndex); // Default values taken from the 2.0.1 tree SO_NODE_ADD_FIELD(ambientIndex, (1)); SO_NODE_ADD_FIELD(diffuseIndex, (2)); SO_NODE_ADD_FIELD(specularIndex, (3)); SO_NODE_ADD_FIELD(shininess, (0.2)); SO_NODE_ADD_FIELD(transparency, (0.0)); }
SoGuiSceneTexture2::SoGuiSceneTexture2(void) { this->internals = new SceneTexture2; PRIVATE(this)->api = this; SO_NODE_CONSTRUCTOR(SoGuiSceneTexture2); SO_NODE_ADD_FIELD(size, (SbVec2f(256.0f, 256.0f))); SO_NODE_ADD_FIELD(scene, (NULL)); PRIVATE(this)->size_sensor = new SoFieldSensor(SceneTexture2::size_updated_cb, PRIVATE(this)); PRIVATE(this)->size_sensor->attach(&(this->size)); PRIVATE(this)->render_sensor = new SoOneShotSensor(SceneTexture2::render_cb, PRIVATE(this)); }
SoXipSetTransform::SoXipSetTransform() { SO_NODE_CONSTRUCTOR(SoXipSetTransform); SO_NODE_DEFINE_ENUM_VALUE(MatrixType, PROJECTION); SO_NODE_DEFINE_ENUM_VALUE(MatrixType, MODEL); SO_NODE_DEFINE_ENUM_VALUE(MatrixType, VIEW); SO_NODE_DEFINE_ENUM_VALUE(MatrixType, TEXTURE); SO_NODE_SET_SF_ENUM_TYPE(matrixType, MatrixType); SO_NODE_ADD_FIELD(matrixType, (MODEL)); SO_NODE_ADD_FIELD(matrix, (SbMatrix::identity())); SO_NODE_ADD_FIELD(multiply, (false)); }
SoXipDrawQuad::SoXipDrawQuad() { SO_NODE_CONSTRUCTOR(SoXipDrawQuad); SO_NODE_ADD_FIELD(enableTexture, (true)); SO_NODE_ADD_FIELD(filter, (SAME)); SO_NODE_ADD_FIELD(blend, (false)); SO_NODE_ADD_FIELD(colors, (SbVec3f(1, 1, 1))); SO_NODE_DEFINE_ENUM_VALUE(Filter, SAME); SO_NODE_DEFINE_ENUM_VALUE(Filter, NEAREST); SO_NODE_DEFINE_ENUM_VALUE(Filter, LINEAR); SO_NODE_SET_SF_ENUM_TYPE(filter, Filter); }
SoVtkAssembly::SoVtkAssembly() { SO_NODE_CONSTRUCTOR(SoVtkAssembly); mAssembly = vtkAssembly::New(); mAssembly->Register(0); SbVec3f vec3fInitValue(0, 0, 0); SO_NODE_ADD_FIELD(Origin, (vec3fInitValue)); SO_NODE_ADD_FIELD(Position, (vec3fInitValue)); nodeId = 0; }