当前位置: 首页>>代码示例>>C++>>正文


C++ TypeObject类代码示例

本文整理汇总了C++中TypeObject的典型用法代码示例。如果您正苦于以下问题:C++ TypeObject类的具体用法?C++ TypeObject怎么用?C++ TypeObject使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了TypeObject类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: classDescInserter

void TextureImageChunkBase::classDescInserter(TypeObject &oType)
{
    FieldDescriptionBase *pDesc = NULL;


    pDesc = new SFUnrecTextureBaseChunkPtr::Description(
        SFUnrecTextureBaseChunkPtr::getClassType(),
        "texture",
        "Texture chunks to choose from \n",
        TextureFieldId, TextureFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&TextureImageChunk::editHandleTexture),
        static_cast<FieldGetMethodSig >(&TextureImageChunk::getHandleTexture));

    oType.addInitialDesc(pDesc);

    pDesc = new SFInt32::Description(
        SFInt32::getClassType(),
        "level",
        "",
        LevelFieldId, LevelFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&TextureImageChunk::editHandleLevel),
        static_cast<FieldGetMethodSig >(&TextureImageChunk::getHandleLevel));

    oType.addInitialDesc(pDesc);

    pDesc = new SFInt32::Description(
        SFInt32::getClassType(),
        "layer",
        "",
        LayerFieldId, LayerFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&TextureImageChunk::editHandleLayer),
        static_cast<FieldGetMethodSig >(&TextureImageChunk::getHandleLayer));

    oType.addInitialDesc(pDesc);

    pDesc = new SFGLenum::Description(
        SFGLenum::getClassType(),
        "access",
        "",
        AccessFieldId, AccessFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&TextureImageChunk::editHandleAccess),
        static_cast<FieldGetMethodSig >(&TextureImageChunk::getHandleAccess));

    oType.addInitialDesc(pDesc);

    pDesc = new SFGLenum::Description(
        SFGLenum::getClassType(),
        "format",
        "",
        FormatFieldId, FormatFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&TextureImageChunk::editHandleFormat),
        static_cast<FieldGetMethodSig >(&TextureImageChunk::getHandleFormat));

    oType.addInitialDesc(pDesc);
}
开发者ID:vossg,项目名称:OpenSGDevMaster,代码行数:65,代码来源:OSGTextureImageChunkBase.cpp

示例2: classDescInserter

void ColorDisplayFilterBase::classDescInserter(TypeObject &oType)
{
    FieldDescriptionBase *pDesc = NULL;


    pDesc = new SFReal32::Description(
        SFReal32::getClassType(),
        "gamma",
        "Gamma value of the rendered image\n",
        GammaFieldId, GammaFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&ColorDisplayFilter::editHandleGamma),
        static_cast<FieldGetMethodSig >(&ColorDisplayFilter::getHandleGamma));

    oType.addInitialDesc(pDesc);

    pDesc = new SFMatrix::Description(
        SFMatrix::getClassType(),
        "matrix",
        "Color transformation matrix\n",
        MatrixFieldId, MatrixFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&ColorDisplayFilter::editHandleMatrix),
        static_cast<FieldGetMethodSig >(&ColorDisplayFilter::getHandleMatrix));

    oType.addInitialDesc(pDesc);

    pDesc = new SFUInt32::Description(
        SFUInt32::getClassType(),
        "colorTableWidth",
        "",
        ColorTableWidthFieldId, ColorTableWidthFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&ColorDisplayFilter::editHandleColorTableWidth),
        static_cast<FieldGetMethodSig >(&ColorDisplayFilter::getHandleColorTableWidth));

    oType.addInitialDesc(pDesc);

    pDesc = new SFUInt32::Description(
        SFUInt32::getClassType(),
        "colorTableHeight",
        "",
        ColorTableHeightFieldId, ColorTableHeightFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&ColorDisplayFilter::editHandleColorTableHeight),
        static_cast<FieldGetMethodSig >(&ColorDisplayFilter::getHandleColorTableHeight));

    oType.addInitialDesc(pDesc);

    pDesc = new SFUInt32::Description(
        SFUInt32::getClassType(),
        "colorTableDepth",
        "",
        ColorTableDepthFieldId, ColorTableDepthFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&ColorDisplayFilter::editHandleColorTableDepth),
        static_cast<FieldGetMethodSig >(&ColorDisplayFilter::getHandleColorTableDepth));

    oType.addInitialDesc(pDesc);

    pDesc = new MFColor3f::Description(
        MFColor3f::getClassType(),
        "colorTable",
        "Shading table\n",
        ColorTableFieldId, ColorTableFieldMask,
        false,
        (Field::MFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&ColorDisplayFilter::editHandleColorTable),
        static_cast<FieldGetMethodSig >(&ColorDisplayFilter::getHandleColorTable));

    oType.addInitialDesc(pDesc);

    pDesc = new SFUnrecImagePtr::Description(
        SFUnrecImagePtr::getClassType(),
        "tableImage",
        "",
        TableImageFieldId, TableImageFieldMask,
        true,
        (Field::FStdAccess | Field::FClusterLocal),
        static_cast<FieldEditMethodSig>(&ColorDisplayFilter::editHandleTableImage),
        static_cast<FieldGetMethodSig >(&ColorDisplayFilter::getHandleTableImage));

    oType.addInitialDesc(pDesc);

    pDesc = new SFUnrecSimpleSHLChunkPtr::Description(
        SFUnrecSimpleSHLChunkPtr::getClassType(),
        "filterShader",
        "",
        FilterShaderFieldId, FilterShaderFieldMask,
        false,
        (Field::FStdAccess | Field::FClusterLocal),
        static_cast<FieldEditMethodSig>(&ColorDisplayFilter::editHandleFilterShader),
        static_cast<FieldGetMethodSig >(&ColorDisplayFilter::getHandleFilterShader));

    oType.addInitialDesc(pDesc);
