您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ CAF_PDM_InitObject函数代码示例

51自学网 2021-06-01 19:56:25
  C++
这篇教程C++ CAF_PDM_InitObject函数代码示例写得很实用,希望能帮到您。

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

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

示例1: CAF_PDM_InitObject

//--------------------------------------------------------------------------------------------------/// //--------------------------------------------------------------------------------------------------RimNoCommonAreaNNC::RimNoCommonAreaNNC(){    CAF_PDM_InitObject("RimNoCommonAreaNNC", "", "", "");    CAF_PDM_InitFieldNoDefault(&name,       "Name",             "Name", "", "", "");    name.uiCapability()->setUiReadOnly(true);}
开发者ID:OPM,项目名称:ResInsight,代码行数:10,


示例2: CAF_PDM_InitObject

//--------------------------------------------------------------------------------------------------/////--------------------------------------------------------------------------------------------------RimWellPathFracture::RimWellPathFracture(void){    CAF_PDM_InitObject("Fracture", ":/FractureSymbol16x16.png", "", "");    CAF_PDM_InitField(&m_measuredDepth, "MeasuredDepth", 0.0f, "Measured Depth Location", "", "", "");    m_measuredDepth.uiCapability()->setUiEditorTypeName(caf::PdmUiDoubleSliderEditor::uiEditorTypeName());}
开发者ID:OPM,项目名称:ResInsight,代码行数:10,


示例3: CAF_PDM_InitObject

//--------------------------------------------------------------------------------------------------/// //--------------------------------------------------------------------------------------------------RimEclipseInputPropertyCollection::RimEclipseInputPropertyCollection(){    CAF_PDM_InitObject("Input Properties", ":/EclipseInput48x48.png", "", "");    CAF_PDM_InitFieldNoDefault(&inputProperties, "InputProperties", "",  "", "", "");    inputProperties.uiCapability()->setUiHidden(true);}
开发者ID:atgeirr,项目名称:ResInsight,代码行数:10,


示例4: m_pickTargetsEventHandler

//--------------------------------------------------------------------------------------------------/// //--------------------------------------------------------------------------------------------------RimWellPathGeometryDef::RimWellPathGeometryDef()    : m_pickTargetsEventHandler(new RicCreateWellTargetsPickEventHandler(this)){    CAF_PDM_InitObject("Well Targets", ":/WellTargets.png", "", "");    this->setUi3dEditorTypeName(RicWellPathGeometry3dEditor::uiEditorTypeName());    CAF_PDM_InitField(&m_referencePointUtmXyd, "ReferencePosUtmXyd", cvf::Vec3d(0,0,0), "UTM Reference Point", "", "", "");    CAF_PDM_InitField(&m_mdrkbAtFirstTarget, "MdrkbAtFirstTarget", 0.0, "MDRKB at First Target", "", "", "");    CAF_PDM_InitFieldNoDefault(&m_wellTargets, "WellPathTargets", "Well Targets", "", "", "");    m_wellTargets.uiCapability()->setUiEditorTypeName(caf::PdmUiTableViewEditor::uiEditorTypeName());    //m_wellTargets.uiCapability()->setUiTreeHidden(true);    m_wellTargets.uiCapability()->setUiTreeChildrenHidden(true);    m_wellTargets.uiCapability()->setUiLabelPosition(caf::PdmUiItemInfo::TOP);    m_wellTargets.uiCapability()->setCustomContextMenuEnabled(true);    CAF_PDM_InitField(&m_pickPointsEnabled, "m_pickPointsEnabled", false, "", "", "", "");    caf::PdmUiPushButtonEditor::configureEditorForField(&m_pickPointsEnabled);    // Temp conversion field.     CAF_PDM_InitField(&m_referencePointXyz_OBSOLETE, "ReferencePos", cvf::Vec3d(0,0,0), "UTM Reference Point", "", "", "");    RiaFieldhandleTools::disableWriteAndSetFieldHidden(&m_referencePointXyz_OBSOLETE);    /// To be removed ?    CAF_PDM_InitFieldNoDefault(&m_wellStartType, "WellStartType", "Start Type", "", "", "");    m_wellStartType.xmlCapability()->disableIO();    CAF_PDM_InitFieldNoDefault(&m_parentWell, "ParentWell", "Parent Well", "", "", "");    m_parentWell.xmlCapability()->disableIO();    CAF_PDM_InitField(&m_kickoffDepthOrMD, "KickoffDepthOrMD", 100.0, "Kickoff Depth", "", "", "");    m_kickoffDepthOrMD.xmlCapability()->disableIO();}
开发者ID:OPM,项目名称:ResInsight,代码行数:37,


