/// <summary>
 /// Check if the object is supported at the given version
 /// </summary>
 /// <param name="docVersion">Version to check against</param>
 /// <returns>True if the object is supported</returns>
 public bool IsSupportedAtVersion(esriArcGISVersion docVersion)
 {
     if (docVersion >= esriArcGISVersion.esriArcGISVersion10)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Esempio n. 2
0
 public bool IsSupportedAtVersion(esriArcGISVersion docVersion)
 {
     //support all versions except 8.3
     if (esriArcGISVersion.esriArcGISVersion83 == docVersion)
     {
         return(false);
     }
     else
     {
         return(true);
     }
 }
 /// <summary>
 /// Load the properties of the function from the stream provided
 /// </summary>
 /// <param name="Stream">Stream that contains the serialized form of the function</param>
 public void Load(IVariantStream Stream)
 {
     if (Stream is IDocumentVersion)
     {
         IDocumentVersion docVersion = (IDocumentVersion)Stream;
         if (docVersion.DocumentVersion >= esriArcGISVersion.esriArcGISVersion10)
         {
             esriArcGISVersion streamVersion = (esriArcGISVersion)((int)Stream.Read());
             if (streamVersion >= esriArcGISVersion.esriArcGISVersion10)
             {
                 myName        = (string)Stream.Read();
                 myDescription = (string)Stream.Read();
                 myPixeltype   = (rstPixelType)((int)Stream.Read());
             }
         }
     }
 }
Esempio n. 4
0
        public object ConvertToSupportedObject(esriArcGISVersion docVersion)
        {
            ICharacterMarkerSymbol characterMarkerSymbol = new CharacterMarkerSymbol();

            characterMarkerSymbol.Color = this.m_fillSymbol.Color;
            characterMarkerSymbol.Angle = this.m_rotation;
            characterMarkerSymbol.Size  = this.m_size;
            // characterMarkerSymbol.Font = Converter.ToStdFont(new System.Drawing.Font("ESRI Default Marker", (float)this.m_size, System.Drawing.FontStyle.Regular));
            characterMarkerSymbol.CharacterIndex = 184;
            IMarkerElement markerElement = new MarkerElement() as IMarkerElement;

            markerElement.Symbol = characterMarkerSymbol;
            IPoint   geometry = ((IClone)this.m_pointGeometry).Clone() as IPoint;
            IElement element  = (IElement)markerElement;

            element.Geometry = geometry;
            return(element);
        }
Esempio n. 5
0
        public object ConvertToSupportedObject(esriArcGISVersion docVersion)
        {
            ICharacterMarkerSymbol characterMarkerSymbolClass = new CharacterMarkerSymbol()
            {
                Color = this.m_fillSymbol.Color,
                Angle = this.m_rotation,
                Size  = this.m_size,
                //Font = ESRI.ArcGIS.ADF.Local.Converter.ToStdFont(new Font("ESRI Default Marker", (float)this.m_size, FontStyle.Regular)),
                CharacterIndex = 184
            };
            IMarkerElement markerElement = new MarkerElement() as IMarkerElement;

            markerElement.Symbol = characterMarkerSymbolClass;
            IMarkerElement markerElementClass = markerElement as IMarkerElement;
            IPoint         point   = ((IClone)this.m_pointGeometry).Clone() as IPoint;
            IElement       element = (IElement)markerElementClass;

            element.Geometry = point;

            return(element);
        }
Esempio n. 6
0
        public object ConvertToSupportedObject(esriArcGISVersion docVersion)
        {
            //in case of 8.3, create a character marker element and use a triangle marker...
            ICharacterMarkerSymbol charMarkerSymbol = new CharacterMarkerSymbolClass();

            charMarkerSymbol.Color          = m_fillSymbol.Color;
            charMarkerSymbol.Angle          = m_rotation;
            charMarkerSymbol.Size           = m_size;
            charMarkerSymbol.Font           = ESRI.ArcGIS.ADF.Connection.Local.Converter.ToStdFont(new Font("ESRI Default Marker", (float)m_size, FontStyle.Regular));
            charMarkerSymbol.CharacterIndex = 184;

            IMarkerElement markerElement = new MarkerElementClass();

            markerElement.Symbol = (IMarkerSymbol)charMarkerSymbol;

            IPoint   point   = ((IClone)m_pointGeometry).Clone() as IPoint;
            IElement element = (IElement)markerElement;

            element.Geometry = (IGeometry)point;

            return(element);
        }
Esempio n. 7
0
        public IssueMapDefinition(
            [CanBeNull] string templatePath,
            [NotNull] string fileName,
            bool listLayersByAffectedComponent,
            [NotNull] LabelOptions issueLabelOptions,
            [NotNull] LabelOptions exceptionLabelOptions,
            [NotNull] DisplayExpression issueDisplayExpression,
            [NotNull] DisplayExpression exceptionDisplayExpression,
            double verifiedFeaturesMinimumScale,
            IssueLayersGroupBy issueLayersGroupBy = IssueLayersGroupBy.IssueType,
            esriArcGISVersion documentVersion     = esriArcGISVersion.esriArcGISVersionCurrent,
            [CanBeNull] FieldConfigurator issueFieldConfigurator     = null,
            [CanBeNull] FieldConfigurator exceptionFieldConfigurator = null)
        {
            Assert.ArgumentNotNullOrEmpty(fileName, nameof(fileName));
            Assert.ArgumentNotNull(issueLabelOptions, nameof(issueLabelOptions));
            Assert.ArgumentNotNull(exceptionLabelOptions, nameof(exceptionLabelOptions));
            Assert.ArgumentNotNull(issueDisplayExpression, nameof(issueDisplayExpression));
            Assert.ArgumentNotNull(exceptionDisplayExpression,
                                   nameof(exceptionDisplayExpression));

            TemplatePath                  = templatePath;
            FileName                      = fileName;
            SkipEmptyIssueDatasets        = true;
            SkipEmptyExceptionDatasets    = true;
            ListLayersByAffectedComponent = listLayersByAffectedComponent;
            IssueLabelOptions             = issueLabelOptions;
            ExceptionLabelOptions         = exceptionLabelOptions;
            IssueDisplayExpression        = issueDisplayExpression;
            ExceptionDisplayExpression    = exceptionDisplayExpression;
            VerifiedFeaturesMinimumScale  = verifiedFeaturesMinimumScale;
            IssueLayersGroupBy            = issueLayersGroupBy;
            DocumentVersion               = documentVersion;
            IssueFieldConfigurator        = issueFieldConfigurator;
            ExceptionFieldConfigurator    = exceptionFieldConfigurator;
        }
Esempio n. 8
0
 public object ConvertToSupportedObject(esriArcGISVersion docVersion)
 {
     return(this.m_pGroupElement);
 }
Esempio n. 9
0
 public bool IsSupportedAtVersion(esriArcGISVersion docVersion)
 {
     return(true);
 }
Esempio n. 10
0
 public object ConvertToSupportedObject(esriArcGISVersion docVersion)
 {
     return(this);
 }
 public bool IsSupportedAtVersion(esriArcGISVersion docVersion)
 {
   //support all versions except 8.3
   if (esriArcGISVersion.esriArcGISVersion83 == docVersion)
     return false;
   else
     return true;
 }
Esempio n. 12
0
 private static void Expect(esriArcGISVersion expectedVersion,
                            [CanBeNull] string version)
 {
     Assert.AreEqual(expectedVersion,
                     VerificationOptionUtils.ParseDocumentVersion(version));
 }
 /// <summary>
 /// Check if the object is supported at the given version
 /// </summary>
 /// <param name="docVersion">Version to check against</param>
 /// <returns>True if the object is supported</returns>
 public bool IsSupportedAtVersion(esriArcGISVersion docVersion)
 {
     if (docVersion >= esriArcGISVersion.esriArcGISVersion10)
         return true;
     else
         return false;
 }
 /// <summary>
 /// Convert the instance into an object supported by the given version
 /// </summary>
 /// <param name="docVersion">Version to convert to</param>
 /// <returns>Object that supports given version</returns>
 public object ConvertToSupportedObject(esriArcGISVersion docVersion)
 {
     return null;
 }
Esempio n. 15
0
 public object ConvertToSupportedObject(esriArcGISVersion docVersion)
 {
     return(new GroupElement());
 }
Esempio n. 16
0
 public bool IsSupportedAtVersion(esriArcGISVersion docVersion)
 {
     return(esriArcGISVersion.esriArcGISVersion83 != docVersion ? true : false);
 }
    public object ConvertToSupportedObject(esriArcGISVersion docVersion)
    {
      //in case of 8.3, create a character marker element and use a triangle marker...
      ICharacterMarkerSymbol charMarkerSymbol = new CharacterMarkerSymbolClass();
      charMarkerSymbol.Color = m_fillSymbol.Color;
      charMarkerSymbol.Angle = m_rotation;
      charMarkerSymbol.Size = m_size;
      charMarkerSymbol.Font = ESRI.ArcGIS.ADF.Connection.Local.Converter.ToStdFont(new Font("ESRI Default Marker", (float)m_size, FontStyle.Regular));
      charMarkerSymbol.CharacterIndex = 184;

      IMarkerElement markerElement = new MarkerElementClass();
      markerElement.Symbol = (IMarkerSymbol)charMarkerSymbol;

      IPoint point = ((IClone)m_pointGeometry).Clone() as IPoint;
      IElement element = (IElement)markerElement;
      element.Geometry = (IGeometry)point;

      return element;
    }