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

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

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

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

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

示例1: 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,


示例2: 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,


示例3: 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,


示例4: CAF_PDM_InitField

//--------------------------------------------------------------------------------------------------/////--------------------------------------------------------------------------------------------------RicCreateMultipleFracturesOptionItemUi::RicCreateMultipleFracturesOptionItemUi(){    CAF_PDM_InitField(&m_topKOneBased, "TopKLayer", 1, "Top K Layer", "", "", "");    CAF_PDM_InitField(&m_baseKOneBased, "BaseKLayer", 1, "Base K Layer", "", "", "");    CAF_PDM_InitFieldNoDefault(&m_fractureTemplate, "Template", "Template", "", "", "");    CAF_PDM_InitField(&m_minSpacing, "MinSpacing", 300.0, "Spacing", "", "", "");}
开发者ID:OPM,项目名称:ResInsight,代码行数:10,


示例5: CAF_PDM_InitField

//------------------------------------------------------------------------------------------------/// //--------------------------------------------------------------------------------------------------RimCase::RimCase(){    CAF_PDM_InitField(&caseUserDescription, "CaseUserDescription",  QString(), "Case name", "", "" ,"");        CAF_PDM_InitField(&caseId, "CaseId", -1, "Case ID", "", "" ,"");    caseId.setUiReadOnly(true);    CAF_PDM_InitFieldNoDefault(&reservoirViews, "ReservoirViews", "",  "", "", "");    CAF_PDM_InitFieldNoDefault(&m_matrixModelResults, "MatrixModelResults", "",  "", "", "");    m_matrixModelResults.setUiHidden(true);    CAF_PDM_InitFieldNoDefault(&m_fractureModelResults, "FractureModelResults", "",  "", "", "");    m_fractureModelResults.setUiHidden(true);    CAF_PDM_InitField(&flipXAxis, "FlipXAxis", false, "Flip X Axis", "", "", "");    CAF_PDM_InitField(&flipYAxis, "FlipYAxis", false, "Flip Y Axis", "", "", "");    CAF_PDM_InitFieldNoDefault(&filesContainingFaults,    "FilesContainingFaults", "", "", "", "");    filesContainingFaults.setUiHidden(true);    // Obsolete field    CAF_PDM_InitField(&caseName, "CaseName",  QString(), "Obsolete", "", "" ,"");    caseName.setIOWritable(false);    caseName.setUiHidden(true);    m_matrixModelResults = new RimReservoirCellResultsStorage;    m_fractureModelResults = new RimReservoirCellResultsStorage;    this->setReservoirData( NULL );}
开发者ID:andlaus,项目名称:ResInsight,代码行数:33,


示例6: CAF_PDM_InitFieldNoDefault

//--------------------------------------------------------------------------------------------------/// //--------------------------------------------------------------------------------------------------RimFileWellPath::RimFileWellPath(){    CAF_PDM_InitFieldNoDefault(&id,                 "WellPathId",                           "Id", "", "", "");    id.uiCapability()->setUiReadOnly(true);    id.xmlCapability()->disableIO();    CAF_PDM_InitFieldNoDefault(&sourceSystem,       "SourceSystem",                         "Source System", "", "", "");    sourceSystem.uiCapability()->setUiReadOnly(true);    sourceSystem.xmlCapability()->disableIO();    CAF_PDM_InitFieldNoDefault(&utmZone,            "UTMZone",                              "UTM Zone", "", "", "");    utmZone.uiCapability()->setUiReadOnly(true);    utmZone.xmlCapability()->disableIO();    CAF_PDM_InitFieldNoDefault(&updateDate,         "WellPathUpdateDate",                   "Update Date", "", "", "");    updateDate.uiCapability()->setUiReadOnly(true);    updateDate.xmlCapability()->disableIO();    CAF_PDM_InitFieldNoDefault(&updateUser,         "WellPathUpdateUser",                   "Update User", "", "", "");    updateUser.uiCapability()->setUiReadOnly(true);    updateUser.xmlCapability()->disableIO();    CAF_PDM_InitFieldNoDefault(&m_surveyType,       "WellPathSurveyType",                   "Survey Type", "", "", "");    m_surveyType.uiCapability()->setUiReadOnly(true);    m_surveyType.xmlCapability()->disableIO();    CAF_PDM_InitField(&m_filepath,                    "WellPathFilepath",     QString(""),    "File Path", "", "", "");    m_filepath.uiCapability()->setUiReadOnly(true);    CAF_PDM_InitField(&m_wellPathIndexInFile,         "WellPathNumberInFile",     -1,    "Well Number in File", "", "", "");    m_wellPathIndexInFile.uiCapability()->setUiReadOnly(true);}
开发者ID:OPM,项目名称:ResInsight,代码行数:31,