示例5: CAF_PDM_InitObject

//--------------------------------------------------------------------------------------------------/// //--------------------------------------------------------------------------------------------------RimEclipsePropertyFilterCollection::RimEclipsePropertyFilterCollection(){    CAF_PDM_InitObject("Property Filters", ":/CellFilter_Values.png", "", "");    CAF_PDM_InitFieldNoDefault(&propertyFilters, "PropertyFilters", "Property Filters",         "", "", "");    propertyFilters.uiCapability()->setUiHidden(true);}
开发者ID:magnesj,项目名称:ResInsight,代码行数:10,


示例6: CAF_PDM_InitObject

//--------------------------------------------------------------------------------------------------/// //--------------------------------------------------------------------------------------------------RimGeoMechModels::RimGeoMechModels(void){    CAF_PDM_InitObject("Geomechanical Models", ":/GeoMechCases48x48.png", "", "");    CAF_PDM_InitFieldNoDefault(&cases, "Cases", "",  "", "", "");  }
开发者ID:higgscc,项目名称:ResInsight,代码行数:10,


示例7: m_parentContainer

//--------------------------------------------------------------------------------------------------/// //--------------------------------------------------------------------------------------------------RimCellPropertyFilter::RimCellPropertyFilter()    : m_parentContainer(NULL){    CAF_PDM_InitObject("Cell Property Filter", ":/CellFilter_Values.png", "", "");    CAF_PDM_InitFieldNoDefault(&evaluationRegion, "EvaluationRegion", "Evaluation region", "", "", "");    evaluationRegion.setUiHidden(true);    evaluationRegion.setIOWritable(false);    CAF_PDM_InitFieldNoDefault(&resultDefinition, "ResultDefinition", "Result definition", "", "", "");    resultDefinition = new RimResultDefinition();        // Take ownership of the fields in RimResultDefinition to be able to trap fieldChangedByUi in this class    resultDefinition->m_resultTypeUiField.setOwnerObject(this);    resultDefinition->m_resultTypeUiField.setUiName("");    resultDefinition->m_porosityModelUiField.setOwnerObject(this);    resultDefinition->m_porosityModelUiField.setUiName("");    resultDefinition->m_resultVariableUiField.setOwnerObject(this);    resultDefinition->m_resultVariableUiField.setUiName("");    // Set to hidden to avoid this item to been displayed as a child item    // Fields in this object are displayed using defineUiOrdering()    resultDefinition.setUiHidden(true);    CAF_PDM_InitField(&lowerBound, "LowerBound", 0.0, "Min", "", "", "");    lowerBound.setUiEditorTypeName(caf::PdmUiDoubleSliderEditor::uiEditorTypeName());    CAF_PDM_InitField(&upperBound, "UpperBound", 0.0, "Max", "", "", "");    upperBound.setUiEditorTypeName(caf::PdmUiDoubleSliderEditor::uiEditorTypeName());    updateIconState();    m_minimumResultValue = cvf::UNDEFINED_DOUBLE;    m_maximumResultValue = cvf::UNDEFINED_DOUBLE;}
开发者ID:JacobStoren,项目名称:ResInsight,代码行数:38,


示例8: CAF_PDM_InitObject