//.........这里部分代码省略.........
开发者ID:vossg,项目名称:OpenSGDevMaster,代码行数:101,代码来源:OSGColorDisplayFilterBase.cpp

示例3:

void PerlinNoiseDistribution1DBase::classDescInserter(TypeObject &oType)
{
    FieldDescriptionBase *pDesc = NULL;


    pDesc = new SFReal32::Description(
        SFReal32::getClassType(),
        "Frequency",
        "",
        FrequencyFieldId, FrequencyFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&PerlinNoiseDistribution1D::editHandleFrequency),
        static_cast<FieldGetMethodSig >(&PerlinNoiseDistribution1D::getHandleFrequency));

    oType.addInitialDesc(pDesc);

    pDesc = new SFReal32::Description(
        SFReal32::getClassType(),
        "Persistance",
        "",
        PersistanceFieldId, PersistanceFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&PerlinNoiseDistribution1D::editHandlePersistance),
        static_cast<FieldGetMethodSig >(&PerlinNoiseDistribution1D::getHandlePersistance));

    oType.addInitialDesc(pDesc);

    pDesc = new SFUInt32::Description(
        SFUInt32::getClassType(),
        "Octaves",
        "",
        OctavesFieldId, OctavesFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&PerlinNoiseDistribution1D::editHandleOctaves),
        static_cast<FieldGetMethodSig >(&PerlinNoiseDistribution1D::getHandleOctaves));

    oType.addInitialDesc(pDesc);

    pDesc = new SFReal32::Description(
        SFReal32::getClassType(),
        "Amplitude",
        "",
        AmplitudeFieldId, AmplitudeFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&PerlinNoiseDistribution1D::editHandleAmplitude),
        static_cast<FieldGetMethodSig >(&PerlinNoiseDistribution1D::getHandleAmplitude));

    oType.addInitialDesc(pDesc);

    pDesc = new SFUInt32::Description(
        SFUInt32::getClassType(),
        "InterpolationType",
        "This enum is used to determine the interpolation method used for the distribution\n"
        "COSINE uses cosine interpolation\n"
        "LINEAR uses linear interpolation\t\n",
        InterpolationTypeFieldId, InterpolationTypeFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&PerlinNoiseDistribution1D::editHandleInterpolationType),
        static_cast<FieldGetMethodSig >(&PerlinNoiseDistribution1D::getHandleInterpolationType));

    oType.addInitialDesc(pDesc);

    pDesc = new SFReal32::Description(
        SFReal32::getClassType(),
        "Phase",
        "",
        PhaseFieldId, PhaseFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&PerlinNoiseDistribution1D::editHandlePhase),
        static_cast<FieldGetMethodSig >(&PerlinNoiseDistribution1D::getHandlePhase));

    oType.addInitialDesc(pDesc);

    pDesc = new SFBool::Description(
        SFBool::getClassType(),
        "UseSmoothing",
        "",
        UseSmoothingFieldId, UseSmoothingFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&PerlinNoiseDistribution1D::editHandleUseSmoothing),
        static_cast<FieldGetMethodSig >(&PerlinNoiseDistribution1D::getHandleUseSmoothing));

    oType.addInitialDesc(pDesc);
}
开发者ID:Himbeertoni,项目名称:OpenSGToolbox,代码行数:91,代码来源:OSGPerlinNoiseDistribution1DBase.cpp

示例4: classDescInserter

void MaterialChunkBase::classDescInserter(TypeObject &oType)
{
    FieldDescriptionBase *pDesc = NULL;


    pDesc = new SFColor4f::Description(
        SFColor4f::getClassType(),
        "diffuse",
        "",
        DiffuseFieldId, DiffuseFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&MaterialChunk::editHandleDiffuse),
        static_cast<FieldGetMethodSig >(&MaterialChunk::getHandleDiffuse));

    oType.addInitialDesc(pDesc);

    pDesc = new SFColor4f::Description(
        SFColor4f::getClassType(),
        "ambient",
        "",
        AmbientFieldId, AmbientFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&MaterialChunk::editHandleAmbient),
        static_cast<FieldGetMethodSig >(&MaterialChunk::getHandleAmbient));

    oType.addInitialDesc(pDesc);

    pDesc = new SFColor4f::Description(
        SFColor4f::getClassType(),
        "specular",
        "",
        SpecularFieldId, SpecularFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&MaterialChunk::editHandleSpecular),
        static_cast<FieldGetMethodSig >(&MaterialChunk::getHandleSpecular));

    oType.addInitialDesc(pDesc);

    pDesc = new SFColor4f::Description(
        SFColor4f::getClassType(),
        "emission",
        "",
        EmissionFieldId, EmissionFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&MaterialChunk::editHandleEmission),
        static_cast<FieldGetMethodSig >(&MaterialChunk::getHandleEmission));

    oType.addInitialDesc(pDesc);

    pDesc = new SFReal32::Description(
        SFReal32::getClassType(),
        "shininess",
        "",
        ShininessFieldId, ShininessFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&MaterialChunk::editHandleShininess),
        static_cast<FieldGetMethodSig >(&MaterialChunk::getHandleShininess));

    oType.addInitialDesc(pDesc);

    pDesc = new SFBool::Description(
        SFBool::getClassType(),
        "lit",
        "Switch for using this material in lighting calculation. \n"
        "If not set the diffuse color is used as is.\n",
        LitFieldId, LitFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&MaterialChunk::editHandleLit),
        static_cast<FieldGetMethodSig >(&MaterialChunk::getHandleLit));

    oType.addInitialDesc(pDesc);

    pDesc = new SFGLenum::Description(
        SFGLenum::getClassType(),
        "colorMaterial",
        "The mode for using Geometry colors in lighting. Defaults to GL_DIFFUSE.\n",
        ColorMaterialFieldId, ColorMaterialFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&MaterialChunk::editHandleColorMaterial),
        static_cast<FieldGetMethodSig >(&MaterialChunk::getHandleColorMaterial));

    oType.addInitialDesc(pDesc);

    pDesc = new SFBool::Description(
        SFBool::getClassType(),
        "backMaterial",
        "Switch for using separate material properties for front- and back-facing\n"
        "polygons. If set to false the standard parameters will be used for front- and \n"
        "backfaces.\n",
        BackMaterialFieldId, BackMaterialFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&MaterialChunk::editHandleBackMaterial),