示例7: 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,


示例8: 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,


示例9: CAF_PDM_InitFieldNoDefault

//--------------------------------------------------------------------------------------------------/// //--------------------------------------------------------------------------------------------------RimCommandIssueFieldChanged::RimCommandIssueFieldChanged(){    CAF_PDM_InitFieldNoDefault(&commandName,       "CommandName",      "CommandName", "", "", "");    CAF_PDM_InitField(&objectName, "ObjectName",  QString(), "ObjectName", "", "" ,"");    CAF_PDM_InitField(&fieldName, "FieldName",  QString(), "FieldName", "", "" ,"");    CAF_PDM_InitField(&fieldValueToApply, "FieldValueToApply",  QString(), "FieldValueToApply", "", "" ,"");}
开发者ID:magnesj,项目名称:ResInsight,代码行数:11,


示例10: 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,


示例11: 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,


示例12: CAF_PDM_InitObject

//--------------------------------------------------------------------------------------------------/////--------------------------------------------------------------------------------------------------RimPolylineAppearance::RimPolylineAppearance(){    CAF_PDM_InitObject("PolylineAppearance", ":/WellCollection.png", "", "");    CAF_PDM_InitField(&m_sphereFieldsHidden, "SphereFieldsHidden", false, "Sphere Fields Hidden", "", "", "");    CAF_PDM_InitField(&m_sphereColor, "SphereColor", cvf::Color3f(cvf::Color3f::BLACK), "Sphere Color", "", "", "");    CAF_PDM_InitField(&m_sphereRadiusFactor, "SphereRadiusFactor", 0.1, "Sphere Radius Factor", "", "", "");    m_sphereFieldsHidden.uiCapability()->setUiHidden(true);}
开发者ID:OPM,项目名称:ResInsight,代码行数:13,


示例13: CAF_PDM_InitObject

//--------------------------------------------------------------------------------------------------/// //--------------------------------------------------------------------------------------------------RimCalcScript::RimCalcScript(){    CAF_PDM_InitObject("CalcScript", ":/octave.png", "Calc Script", "");    CAF_PDM_InitField(&absolutePath, "AbsolutePath", QString(), "Location", "", "" ,"");    CAF_PDM_InitField(&content, "Content", QString(), "Directory", "", "" ,"");    content.setUiHidden(true);    absolutePath.setUiEditorTypeName(caf::PdmUiFilePathEditor::uiEditorTypeName());}
开发者ID:akva2,项目名称:ResInsight,代码行数:13,


示例14: 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,


示例15: CAF_PDM_InitObject

//--------------------------------------------------------------------------------------------------/////--------------------------------------------------------------------------------------------------RimGridInfo::RimGridInfo(){    CAF_PDM_InitObject("GridInfo", ":/draw_style_meshlines_24x24.png", "", "");    CAF_PDM_InitField(&m_isActive, "IsActive", true, "Show Grid Cells", "", "", "");    CAF_PDM_InitField(&m_gridName, "GridName", QString(), "Grid Name", "", "", "");    m_gridName.uiCapability()->setUiReadOnly(true);    CAF_PDM_InitField(&m_eclipseGridIndex, "GridIndex", 0, "Grid Index", "", "", "");    m_eclipseGridIndex.uiCapability()->setUiReadOnly(true);}
开发者ID:OPM,项目名称:ResInsight,代码行数:14,


示例16: CAF_PDM_InitObject

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


示例17: CAF_PDM_InitObject