//--------------------------------------------------------------------------------------------------/// //--------------------------------------------------------------------------------------------------RimWellPathCompletions::RimWellPathCompletions(){    CAF_PDM_InitObject("Completions", ":/CompletionsSymbol16x16.png", "", "");    CAF_PDM_InitFieldNoDefault(&m_perforationCollection, "Perforations", "Perforations", "", "", "");    m_perforationCollection = new RimPerforationCollection;    m_perforationCollection.uiCapability()->setUiHidden(true);    CAF_PDM_InitFieldNoDefault(&m_fishbonesCollection, "Fishbones", "Fishbones", "", "", "");    m_fishbonesCollection = new RimFishbonesCollection;    m_fishbonesCollection.uiCapability()->setUiHidden(true);    CAF_PDM_InitFieldNoDefault(&m_fractureCollection, "Fractures", "Fractures", "", "", "");    m_fractureCollection = new RimWellPathFractureCollection;    m_fractureCollection.uiCapability()->setUiHidden(true);    CAF_PDM_InitField(&m_wellNameForExport, "WellNameForExport", QString(), "Well Name", "", "", "");    m_wellNameForExport.uiCapability()->setUiEditorTypeName(caf::PdmUiLineEditor::uiEditorTypeName());    CAF_PDM_InitField(&m_wellGroupName, "WellGroupNameForExport", QString(), "Well Group Name", "", "", "");    CAF_PDM_InitField(&m_referenceDepth, "ReferenceDepthForExport", QString(), "Reference Depth for BHP", "", "", "");    CAF_PDM_InitField(&m_preferredFluidPhase, "WellTypeForExport", WellTypeEnum(), "Preferred Fluid Phase", "", "", "");    CAF_PDM_InitField(&m_drainageRadiusForPI, "DrainageRadiusForPI", QString("0.0"), "Drainage Radius for PI", "", "", "");    CAF_PDM_InitFieldNoDefault(&m_gasInflowEquation, "GasInflowEq", "Gas Inflow Equation", "", "", "");    CAF_PDM_InitFieldNoDefault(&m_automaticWellShutIn, "AutoWellShutIn", "Automatic well shut-in", "", "", "");    CAF_PDM_InitField(&m_allowWellCrossFlow, "AllowWellCrossFlow", true, "Allow Well Cross-Flow", "", "", "");    CAF_PDM_InitField(&m_wellBoreFluidPVTTable, "WellBoreFluidPVTTable", 0, "Wellbore Fluid PVT table", "", "", "");    CAF_PDM_InitFieldNoDefault(&m_hydrostaticDensity, "HydrostaticDensity", "Hydrostatic Density", "", "", "");    CAF_PDM_InitField(&m_fluidInPlaceRegion, "FluidInPlaceRegion", 0, "Fluid In-Place Region", "", "", "");}
开发者ID:OPM,项目名称:ResInsight,代码行数:33,


示例9: CAF_PDM_InitObject

//--------------------------------------------------------------------------------------------------/// //--------------------------------------------------------------------------------------------------RimCellRangeFilter::RimCellRangeFilter(){    CAF_PDM_InitObject("Cell Range Filter", ":/CellFilter_Range.png", "", "");    CAF_PDM_InitField(&m_gridIndex, "GridIndex",  0,  "Grid", "", "","");    CAF_PDM_InitField(&propagateToSubGrids, "PropagateToSubGrids",  true,  "Apply to Subgrids", "", "","");    CAF_PDM_InitField(&startIndexI, "StartIndexI",  1,  "Start Index I", "", "","");    startIndexI.uiCapability()->setUiEditorTypeName(caf::PdmUiSliderEditor::uiEditorTypeName());        CAF_PDM_InitField(&cellCountI,  "CellCountI",   1,  "Cell Count I", "", "","");    cellCountI.uiCapability()->setUiEditorTypeName(caf::PdmUiSliderEditor::uiEditorTypeName());    CAF_PDM_InitField(&startIndexJ, "StartIndexJ",  1,  "Start Index J", "", "","");    startIndexJ.uiCapability()->setUiEditorTypeName(caf::PdmUiSliderEditor::uiEditorTypeName());    CAF_PDM_InitField(&cellCountJ,  "CellCountJ",   1,  "Cell Count J", "", "","");    cellCountJ.uiCapability()->setUiEditorTypeName(caf::PdmUiSliderEditor::uiEditorTypeName());    CAF_PDM_InitField(&startIndexK, "StartIndexK",  1,  "Start Index K", "", "","");    startIndexK.uiCapability()->setUiEditorTypeName(caf::PdmUiSliderEditor::uiEditorTypeName());    CAF_PDM_InitField(&cellCountK,  "CellCountK",   1,  "Cell Count K", "", "","");    cellCountK.uiCapability()->setUiEditorTypeName(caf::PdmUiSliderEditor::uiEditorTypeName());    CAF_PDM_InitField(&m_useIndividualCellIndices, "UseIndividualCellIndices", false, "Use Individual Cell Indices", "", "", "");    CAF_PDM_InitFieldNoDefault(&m_individualCellIndices, "IndividualCellIndices", "Cell Indices", "", "Use Ctrl-C for copy and Ctrl-V for paste", "");    updateIconState();}
开发者ID:OPM,项目名称:ResInsight,代码行数:33,