//.........这里部分代码省略.........
开发者ID:vossg,项目名称:OpenSGDevMaster,代码行数:101,代码来源:OSGMaterialChunkBase.cpp

示例5: classDescInserter

void SimpleStageBase::classDescInserter(TypeObject &oType)
{
    FieldDescriptionBase *pDesc = NULL;


    pDesc = new SFReal32::Description(
        SFReal32::getClassType(),
        "left",
        "The left edge of the viewport. Values between 0 and 1 are relative to the\n"
        "size of the Window, values \"1 are absolute pixel coordinates, value\n"
        "== -1 means the left border. All other values are illegal.\n",
        LeftFieldId, LeftFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&SimpleStage::editHandleLeft),
        static_cast<FieldGetMethodSig >(&SimpleStage::getHandleLeft));

    oType.addInitialDesc(pDesc);

    pDesc = new SFReal32::Description(
        SFReal32::getClassType(),
        "right",
        "The right edge of the viewport. Values between 0 and 1 are relative to the\n"
        "size of the Window, values \"1 are absolute pixel coordinates, value\n"
        "== -1 means the right border. All other values are illegal.\n",
        RightFieldId, RightFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&SimpleStage::editHandleRight),
        static_cast<FieldGetMethodSig >(&SimpleStage::getHandleRight));

    oType.addInitialDesc(pDesc);

    pDesc = new SFReal32::Description(
        SFReal32::getClassType(),
        "bottom",
        "The bottom edge of the viewport. Values between 0 and 1 are relative to\n"
        "the size of the Window, values \"1 are absolute pixel coordinates,\n"
        "value == -1 means the bottom border. All other values are illegal.\n",
        BottomFieldId, BottomFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&SimpleStage::editHandleBottom),
        static_cast<FieldGetMethodSig >(&SimpleStage::getHandleBottom));

    oType.addInitialDesc(pDesc);

    pDesc = new SFReal32::Description(
        SFReal32::getClassType(),
        "top",
        "The top edge of the viewport. Values between 0 and 1 are relative to the\n"
        "size of the Window, values \"1 are absolute pixel coordinates, value\n"
        "== -1 means the top border. All other values are illegal.\n",
        TopFieldId, TopFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&SimpleStage::editHandleTop),
        static_cast<FieldGetMethodSig >(&SimpleStage::getHandleTop));

    oType.addInitialDesc(pDesc);

    pDesc = new SFUnrecCameraPtr::Description(
        SFUnrecCameraPtr::getClassType(),
        "camera",
        "The Camera used to render the viewport.\n",
        CameraFieldId, CameraFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&SimpleStage::editHandleCamera),
        static_cast<FieldGetMethodSig >(&SimpleStage::getHandleCamera));

    oType.addInitialDesc(pDesc);

    pDesc = new SFUnrecBackgroundPtr::Description(
        SFUnrecBackgroundPtr::getClassType(),
        "background",
        "The background used to clear this viewport.\n",
        BackgroundFieldId, BackgroundFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&SimpleStage::editHandleBackground),
        static_cast<FieldGetMethodSig >(&SimpleStage::getHandleBackground));

    oType.addInitialDesc(pDesc);

    pDesc = new MFUnrecForegroundPtr::Description(
        MFUnrecForegroundPtr::getClassType(),
        "foregrounds",
        "The foregrounds used by this viewport.\n",
        ForegroundsFieldId, ForegroundsFieldMask,
        false,
        (Field::MFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&SimpleStage::editHandleForegrounds),
        static_cast<FieldGetMethodSig >(&SimpleStage::getHandleForegrounds));

    oType.addInitialDesc(pDesc);
}
开发者ID:Himbeertoni,项目名称:OpenSGDevMaster,代码行数:97,代码来源:OSGSimpleStageBase.cpp

示例6: classDescInserter

