コード例 #1
0
 public PipeClassInfo(IFeatureClass pipeClass, PipeElevationType elevationType,
                      string groundElevationFieldName0, string underGroundElevationFieldName0, string groundElevationFieldName1, string underGroundElevationFieldName1, string standFieldName,
                      string materialFieldName, string justPointTypeFieldName)
 {
     PipeClass     = pipeClass;
     ElevationType = elevationType;
     SetSpecialField(groundElevationFieldName0, PipeFieldType.StartGroundElevation);
     SetSpecialField(underGroundElevationFieldName0, PipeFieldType.StartUnderGroundElevation);
     SetSpecialField(groundElevationFieldName1, PipeFieldType.EndGroundElevation);
     SetSpecialField(underGroundElevationFieldName1, PipeFieldType.EndUnderGroundElevation);
     SetSpecialField(standFieldName, PipeFieldType.Standard);
     SetSpecialField(materialFieldName, PipeFieldType.Material);
     SetSpecialField(justPointTypeFieldName, PipeFieldType.JustPoint);
     _division = 12;
 }
コード例 #2
0
 public PipeClassInfo(IFeatureClass featureClass)
 {
     _division      = 12;
     _elevationType = PipeElevationType.Relative;
     PipeClass      = featureClass;
     if (_classType == PipeClassType.Point)
     {
         SetSpecialField(PointGroundElevString, PipeFieldType.StartGroundElevation);
         SetSpecialField(PointUnderGroundElevString, PipeFieldType.StartUnderGroundElevation);
         SetSpecialField(PointStandardString, PipeFieldType.Standard);
         SetSpecialField(PointMaterialString, PipeFieldType.Material);
         SetSpecialField(PointJustString, PipeFieldType.JustPoint);
     }
     else
     {
         SetSpecialField(LineStartGroundElevString, PipeFieldType.StartGroundElevation);
         SetSpecialField(LineStartUnderGroundElevString, PipeFieldType.StartUnderGroundElevation);
         SetSpecialField(LineEndGroundElevString, PipeFieldType.EndGroundElevation);
         SetSpecialField(LineEndUnderGroundElevString, PipeFieldType.EndUnderGroundElevation);
         SetSpecialField(LineStandardString, PipeFieldType.Standard);
         SetSpecialField(LineMaterialString, PipeFieldType.Material);
     }
 }