示例10: CAF_PDM_InitObject

//--------------------------------------------------------------------------------------------------/// //--------------------------------------------------------------------------------------------------RimWellPathCollection::RimWellPathCollection(){    CAF_PDM_InitObject("Wells", ":/WellCollection.png", "", "");    CAF_PDM_InitField(&isActive,              "Active",        true,   "Active", "", "", "");    isActive.uiCapability()->setUiHidden(true);    CAF_PDM_InitField(&showWellPathLabel,               "ShowWellPathLabel",        true,                       "Show well path labels", "", "", "");    cvf::Color3f defWellLabelColor = RiaApplication::instance()->preferences()->defaultWellLabelColor();    CAF_PDM_InitField(&wellPathLabelColor,              "WellPathLabelColor",   defWellLabelColor, "Well label color",  "", "", "");    CAF_PDM_InitField(&wellPathVisibility,              "GlobalWellPathVisibility", WellVisibilityEnum(ALL_ON), "Global well path visibility",  "", "", "");    CAF_PDM_InitField(&wellPathRadiusScaleFactor,       "WellPathRadiusScale",      0.1,                        "Well Path radius scale", "", "", "");    CAF_PDM_InitField(&wellPathCrossSectionVertexCount, "WellPathVertexCount",      12,                          "Well Path vertex count", "", "", "");    wellPathCrossSectionVertexCount.xmlCapability()->setIOWritable(false);    wellPathCrossSectionVertexCount.xmlCapability()->setIOReadable(false);    wellPathCrossSectionVertexCount.uiCapability()->setUiHidden(true);    CAF_PDM_InitField(&wellPathClip,                    "WellPathClip",             true,                       "Clip Well Paths", "", "", "");    CAF_PDM_InitField(&wellPathClipZDistance,           "WellPathClipZDistance",    100,                        "Well path clipping depth distance", "", "", "");    CAF_PDM_InitFieldNoDefault(&wellPaths,              "WellPaths",                                            "Well Paths",  "", "", "");    wellPaths.uiCapability()->setUiHidden(true);    m_wellPathCollectionPartManager = new RivWellPathCollectionPartMgr(this);    m_asciiFileReader = new RifWellPathAsciiFileReader;}
开发者ID:magnesj,项目名称:ResInsight,代码行数:32,


示例11: CAF_PDM_InitObject