//--------------------------------------------------------------------------------------------------/// //--------------------------------------------------------------------------------------------------RifReaderSettings::RifReaderSettings(){    CAF_PDM_InitObject("RifReaderSettings", "", "", "");    CAF_PDM_InitField(&importFaults, "importFaults", true, "Import faults", "", "", "");    importFaults.setUiLabelPosition(caf::PdmUiItemInfo::HIDDEN);    CAF_PDM_InitField(&importNNCs, "importSimulationNNCs", true, "Import NNCs", "", "", "");    importNNCs.setUiLabelPosition(caf::PdmUiItemInfo::HIDDEN);    CAF_PDM_InitField(&importAdvancedMswData, "importAdvancedMswData", false, "Import advanced MSW data", "", "", "");    importAdvancedMswData.setUiLabelPosition(caf::PdmUiItemInfo::HIDDEN);}
开发者ID:JacobStoren,项目名称:ResInsight,代码行数:16,


示例18: RimNameConfig

//--------------------------------------------------------------------------------------------------/// //--------------------------------------------------------------------------------------------------RimWellLogPlotNameConfig::RimWellLogPlotNameConfig(const RimNameConfigHolderInterface* configHolder)    : RimNameConfig(configHolder){    CAF_PDM_InitObject("Well Log Plot Name Generator", "", "", "");    CAF_PDM_InitField(&m_addCaseName,   "AddCaseName",   false, "Add Case Name",   "", "", "");    CAF_PDM_InitField(&m_addWellName,   "AddWellName",   false, "Add Well Name",   "", "", "");    CAF_PDM_InitField(&m_addTimestep,   "AddTimeStep",   false, "Add Time Step",   "", "", "");    CAF_PDM_InitField(&m_addAirGap,     "AddAirGap",     false, "Add Air Gap",     "", "", "");    CAF_PDM_InitField(&m_addWaterDepth, "AddWaterDepth", false, "Add Water Depth", "", "", "");    m_customName = "Well Log Plot";}
开发者ID:OPM,项目名称:ResInsight,代码行数:16,


示例19: 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,


示例20: 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,


示例21: 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,


示例22: 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,


示例23: m_minCurveDataValue

//--------------------------------------------------------------------------------------------------/// //--------------------------------------------------------------------------------------------------Rim3dWellLogCurve::Rim3dWellLogCurve()    : m_minCurveDataValue(-std::numeric_limits<float>::infinity())    , m_maxCurveDataValue(std::numeric_limits<float>::infinity()){    CAF_PDM_InitObject("3d Well Log Curve", ":/WellLogCurve16x16.png", "", "");    CAF_PDM_InitField(&m_showCurve, "Show3dWellLogCurve", true, "Show 3d Well Log Curve", "", "", "");    m_showCurve.uiCapability()->setUiHidden(true);    CAF_PDM_InitField(&m_minCurveUIValue, "MinCurveValue", -std::numeric_limits<float>::infinity(), "Minimum Curve Value", "", "Clip curve values below this.", "");    CAF_PDM_InitField(&m_maxCurveUIValue, "MaxCurveValue", std::numeric_limits<float>::infinity(), "Maximum Curve Value", "", "Clip curve values above this.", "");    CAF_PDM_InitField(&m_drawPlane, "DrawPlane", DrawPlaneEnum(VERTICAL_ABOVE), "Draw Plane", "", "", "");    CAF_PDM_InitField(&m_color, "CurveColor", cvf::Color3f(0.0f, 0.0f, 0.0f), "Curve Color", "", "", "");    this->uiCapability()->setUiTreeChildrenHidden(true);}
开发者ID:OPM,项目名称:ResInsight,代码行数:18,


示例24: CAF_PDM_InitObject

//--------------------------------------------------------------------------------------------------/// //--------------------------------------------------------------------------------------------------RimFault::RimFault(){    CAF_PDM_InitObject("RimFault", ":/draw_style_faults_24x24.png", "", "");    CAF_PDM_InitFieldNoDefault(&name,       "FaultName",             "Name", "", "", "");    name.setUiHidden(true);    name.setUiReadOnly(true);    CAF_PDM_InitField(&showFault,         "ShowFault",      true, "Show fault", "", "", "");    showFault.setUiHidden(true);    CAF_PDM_InitField(&faultColor,       "Color",        cvf::Color3f(0.588f, 0.588f, 0.804f), "Fault color", "", "", "");    m_rigFault = NULL;}
开发者ID:higgscc,项目名称:ResInsight,代码行数:18,



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


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