void PhysicsHingeJointBase::classDescInserter(TypeObject &oType)
{
    FieldDescriptionBase *pDesc = NULL;


    pDesc = new SFVec3f::Description(
        SFVec3f::getClassType(),
        "anchor",
        "",
        AnchorFieldId, AnchorFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&PhysicsHingeJoint::editHandleAnchor),
        static_cast<FieldGetMethodSig >(&PhysicsHingeJoint::getHandleAnchor));

    oType.addInitialDesc(pDesc);

    pDesc = new SFVec3f::Description(
        SFVec3f::getClassType(),
        "axis",
        "",
        AxisFieldId, AxisFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&PhysicsHingeJoint::editHandleAxis),
        static_cast<FieldGetMethodSig >(&PhysicsHingeJoint::getHandleAxis));

    oType.addInitialDesc(pDesc);

    pDesc = new SFReal32::Description(
        SFReal32::getClassType(),
        "hiStop",
        "High stop angle or position. Setting this to dInfinity (the default value) turns off the high stop. For rotational joints, this stop must be less than pi to be effective. If the high stop is less than the low stop then both stops will be ineffective.\n",
        HiStopFieldId, HiStopFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&PhysicsHingeJoint::editHandleHiStop),
        static_cast<FieldGetMethodSig >(&PhysicsHingeJoint::getHandleHiStop));

    oType.addInitialDesc(pDesc);

    pDesc = new SFReal32::Description(
        SFReal32::getClassType(),
        "loStop",
        "Low stop angle or position. Setting this to -dInfinity (the default value) turns off the low stop.  For rotational joints, this stop must be greater than - pi to be effective. \n",
        LoStopFieldId, LoStopFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&PhysicsHingeJoint::editHandleLoStop),
        static_cast<FieldGetMethodSig >(&PhysicsHingeJoint::getHandleLoStop));

    oType.addInitialDesc(pDesc);

    pDesc = new SFReal32::Description(
        SFReal32::getClassType(),
        "bounce",
        "The bouncyness of the stops. This is a restitution parameter in the range 0..1. 0 means the stops are not bouncy at all, 1 means maximum bouncyness.\n",
        BounceFieldId, BounceFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&PhysicsHingeJoint::editHandleBounce),
        static_cast<FieldGetMethodSig >(&PhysicsHingeJoint::getHandleBounce));

    oType.addInitialDesc(pDesc);

    pDesc = new SFReal32::Description(
        SFReal32::getClassType(),
        "CFM",
        "The constraint force mixing (CFM) value used when not at a stop.\n",
        CFMFieldId, CFMFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&PhysicsHingeJoint::editHandleCFM),
        static_cast<FieldGetMethodSig >(&PhysicsHingeJoint::getHandleCFM));

    oType.addInitialDesc(pDesc);

    pDesc = new SFReal32::Description(
        SFReal32::getClassType(),
        "stopERP",
        "The error reduction parameter (ERP) used by the stops.\n",
        StopERPFieldId, StopERPFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&PhysicsHingeJoint::editHandleStopERP),
        static_cast<FieldGetMethodSig >(&PhysicsHingeJoint::getHandleStopERP));

    oType.addInitialDesc(pDesc);

    pDesc = new SFReal32::Description(
        SFReal32::getClassType(),
        "stopCFM",
        "The constraint force mixing (CFM) value used by the stops. Together with the ERP value this can be used to get spongy or soft stops. Note that this is intended for unpowered joints, it does not really work as expected when a powered joint reaches its limit. \n",
        StopCFMFieldId, StopCFMFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&PhysicsHingeJoint::editHandleStopCFM),
        static_cast<FieldGetMethodSig >(&PhysicsHingeJoint::getHandleStopCFM));

    oType.addInitialDesc(pDesc);
//.........这里部分代码省略.........
开发者ID:Langkamp,项目名称:OpenSGToolbox,代码行数:101,代码来源:OSGPhysicsHingeJointBase.cpp

示例7: classDescInserter

void GeoIntegralBufferPropertyBase::classDescInserter(TypeObject &oType)
{
    FieldDescriptionBase *pDesc = NULL;


    pDesc = new SFUInt32::Description(
        SFUInt32::getClassType(),
        "stride",
        "",
        StrideFieldId, StrideFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&GeoIntegralBufferProperty::editHandleStride),
        static_cast<FieldGetMethodSig >(&GeoIntegralBufferProperty::getHandleStride));

    oType.addInitialDesc(pDesc);

    pDesc = new SFUInt32::Description(
        SFUInt32::getClassType(),
        "format",
        "",
        FormatFieldId, FormatFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&GeoIntegralBufferProperty::editHandleFormat),
        static_cast<FieldGetMethodSig >(&GeoIntegralBufferProperty::getHandleFormat));

    oType.addInitialDesc(pDesc);

    pDesc = new SFUInt32::Description(
        SFUInt32::getClassType(),
        "formatSize",
        "",
        FormatSizeFieldId, FormatSizeFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&GeoIntegralBufferProperty::editHandleFormatSize),
        static_cast<FieldGetMethodSig >(&GeoIntegralBufferProperty::getHandleFormatSize));

    oType.addInitialDesc(pDesc);

    pDesc = new SFUInt32::Description(
        SFUInt32::getClassType(),
        "dimension",
        "",
        DimensionFieldId, DimensionFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&GeoIntegralBufferProperty::editHandleDimension),
        static_cast<FieldGetMethodSig >(&GeoIntegralBufferProperty::getHandleDimension));

    oType.addInitialDesc(pDesc);

    pDesc = new SFUInt32::Description(
        SFUInt32::getClassType(),
        "size",
        "",
        SizeFieldId, SizeFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&GeoIntegralBufferProperty::editHandleSize),
        static_cast<FieldGetMethodSig >(&GeoIntegralBufferProperty::getHandleSize));

    oType.addInitialDesc(pDesc);
}
开发者ID:baibaiwei,项目名称:OpenSGDevMaster,代码行数:65,代码来源:OSGGeoIntegralBufferPropertyBase.cpp

示例8:

void BufferPnt3fInterpolatorBase::classDescInserter(TypeObject &oType)
{
    FieldDescriptionBase *pDesc = NULL;


    pDesc = new SFReal32::Description(
        SFReal32::getClassType(),
        "inValue",
        "This is VRML's fraction field.\n",
        InValueFieldId, InValueFieldMask,
        true,
        (Field::FThreadLocal),
        static_cast<FieldEditMethodSig>(&BufferPnt3fInterpolator::editHandleInValue),
        static_cast<FieldGetMethodSig >(&BufferPnt3fInterpolator::getHandleInValue));

    oType.addInitialDesc(pDesc);

    pDesc = new MFReal32::Description(
        MFReal32::getClassType(),
        "key",
        "",
        KeyFieldId, KeyFieldMask,
        false,
        (Field::FThreadLocal),
        static_cast<FieldEditMethodSig>(&BufferPnt3fInterpolator::editHandleKey),
        static_cast<FieldGetMethodSig >(&BufferPnt3fInterpolator::getHandleKey));

    oType.addInitialDesc(pDesc);

    pDesc = new MFPnt3f::Description(
        MFPnt3f::getClassType(),
        "keyValue",
        "",
        KeyValueFieldId, KeyValueFieldMask,
        false,
        (Field::FThreadLocal),
        static_cast<FieldEditMethodSig>(&BufferPnt3fInterpolator::editHandleKeyValue),
        static_cast<FieldGetMethodSig >(&BufferPnt3fInterpolator::getHandleKeyValue));

    oType.addInitialDesc(pDesc);

    pDesc = new SFUnrecGeoVectorPropertyPtr::Description(
        SFUnrecGeoVectorPropertyPtr::getClassType(),
        "outValue",
        "This is VRML's value field.\n",
        OutValueFieldId, OutValueFieldMask,
        true,
        (Field::FThreadLocal|Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&BufferPnt3fInterpolator::editHandleOutValue),
        static_cast<FieldGetMethodSig >(&BufferPnt3fInterpolator::getHandleOutValue));

    oType.addInitialDesc(pDesc);

    pDesc = new MFUInt32::Description(
        MFUInt32::getClassType(),
        "resortIndex",
        "",
        ResortIndexFieldId, ResortIndexFieldMask,
        false,
        (Field::FThreadLocal),
        static_cast<FieldEditMethodSig>(&BufferPnt3fInterpolator::editHandleResortIndex),
        static_cast<FieldGetMethodSig >(&BufferPnt3fInterpolator::getHandleResortIndex));

    oType.addInitialDesc(pDesc);
}
开发者ID:jieah,项目名称:OSGAddOnsGV,代码行数:65,代码来源:OSGBufferPnt3fInterpolatorBase.cpp

示例9: classDescInserter

void ComponentTransformBase::classDescInserter(TypeObject &oType)
{
    FieldDescriptionBase *pDesc = NULL;


    pDesc = new SFVec3f::Description(
        SFVec3f::getClassType(),
        "center",
        "",
        CenterFieldId, CenterFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&ComponentTransform::editHandleCenter),
        static_cast<FieldGetMethodSig >(&ComponentTransform::getHandleCenter));

    oType.addInitialDesc(pDesc);

    pDesc = new SFQuaternion::Description(
        SFQuaternion::getClassType(),
        "rotation",
        "",
        RotationFieldId, RotationFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&ComponentTransform::editHandleRotation),
        static_cast<FieldGetMethodSig >(&ComponentTransform::getHandleRotation));

    oType.addInitialDesc(pDesc);

    pDesc = new SFVec3f::Description(
        SFVec3f::getClassType(),
        "scale",
        "",
        ScaleFieldId, ScaleFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&ComponentTransform::editHandleScale),
        static_cast<FieldGetMethodSig >(&ComponentTransform::getHandleScale));

    oType.addInitialDesc(pDesc);

    pDesc = new SFQuaternion::Description(
        SFQuaternion::getClassType(),
        "scaleOrientation",
        "",
        ScaleOrientationFieldId, ScaleOrientationFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&ComponentTransform::editHandleScaleOrientation),
        static_cast<FieldGetMethodSig >(&ComponentTransform::getHandleScaleOrientation));

    oType.addInitialDesc(pDesc);

    pDesc = new SFVec3f::Description(
        SFVec3f::getClassType(),
        "translation",
        "",
        TranslationFieldId, TranslationFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&ComponentTransform::editHandleTranslation),
        static_cast<FieldGetMethodSig >(&ComponentTransform::getHandleTranslation));

    oType.addInitialDesc(pDesc);
}
开发者ID:marcusl,项目名称:OpenSG,代码行数:65,代码来源:OSGComponentTransformBase.cpp

示例10: classDescInserter