//--------------------------------------------------------------------------------------------------/// //--------------------------------------------------------------------------------------------------RimWellCollection::RimWellCollection(){    CAF_PDM_InitObject("Wells", ":/WellCollection.png", "", "");    CAF_PDM_InitField(&isActive,              "Active",        true,   "Active", "", "", "");    isActive.setUiHidden(true);    CAF_PDM_InitField(&showWellHead,        "ShowWellHead",     true,   "Show well heads", "", "", "");    CAF_PDM_InitField(&showWellLabel,       "ShowWellLabel",    true,   "Show well labels", "", "", "");    CAF_PDM_InitField(&wellHeadScaleFactor, "WellHeadScale",    1.0,    "Well head scale", "", "", "");    CAF_PDM_InitField(&wellHeadPosition,    "WellHeadPosition", WellHeadPositionEnum(WELLHEAD_POS_TOP_COLUMN), "Well head position",  "", "", "");    CAF_PDM_InitField(&wellPipeVisibility,  "GlobalWellPipeVisibility", WellVisibilityEnum(PIPES_OPEN_IN_VISIBLE_CELLS), "Global well pipe visibility",  "", "", "");    CAF_PDM_InitField(&pipeRadiusScaleFactor,       "WellPipeRadiusScale",    0.1,                        "Pipe radius scale", "", "", "");    CAF_PDM_InitField(&pipeCrossSectionVertexCount, "WellPipeVertexCount", 12, "Pipe vertex count", "", "", "");    pipeCrossSectionVertexCount.setUiHidden(true);    CAF_PDM_InitField(&wellCellsToRangeFilterMode,  "GlobalWellCellVisibility", WellCellsRangeFilterEnum(RANGE_ADD_NONE),  "Add cells to range filter", "", "", "");    CAF_PDM_InitField(&showWellCellFences,  "ShowWellFences",           false,                              "Use well fence", "", "", "");    CAF_PDM_InitField(&wellCellFenceType,   "DefaultWellFenceDirection", WellFenceEnum(K_DIRECTION),        "Well Fence direction", "", "", "");    CAF_PDM_InitField(&wellCellTransparencyLevel, "WellCellTransparency", 0.5, "Well cell transparency", "", "", "");    CAF_PDM_InitField(&isAutoDetectingBranches, "IsAutoDetectingBranches", true, "Geometry based branch detection", "", "Toggle wether the well pipe visualization will try to detect when a part of the well /nis really a branch, and thus is starting from wellhead", "");    CAF_PDM_InitFieldNoDefault(&wells, "Wells", "Wells",  "", "", "");    m_reservoirView = NULL;}
开发者ID:renjianshuiguo,项目名称:ResInsight,代码行数:33,


示例12: m_parentContainer

//--------------------------------------------------------------------------------------------------/// //--------------------------------------------------------------------------------------------------RimCellRangeFilter::RimCellRangeFilter()    : m_parentContainer(NULL){    CAF_PDM_InitObject("Cell Range Filter", ":/CellFilter_Range.png", "", "");    CAF_PDM_InitField(&startIndexI, "StartIndexI",  1,  "Start index I", "", "","");    startIndexI.setUiEditorTypeName(caf::PdmUiSliderEditor::uiEditorTypeName());        CAF_PDM_InitField(&cellCountI,  "CellCountI",   1,  "Cell Count I", "", "","");    cellCountI.setUiEditorTypeName(caf::PdmUiSliderEditor::uiEditorTypeName());    CAF_PDM_InitField(&startIndexJ, "StartIndexJ",  1,  "Start index J", "", "","");    startIndexJ.setUiEditorTypeName(caf::PdmUiSliderEditor::uiEditorTypeName());    CAF_PDM_InitField(&cellCountJ,  "CellCountJ",   1,  "Cell Count J", "", "","");    cellCountJ.setUiEditorTypeName(caf::PdmUiSliderEditor::uiEditorTypeName());    CAF_PDM_InitField(&startIndexK, "StartIndexK",  1,  "Start index K", "", "","");    startIndexK.setUiEditorTypeName(caf::PdmUiSliderEditor::uiEditorTypeName());    CAF_PDM_InitField(&cellCountK,  "CellCountK",   1,  "Cell Count K", "", "","");    cellCountK.setUiEditorTypeName(caf::PdmUiSliderEditor::uiEditorTypeName());        updateIconState();}
开发者ID:akva2,项目名称:ResInsight,代码行数:28,


示例13: CAF_PDM_InitObject

//--------------------------------------------------------------------------------------------------/// //--------------------------------------------------------------------------------------------------RimSummaryCase::RimSummaryCase(){    CAF_PDM_InitObject("Summary Case",":/SummaryCase48x48.png","","");    CAF_PDM_InitField(&m_shortName, "ShortName", QString("Display Name"), "Display Name", "", "", "");    CAF_PDM_InitField(&m_useAutoShortName, "AutoShortyName", false, "Use Auto Display Name", "", "", "");}
开发者ID:magnesj,项目名称:ResInsight,代码行数:10,


示例14: CAF_PDM_InitObject

//--------------------------------------------------------------------------------------------------/// //--------------------------------------------------------------------------------------------------RimEclipsePropertyFilter::RimEclipsePropertyFilter(){    CAF_PDM_InitObject("Cell Property Filter", ":/CellFilter_Values.png", "", "");    CAF_PDM_InitFieldNoDefault(&obsoleteField_evaluationRegion, "EvaluationRegion", "Evaluation region", "", "", "");    obsoleteField_evaluationRegion.uiCapability()->setUiHidden(true);    obsoleteField_evaluationRegion.xmlCapability()->setIOWritable(false);    CAF_PDM_InitFieldNoDefault(&resultDefinition, "ResultDefinition", "Result definition", "", "", "");    resultDefinition = new RimEclipseResultDefinition();    // Set to hidden to avoid this item to been displayed as a child item    // Fields in this object are displayed using defineUiOrdering()    resultDefinition.uiCapability()->setUiHidden(true);    resultDefinition.uiCapability()->setUiTreeChildrenHidden(true);    CAF_PDM_InitField(&m_lowerBound, "LowerBound", 0.0, "Min", "", "", "");    m_lowerBound.uiCapability()->setUiEditorTypeName(caf::PdmUiDoubleSliderEditor::uiEditorTypeName());    CAF_PDM_InitField(&m_upperBound, "UpperBound", 0.0, "Max", "", "", "");    m_upperBound.uiCapability()->setUiEditorTypeName(caf::PdmUiDoubleSliderEditor::uiEditorTypeName());    CAF_PDM_InitField(&m_categorySelection, "CategorySelection", false, "Category Selection", "", "", "");    m_upperBound.uiCapability()->setUiEditorTypeName(caf::PdmUiDoubleSliderEditor::uiEditorTypeName());    updateIconState();    m_minimumResultValue = cvf::UNDEFINED_DOUBLE;    m_maximumResultValue = cvf::UNDEFINED_DOUBLE;}
开发者ID:magnesj,项目名称:ResInsight,代码行数:33,


示例15: CAF_PDM_InitObject

//--------------------------------------------------------------------------------------------------/// //--------------------------------------------------------------------------------------------------RimGridCollection::RimGridCollection(){    CAF_PDM_InitObject("Grids", ":/draw_style_faults_24x24.png", "", "");    CAF_PDM_InitField(&isActive, "IsActive", true, "Show grid cells", "", "", "");    isActive.uiCapability()->setUiHidden(true);}
开发者ID:atgeirr,项目名称:ResInsight,代码行数:10,


示例16: CAF_PDM_InitObject

//--------------------------------------------------------------------------------------------------/////--------------------------------------------------------------------------------------------------RimCellEdgeColors::RimCellEdgeColors(){    CAF_PDM_InitObject("Cell Edge Result", ":/EdgeResult_1.png", "", "");    CAF_PDM_InitField(&enableCellEdgeColors, "EnableCellEdgeColors", true, "Enable cell edge results", "", "", "");    CAF_PDM_InitFieldNoDefault(&m_propertyType, "propertyType", "Property Type", "", "", "");    CAF_PDM_InitFieldNoDefault(&m_resultVariable, "CellEdgeVariable", "Result property", "", "", "");    CAF_PDM_InitField(&useXVariable, "UseXVariable", true, "Use X values", "", "", "");    CAF_PDM_InitField(&useYVariable, "UseYVariable", true, "Use Y values", "", "", "");    CAF_PDM_InitField(&useZVariable, "UseZVariable", true, "Use Z values", "", "", "");    CAF_PDM_InitFieldNoDefault(&m_legendConfig, "LegendDefinition", "Legend Definition", ":/Legend.png", "", "");    CAF_PDM_InitFieldNoDefault(&m_singleVarEdgeResultColors, "SingleVarEdgeResult", "Result Property", ":/CellResult.png", "", "");    m_singleVarEdgeResultColors = new RimEclipseCellColors();    m_resultVariable.uiCapability()->setUiEditorTypeName(caf::PdmUiListEditor::uiEditorTypeName());    m_legendConfig = new RimLegendConfig();    m_ignoredResultScalar = cvf::UNDEFINED_DOUBLE;    resetResultIndices();}
开发者ID:OPM,项目名称:ResInsight,代码行数:28,


示例17: m_parentContainer