void CgFXMaterialBase::classDescInserter(TypeObject &oType)
{
    FieldDescriptionBase *pDesc = NULL;


    pDesc = new SFBool::Description(
        SFBool::getClassType(),
        "treatTechniquesAsVariants",
        "effect compiler options\n",
        TreatTechniquesAsVariantsFieldId, TreatTechniquesAsVariantsFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&CgFXMaterial::editHandleTreatTechniquesAsVariants),
        static_cast<FieldGetMethodSig >(&CgFXMaterial::getHandleTreatTechniquesAsVariants));

    oType.addInitialDesc(pDesc);

    pDesc = new SFUInt8::Description(
        SFUInt8::getClassType(),
        "ParameterValueSource",
        "Source to use for parameters when initializing the material.\n"
        "DEFAULT: Uses the values that are read in from the .cgfx file or code string.\n"
        "Will overwrite the current value for the corresponding \n"
        "ShaderProgramVariable if there is one.\n"
        "CURRENT: Checks if the material already has a ShaderProgramVariable of the same\n"
        "name, and if it does, it uses that value instead of the default value.\n",
        ParameterValueSourceFieldId, ParameterValueSourceFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&CgFXMaterial::editHandleParameterValueSource),
        static_cast<FieldGetMethodSig >(&CgFXMaterial::getHandleParameterValueSource));

    oType.addInitialDesc(pDesc);

    pDesc = new SFString::Description(
        SFString::getClassType(),
        "effectFile",
        "cgfx file\n",
        EffectFileFieldId, EffectFileFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&CgFXMaterial::editHandleEffectFile),
        static_cast<FieldGetMethodSig >(&CgFXMaterial::getHandleEffectFile));

    oType.addInitialDesc(pDesc);

    pDesc = new SFString::Description(
        SFString::getClassType(),
        "effectString",
        "cgfx file\n",
        EffectStringFieldId, EffectStringFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&CgFXMaterial::editHandleEffectString),
        static_cast<FieldGetMethodSig >(&CgFXMaterial::getHandleEffectString));

    oType.addInitialDesc(pDesc);

    pDesc = new MFString::Description(
        MFString::getClassType(),
        "compilerOptions",
        "effect compiler options\n",
        CompilerOptionsFieldId, CompilerOptionsFieldMask,
        false,
        (Field::MFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&CgFXMaterial::editHandleCompilerOptions),
        static_cast<FieldGetMethodSig >(&CgFXMaterial::getHandleCompilerOptions));

    oType.addInitialDesc(pDesc);

    pDesc = new SFUnrecChildShaderProgramVariablesPtr::Description(
        SFUnrecChildShaderProgramVariablesPtr::getClassType(),
        "variables",
        "",
        VariablesFieldId, VariablesFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&CgFXMaterial::editHandleVariables),
        static_cast<FieldGetMethodSig >(&CgFXMaterial::getHandleVariables));

    oType.addInitialDesc(pDesc);

    pDesc = new SFString::Description(
        SFString::getClassType(),
        "selectedTechnique",
        "",
        SelectedTechniqueFieldId, SelectedTechniqueFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&CgFXMaterial::editHandleSelectedTechnique),
        static_cast<FieldGetMethodSig >(&CgFXMaterial::getHandleSelectedTechnique));

    oType.addInitialDesc(pDesc);

    pDesc = new SFUInt32::Description(
        SFUInt32::getClassType(),
        "stateVariables",
        "",
        StateVariablesFieldId, StateVariablesFieldMask,
        true,
//.........这里部分代码省略.........
开发者ID:danguilliams,项目名称:OpenSGDevMaster_Toolbox,代码行数:101,代码来源:OSGCgFXMaterialBase.cpp

示例11: classDescInserter

void TileCameraDecoratorBase::classDescInserter(TypeObject &oType)
{
    FieldDescriptionBase *pDesc = NULL;


    pDesc = new SFReal32::Description(
        SFReal32::getClassType(),
        "left",
        "The left border of the selected tile.\n",
        LeftFieldId, LeftFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&TileCameraDecorator::editHandleLeft),
        static_cast<FieldGetMethodSig >(&TileCameraDecorator::getHandleLeft));

    oType.addInitialDesc(pDesc);

    pDesc = new SFReal32::Description(
        SFReal32::getClassType(),
        "right",
        "The right border of the selected tile.\n",
        RightFieldId, RightFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&TileCameraDecorator::editHandleRight),
        static_cast<FieldGetMethodSig >(&TileCameraDecorator::getHandleRight));

    oType.addInitialDesc(pDesc);

    pDesc = new SFReal32::Description(
        SFReal32::getClassType(),
        "bottom",
        "The bottom border of the selected tile.\n",
        BottomFieldId, BottomFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&TileCameraDecorator::editHandleBottom),
        static_cast<FieldGetMethodSig >(&TileCameraDecorator::getHandleBottom));

    oType.addInitialDesc(pDesc);

    pDesc = new SFReal32::Description(
        SFReal32::getClassType(),
        "top",
        "The top border of the selected tile.\n",
        TopFieldId, TopFieldMask,
        true,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&TileCameraDecorator::editHandleTop),
        static_cast<FieldGetMethodSig >(&TileCameraDecorator::getHandleTop));

    oType.addInitialDesc(pDesc);

    pDesc = new SFUInt32::Description(
        SFUInt32::getClassType(),
        "fullWidth",
        "The width of the full image this is a tile of.\n",
        FullWidthFieldId, FullWidthFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&TileCameraDecorator::editHandleFullWidth),
        static_cast<FieldGetMethodSig >(&TileCameraDecorator::getHandleFullWidth));

    oType.addInitialDesc(pDesc);

    pDesc = new SFUInt32::Description(
        SFUInt32::getClassType(),
        "fullHeight",
        "The height of the full image this is a tile of.\n",
        FullHeightFieldId, FullHeightFieldMask,
        true,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&TileCameraDecorator::editHandleFullHeight),
        static_cast<FieldGetMethodSig >(&TileCameraDecorator::getHandleFullHeight));

    oType.addInitialDesc(pDesc);
}
开发者ID:vossg,项目名称:OpenSGDevMaster,代码行数:77,代码来源:OSGTileCameraDecoratorBase.cpp

示例12: classDescInserter