//--------------------------------------------------------------------------------------------------/// //--------------------------------------------------------------------------------------------------RimCellRangeFilter::RimCellRangeFilter()    : m_parentContainer(NULL){    CAF_PDM_InitObject("Cell Range Filter", ":/CellFilter_Range.png", "", "");    CAF_PDM_InitField(&gridIndex, "GridIndex",  0,  "Grid", "", "","");    CAF_PDM_InitField(&propagateToSubGrids, "PropagateToSubGrids",  true,  "Apply to Subgrids", "", "","");    CAF_PDM_InitField(&startIndexI, "StartIndexI",  1,  "Start index I", "", "","");    startIndexI.setUiEditorTypeName(caf::PdmUiSliderEditor::uiEditorTypeName());        CAF_PDM_InitField(&cellCountI,  "CellCountI",   1,  "Cell Count I", "", "","");    cellCountI.setUiEditorTypeName(caf::PdmUiSliderEditor::uiEditorTypeName());    CAF_PDM_InitField(&startIndexJ, "StartIndexJ",  1,  "Start index J", "", "","");    startIndexJ.setUiEditorTypeName(caf::PdmUiSliderEditor::uiEditorTypeName());    CAF_PDM_InitField(&cellCountJ,  "CellCountJ",   1,  "Cell Count J", "", "","");    cellCountJ.setUiEditorTypeName(caf::PdmUiSliderEditor::uiEditorTypeName());    CAF_PDM_InitField(&startIndexK, "StartIndexK",  1,  "Start index K", "", "","");    startIndexK.setUiEditorTypeName(caf::PdmUiSliderEditor::uiEditorTypeName());    CAF_PDM_InitField(&cellCountK,  "CellCountK",   1,  "Cell Count K", "", "","");    cellCountK.setUiEditorTypeName(caf::PdmUiSliderEditor::uiEditorTypeName());        updateIconState();}
开发者ID:PETECLAM,项目名称:ResInsight,代码行数:31,


示例18: CAF_PDM_InitObject

//--------------------------------------------------------------------------------------------------/// //--------------------------------------------------------------------------------------------------RimWellLogPlot::RimWellLogPlot(){    CAF_PDM_InitObject("Well Log Plot", ":/WellLogPlot16x16.png", "", "");    m_viewer = NULL;    CAF_PDM_InitField(&m_showWindow, "ShowWindow", true, "Show well log plot", "", "", "");    m_showWindow.uiCapability()->setUiHidden(true);        CAF_PDM_InitField(&m_userName, "PlotDescription", QString("Well Log Plot"),"Name", "", "", "");        caf::AppEnum< RimWellLogPlot::DepthTypeEnum > depthType = MEASURED_DEPTH;    CAF_PDM_InitField(&m_depthType, "DepthType", depthType, "Depth type",   "", "", "");    caf::AppEnum< RimDefines::DepthUnitType > depthUnit = RimDefines::UNIT_METER;    CAF_PDM_InitField(&m_depthUnit, "DepthUnit", depthUnit, "Depth unit", "", "", "");    CAF_PDM_InitField(&m_minVisibleDepth, "MinimumDepth", 0.0, "Min", "", "", "");    CAF_PDM_InitField(&m_maxVisibleDepth, "MaximumDepth", 1000.0, "Max", "", "", "");        CAF_PDM_InitField(&m_isAutoScaleDepthEnabled, "AutoScaleDepthEnabled", true, "Auto Scale", "", "", "");    CAF_PDM_InitFieldNoDefault(&m_tracks, "Tracks", "",  "", "", "");    m_tracks.uiCapability()->setUiHidden(true);    m_minAvailableDepth = HUGE_VAL;    m_maxAvailableDepth = -HUGE_VAL;}
开发者ID:magnesj,项目名称:ResInsight,代码行数:30,


示例19: m_globalAutoMax

//--------------------------------------------------------------------------------------------------/// //--------------------------------------------------------------------------------------------------RimLegendConfig::RimLegendConfig()     :   m_globalAutoMax(cvf::UNDEFINED_DOUBLE),        m_globalAutoMin(cvf::UNDEFINED_DOUBLE),        m_localAutoMax(cvf::UNDEFINED_DOUBLE),        m_localAutoMin(cvf::UNDEFINED_DOUBLE){    CAF_PDM_InitObject("Legend Definition", ":/Legend.png", "", "");    CAF_PDM_InitField(&m_numLevels, "NumberOfLevels", 8, "Number of levels", "", "","");    CAF_PDM_InitField(&m_precision, "Precision", 6, "Precision", "", "","");    CAF_PDM_InitField(&m_colorRangeMode, "ColorRangeMode", ColorRangeEnum(NORMAL) , "Color range", "", "", "");    CAF_PDM_InitField(&m_mappingMode, "MappingMode", MappingEnum(LINEAR_CONTINUOUS) , "Mapping", "", "", "");    CAF_PDM_InitField(&m_rangeMode, "RangeType", caf::AppEnum<RimLegendConfig::RangeModeType>(AUTOMATIC_ALLTIMESTEPS), "Legend range type", "", "Switches between automatic and user defined range on the legend", "");    CAF_PDM_InitField(&m_userDefinedMaxValue, "UserDefinedMax", 1.0, "Max", "", "Min value of the legend", "");    CAF_PDM_InitField(&m_userDefinedMinValue, "UserDefinedMin", 0.0, "Min", "", "Max value of the legend", "");    CAF_PDM_InitField(&resultVariableName, "ResultVariableUsage", QString(""), "", "", "", "");    resultVariableName.setUiHidden(true);    m_linDiscreteScalarMapper = new cvf::ScalarMapperDiscreteLinear;    m_logDiscreteScalarMapper = new cvf::ScalarMapperDiscreteLog;    m_linSmoothScalarMapper = new cvf::ScalarMapperContinuousLinear;    m_logSmoothScalarMapper = new cvf::ScalarMapperContinuousLog;    m_currentScalarMapper = m_linDiscreteScalarMapper;    cvf::FixedAtlasFont* font = new cvf::FixedAtlasFont(cvf::FixedAtlasFont::STANDARD);    m_legend = new cvf::OverlayScalarMapperLegend(font);    m_position = cvf::Vec2ui(20, 50);    updateFieldVisibility();    updateLegend();}
开发者ID:akva2,项目名称:ResInsight,代码行数:35,


示例20: CAF_PDM_InitObject

//--------------------------------------------------------------------------------------------------/// //--------------------------------------------------------------------------------------------------RimEclipsePropertyFilterCollection::RimEclipsePropertyFilterCollection(){    CAF_PDM_InitObject("Cell Property Filters", ":/CellFilter_Values.png", "", "");    CAF_PDM_InitFieldNoDefault(&propertyFilters, "PropertyFilters", "Property Filters",         "", "", "");    CAF_PDM_InitField(&active,                  "Active", true, "Active", "", "", "");    active.setUiHidden(true);}
开发者ID:higgscc,项目名称:ResInsight,代码行数:11,


示例21: CAF_PDM_InitObject

//--------------------------------------------------------------------------------------------------/// //--------------------------------------------------------------------------------------------------Rim3dOverlayInfoConfig::Rim3dOverlayInfoConfig() {    CAF_PDM_InitObject("Overlay 3D info", ":/Legend.png", "", "");    CAF_PDM_InitField(&showInfoText,        "ShowInfoText",         true,   "Info Text",   "", "", "");    CAF_PDM_InitField(&showAnimProgress,    "ShowAnimProgress",     true,   "Animation progress",   "", "", "");    CAF_PDM_InitField(&showHistogram,       "ShowHistogram",        true,   "Histogram",   "", "", "");}
开发者ID:isaushkin,项目名称:ResInsight,代码行数:11,


示例22: CAF_PDM_InitObject

//--------------------------------------------------------------------------------------------------/// //--------------------------------------------------------------------------------------------------RicSelectSummaryPlotUI::RicSelectSummaryPlotUI(){    CAF_PDM_InitObject("RicSelectSummaryPlotUI", "", "", "");    CAF_PDM_InitFieldNoDefault(&m_selectedSummaryPlot,  "SelectedSummaryPlot",                    "Select Plot", "", "", "");    CAF_PDM_InitField(&m_createNewPlot,                 "CreateNewPlot", false,                   "Create New Plot", "", "", "");    CAF_PDM_InitField(&m_newSummaryPlotName,            "NewViewName",   QString("Cell Results"), "New Plot Name", "", "", "");}
开发者ID:OPM,项目名称:ResInsight,代码行数:11,



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


C++ CAIRO_CONTAINER函数代码示例
C++ CAF_PDM_InitFieldNoDefault函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。