void ClusterWindowBase::classDescInserter(TypeObject &oType)
{
    FieldDescriptionBase *pDesc = NULL;


    pDesc = new MFString::Description(
        MFString::getClassType(),
        "servers",
        "List of all symbolic server names\n",
        ServersFieldId, ServersFieldMask,
        false,
        (Field::MFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&ClusterWindow::editHandleServers),
        static_cast<FieldGetMethodSig >(&ClusterWindow::getHandleServers));

    oType.addInitialDesc(pDesc);

    pDesc = new MFUInt32::Description(
        MFUInt32::getClassType(),
        "serverIds",
        "",
        ServerIdsFieldId, ServerIdsFieldMask,
        false,
        (Field::MFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&ClusterWindow::editHandleServerIds),
        static_cast<FieldGetMethodSig >(&ClusterWindow::getHandleServerIds));

    oType.addInitialDesc(pDesc);

    pDesc = new SFString::Description(
        SFString::getClassType(),
        "connectionType",
        "How to connect to the servers\n",
        ConnectionTypeFieldId, ConnectionTypeFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&ClusterWindow::editHandleConnectionType),
        static_cast<FieldGetMethodSig >(&ClusterWindow::getHandleConnectionType));

    oType.addInitialDesc(pDesc);

    pDesc = new SFString::Description(
        SFString::getClassType(),
        "connectionInterface",
        "Which network interface to use for communication\n",
        ConnectionInterfaceFieldId, ConnectionInterfaceFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&ClusterWindow::editHandleConnectionInterface),
        static_cast<FieldGetMethodSig >(&ClusterWindow::getHandleConnectionInterface));

    oType.addInitialDesc(pDesc);

    pDesc = new SFString::Description(
        SFString::getClassType(),
        "connectionDestination",
        "Multicast address for multicast connections\n",
        ConnectionDestinationFieldId, ConnectionDestinationFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&ClusterWindow::editHandleConnectionDestination),
        static_cast<FieldGetMethodSig >(&ClusterWindow::getHandleConnectionDestination));

    oType.addInitialDesc(pDesc);

    pDesc = new SFString::Description(
        SFString::getClassType(),
        "connectionParams",
        "Optional parameters e.g. \"TTL=2\"\n",
        ConnectionParamsFieldId, ConnectionParamsFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&ClusterWindow::editHandleConnectionParams),
        static_cast<FieldGetMethodSig >(&ClusterWindow::getHandleConnectionParams));

    oType.addInitialDesc(pDesc);

    pDesc = new SFUInt32::Description(
        SFUInt32::getClassType(),
        "servicePort",
        "Broadcastport used for server search\n",
        ServicePortFieldId, ServicePortFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&ClusterWindow::editHandleServicePort),
        static_cast<FieldGetMethodSig >(&ClusterWindow::getHandleServicePort));

    oType.addInitialDesc(pDesc);

    pDesc = new SFString::Description(
        SFString::getClassType(),
        "serviceAddress",
        "Broadcast or Multicast address used for server search\n",
        ServiceAddressFieldId, ServiceAddressFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&ClusterWindow::editHandleServiceAddress),
        static_cast<FieldGetMethodSig >(&ClusterWindow::getHandleServiceAddress));

    oType.addInitialDesc(pDesc);
//.........这里部分代码省略.........
开发者ID:vossg,项目名称:OpenSGDevMaster,代码行数:101,代码来源:OSGClusterWindowBase.cpp

示例13: classDescInserter

void PolygonBackgroundBase::classDescInserter(TypeObject &oType)
{
    FieldDescriptionBase *pDesc = NULL;


    pDesc = new SFUnrecPrimeMaterialPtr::Description(
        SFUnrecPrimeMaterialPtr::getClassType(),
        "material",
        "The material used to display.\n",
        MaterialFieldId, MaterialFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&PolygonBackground::editHandleMaterial),
        static_cast<FieldGetMethodSig >(&PolygonBackground::getHandleMaterial));

    oType.addInitialDesc(pDesc);

    pDesc = new MFVec3f::Description(
        MFVec3f::getClassType(),
        "texCoords",
        "The texture coordinates of the geometry to display.\n",
        TexCoordsFieldId, TexCoordsFieldMask,
        false,
        (Field::MFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&PolygonBackground::editHandleTexCoords),
        static_cast<FieldGetMethodSig >(&PolygonBackground::getHandleTexCoords));

    oType.addInitialDesc(pDesc);

    pDesc = new MFPnt2f::Description(
        MFPnt2f::getClassType(),
        "positions",
        "The positions of the geometry to display.\n",
        PositionsFieldId, PositionsFieldMask,
        false,
        (Field::MFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&PolygonBackground::editHandlePositions),
        static_cast<FieldGetMethodSig >(&PolygonBackground::getHandlePositions));

    oType.addInitialDesc(pDesc);

    pDesc = new SFBool::Description(
        SFBool::getClassType(),
        "normalizedX",
        "Define whether the x coordinates are normalized (0-1) or pixel-based.\n",
        NormalizedXFieldId, NormalizedXFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&PolygonBackground::editHandleNormalizedX),
        static_cast<FieldGetMethodSig >(&PolygonBackground::getHandleNormalizedX));

    oType.addInitialDesc(pDesc);

    pDesc = new SFBool::Description(
        SFBool::getClassType(),
        "normalizedY",
        "Define whether the y coordinates are normalized (0-1) or pixel-based.\n",
        NormalizedYFieldId, NormalizedYFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&PolygonBackground::editHandleNormalizedY),
        static_cast<FieldGetMethodSig >(&PolygonBackground::getHandleNormalizedY));

    oType.addInitialDesc(pDesc);

    pDesc = new SFUInt16::Description(
        SFUInt16::getClassType(),
        "aspectHeight",
        "Useful for keeping aspect ratio when rendering things like images.\n",
        AspectHeightFieldId, AspectHeightFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&PolygonBackground::editHandleAspectHeight),
        static_cast<FieldGetMethodSig >(&PolygonBackground::getHandleAspectHeight));

    oType.addInitialDesc(pDesc);

    pDesc = new SFUInt16::Description(
        SFUInt16::getClassType(),
        "aspectWidth",
        "Useful for keeping aspect ratio when rendering things like images.\n",
        AspectWidthFieldId, AspectWidthFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&PolygonBackground::editHandleAspectWidth),
        static_cast<FieldGetMethodSig >(&PolygonBackground::getHandleAspectWidth));

    oType.addInitialDesc(pDesc);

    pDesc = new SFReal32::Description(
        SFReal32::getClassType(),
        "scale",
        "Scale factor for zooming.\n",
        ScaleFieldId, ScaleFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&PolygonBackground::editHandleScale),
        static_cast<FieldGetMethodSig >(&PolygonBackground::getHandleScale));

    oType.addInitialDesc(pDesc);
//.........这里部分代码省略.........
开发者ID:DaveHarrison,项目名称:OpenSGDevMaster,代码行数:101,代码来源:OSGPolygonBackgroundBase.cpp

示例14: classDescInserter

void FrameHandlerBase::classDescInserter(TypeObject &oType)
{
    FieldDescriptionBase *pDesc = NULL;


    pDesc = new SFUInt64::Description(
        SFUInt64::getClassType(),
        "frameCount",
        "",
        FrameCountFieldId, FrameCountFieldMask,
        true,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&FrameHandler::editHandleFrameCount),
        static_cast<FieldGetMethodSig >(&FrameHandler::getHandleFrameCount));

    oType.addInitialDesc(pDesc);

    pDesc = new SFTime::Description(
        SFTime::getClassType(),
        "startTime",
        "",
        StartTimeFieldId, StartTimeFieldMask,
        true,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&FrameHandler::editHandleStartTime),
        static_cast<FieldGetMethodSig >(&FrameHandler::getHandleStartTime));

    oType.addInitialDesc(pDesc);

    pDesc = new SFTime::Description(
        SFTime::getClassType(),
        "lastTime",
        "",
        LastTimeFieldId, LastTimeFieldMask,
        true,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&FrameHandler::editHandleLastTime),
        static_cast<FieldGetMethodSig >(&FrameHandler::getHandleLastTime));

    oType.addInitialDesc(pDesc);

    pDesc = new SFTime::Description(
        SFTime::getClassType(),
        "currTime",
        "",
        CurrTimeFieldId, CurrTimeFieldMask,
        true,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&FrameHandler::editHandleCurrTime),
        static_cast<FieldGetMethodSig >(&FrameHandler::getHandleCurrTime));

    oType.addInitialDesc(pDesc);

    pDesc = new SFTime::Description(
        SFTime::getClassType(),
        "timeStamp",
        "",
        TimeStampFieldId, TimeStampFieldMask,
        true,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&FrameHandler::editHandleTimeStamp),
        static_cast<FieldGetMethodSig >(&FrameHandler::getHandleTimeStamp));

    oType.addInitialDesc(pDesc);

    pDesc = new SFTime::Description(
        SFTime::getClassType(),
        "timeScale",
        "",
        TimeScaleFieldId, TimeScaleFieldMask,
        true,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&FrameHandler::editHandleTimeScale),
        static_cast<FieldGetMethodSig >(&FrameHandler::getHandleTimeScale));

    oType.addInitialDesc(pDesc);

    pDesc = new SFTime::Description(
        SFTime::getClassType(),
        "constantTimeStep",
        "",
        ConstantTimeStepFieldId, ConstantTimeStepFieldMask,
        true,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&FrameHandler::editHandleConstantTimeStep),
        static_cast<FieldGetMethodSig >(&FrameHandler::getHandleConstantTimeStep));

    oType.addInitialDesc(pDesc);

    pDesc = new SFBool::Description(
        SFBool::getClassType(),
        "constantTime",
        "",
        ConstantTimeFieldId, ConstantTimeFieldMask,
        true,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&FrameHandler::editHandleConstantTime),
        static_cast<FieldGetMethodSig >(&FrameHandler::getHandleConstantTime));

    oType.addInitialDesc(pDesc);
//.........这里部分代码省略.........
开发者ID:Himbeertoni,项目名称:OpenSGDevMaster,代码行数:101,代码来源:OSGFrameHandlerBase.cpp

示例15: classDescInserter

void BbqTerrainBase::classDescInserter(TypeObject &oType)
{
    FieldDescriptionBase *pDesc = NULL;


    pDesc = new SFUnrecNodePtr::Description(
        SFUnrecNodePtr::getClassType(),
        "beacon",
        "",
        BeaconFieldId, BeaconFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&BbqTerrain::editHandleBeacon),
        static_cast<FieldGetMethodSig >(&BbqTerrain::getHandleBeacon));

    oType.addInitialDesc(pDesc);

    pDesc = new SFUnrecBbqDataSourcePtr::Description(
        SFUnrecBbqDataSourcePtr::getClassType(),
        "dataSource",
        "",
        DataSourceFieldId, DataSourceFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&BbqTerrain::editHandleDataSource),
        static_cast<FieldGetMethodSig >(&BbqTerrain::getHandleDataSource));

    oType.addInitialDesc(pDesc);

    pDesc = new SFUInt32::Description(
        SFUInt32::getClassType(),
        "maxNumResidentNodes",
        "",
        MaxNumResidentNodesFieldId, MaxNumResidentNodesFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&BbqTerrain::editHandleMaxNumResidentNodes),
        static_cast<FieldGetMethodSig >(&BbqTerrain::getHandleMaxNumResidentNodes));

    oType.addInitialDesc(pDesc);

    pDesc = new SFReal32::Description(
        SFReal32::getClassType(),
        "screenSpaceError",
        "",
        ScreenSpaceErrorFieldId, ScreenSpaceErrorFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&BbqTerrain::editHandleScreenSpaceError),
        static_cast<FieldGetMethodSig >(&BbqTerrain::getHandleScreenSpaceError));

    oType.addInitialDesc(pDesc);

    pDesc = new SFBool::Description(
        SFBool::getClassType(),
        "enableSkirts",
        "",
        EnableSkirtsFieldId, EnableSkirtsFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&BbqTerrain::editHandleEnableSkirts),
        static_cast<FieldGetMethodSig >(&BbqTerrain::getHandleEnableSkirts));

    oType.addInitialDesc(pDesc);

    pDesc = new SFBool::Description(
        SFBool::getClassType(),
        "showSwitchDistance",
        "",
        ShowSwitchDistanceFieldId, ShowSwitchDistanceFieldMask,
        false,
        (Field::SFDefaultFlags | Field::FStdAccess),
        static_cast<FieldEditMethodSig>(&BbqTerrain::editHandleShowSwitchDistance),
        static_cast<FieldGetMethodSig >(&BbqTerrain::getHandleShowSwitchDistance));

    oType.addInitialDesc(pDesc);
}
开发者ID:vossg,项目名称:OSGAddOnsGV,代码行数:77,代码来源:OSGBbqTerrainBase.cpp


注:本文中的TypeObject类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。