當前位置: 首頁>>代碼示例>>C#>>正文


C# AciColor類代碼示例

本文整理匯總了C#中AciColor的典型用法代碼示例。如果您正苦於以下問題:C# AciColor類的具體用法?C# AciColor怎麽用?C# AciColor使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


AciColor類屬於命名空間,在下文中一共展示了AciColor類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: Polyline3dVertex

 /// <summary>
 /// Initializes a new instance of the <c>Polyline3dVertex</c> class.
 /// </summary>
 /// <param name="location">Polyline <see cref="Vector3f">vertex</see> coordinates.</param>
 public Polyline3dVertex(Vector3f location)
     : base(DxfObjectCode.Vertex)
 {
     this.flags = VertexTypeFlags.Polyline3dVertex;
     this.location = location;
     this.layer = Layer.Default;
     this.color = AciColor.ByLayer;
     this.lineType = LineType.ByLayer;
 }
開發者ID:lomatus,項目名稱:SharpDxf,代碼行數:13,代碼來源:Polyline3dVertex.cs

示例2: PolyfaceMeshVertex

 /// <summary>
 /// Initializes a new instance of the <c>PolylineVertex</c> class.
 /// </summary>
 /// <param name="location">Polyface mesh vertex <see cref="Vector3d">location</see>.</param>
 public PolyfaceMeshVertex(Vector3d location)
     : base(DxfObjectCode.Vertex)
 {
     this.flags = VertexTypeFlags.PolyfaceMeshVertex | VertexTypeFlags.Polygon3dMesh;
     this.location = location;
     this.layer = Layer.Default;
     this.color = AciColor.ByLayer;
     this.lineType = LineType.ByLayer;
 }
開發者ID:steve-stanton,項目名稱:backsight,代碼行數:13,代碼來源:PolyfaceMeshVertex.cs

示例3: PolyfaceMeshFace

 /// <summary>
 /// Initializes a new instance of the <c>PolyfaceMeshFace</c> class.
 /// </summary>
 /// <remarks>
 /// By default the face is made up of three vertexes.
 /// </remarks>
 public PolyfaceMeshFace()
     : base(DxfObjectCode.Vertex)
 {
     this.flags = VertexTypeFlags.PolyfaceMeshVertex;
     this.vertexIndexes = new int[3];
     this.layer = Layer.Default;
     this.color = AciColor.ByLayer;
     this.lineType = LineType.ByLayer;
 }
開發者ID:fearog,項目名稱:axecalc,代碼行數:15,代碼來源:PolyfaceMeshFace.cs

示例4: Point

 /// <summary>
 /// Initializes a new instance of the <c>Point</c> class.
 /// </summary>
 public Point()
     : base(DxfObjectCode.Point)
 {
     this.location = Vector3d.Zero;
     this.thickness = 0.0f;
     this.layer = Layer.Default;
     this.color = AciColor.ByLayer;
     this.lineType = LineType.ByLayer;
     this.normal = Vector3d.UnitZ;
 }
開發者ID:fearog,項目名稱:axecalc,代碼行數:13,代碼來源:Point.cs

示例5: Layer

 /// <summary>
 /// Initializes a new instance of the <c>Layer</c> class.
 /// </summary>
 /// <param name="name">Layer name.</param>
 public Layer(string name)
     : base(DxfObjectCode.Layer)
 {
     if (string.IsNullOrEmpty(name))
         throw (new ArgumentNullException("name"));
     this.name = name;
     this.color = AciColor.Default;
     this.lineType = LineType.Continuous;
     this.isVisible = true;
 }
開發者ID:lomatus,項目名稱:SharpDxf,代碼行數:14,代碼來源:Layer.cs

示例6: PolyfaceMesh

 /// <summary>
 /// Initializes a new instance of the <c>PolyfaceMesh</c> class.
 /// </summary>
 public PolyfaceMesh()
     : base(DxfObjectCode.Polyline)
 {
     this.flags = PolylineTypeFlags.PolyfaceMesh;
     this.faces = new List<PolyfaceMeshFace>();
     this.layer = Layer.Default;
     this.color = AciColor.ByLayer;
     this.lineType = LineType.ByLayer;
     this.endSequence = new EndSequence();
 }
開發者ID:steve-stanton,項目名稱:backsight,代碼行數:13,代碼來源:PolyfaceMesh.cs

示例7: Polyline3d

 /// <summary>
 /// Initializes a new instance of the <c>Polyline3d</c> class.
 /// </summary>
 /// <param name="vertexes">3d polyline <see cref="Polyline3dVertex">vertex</see> list.</param>
 public Polyline3d(List<Polyline3dVertex> vertexes)
     : base(DxfObjectCode.Polyline)
 {
     this.flags = PolylineTypeFlags.Polyline3D;
     this.vertexes = vertexes;
     this.layer = Layer.Default;
     this.color = AciColor.ByLayer;
     this.lineType = LineType.ByLayer;
     this.endSequence = new EndSequence();
 }
開發者ID:fearog,項目名稱:axecalc,代碼行數:14,代碼來源:Polyline3d.cs

示例8: HatchGradientPattern

 /// <summary>
 /// Initializes a new instance of the <c>HatchGradientPattern</c> class as a default linear gradient. 
 /// </summary>
 /// <param name="description">Description of the pattern (optional, this information is not saved in the dxf file). By default it will use the supplied name.</param>
 public HatchGradientPattern(string description = null)
     : base("SOLID", description)
 {
     this.color1 = AciColor.Blue;
     this.color2 = AciColor.Yellow;
     this.singleColor = false;
     this.gradientType = HatchGradientPatternType.Linear;
     this.tint = 1.0;
     this.centered = true;
 }
開發者ID:NTUST-PTL,項目名稱:PTL-Project,代碼行數:14,代碼來源:HatchGradientPattern.cs

示例9: Circle

 /// <summary>
 /// Initializes a new instance of the <c>Circle</c> class.
 /// </summary>
 /// <param name="center">Circle <see cref="Vector3d">center</see> in object coordinates.</param>
 /// <param name="radius">Circle radius.</param>
 /// <remarks>The center Z coordinate represents the elevation of the arc along the normal.</remarks>
 public Circle(Vector3d center, double radius)
     : base(DxfObjectCode.Circle)
 {
     this.center = center;
     this.radius = radius;
     this.thickness = 0.0f;
     this.layer = Layer.Default;
     this.color = AciColor.ByLayer;
     this.lineType = LineType.ByLayer;
     this.normal = Vector3d.UnitZ;
 }
開發者ID:steve-stanton,項目名稱:backsight,代碼行數:17,代碼來源:Circle.cs

示例10: Circle

 /// <summary>
 /// Initializes a new instance of the <c>Circle</c> class.
 /// </summary>
 public Circle()
     : base(DxfObjectCode.Circle)
 {
     this.center = Vector3f.Zero;
     this.radius = 1.0f;
     this.thickness = 0.0f;
     this.layer = Layer.Default;
     this.color = AciColor.ByLayer;
     this.lineType = LineType.ByLayer;
     this.normal = Vector3f.UnitZ;
 }
開發者ID:lomatus,項目名稱:SharpDxf,代碼行數:14,代碼來源:Circle.cs

示例11: Line

 /// <summary>
 /// Initializes a new instance of the <c>Line</c> class.
 /// </summary>
 public Line()
     : base(DxfObjectCode.Line)
 {
     this.startPoint = Vector3d.Zero;
     this.endPoint = Vector3d.Zero;
     this.thickness = 0.0f;
     this.layer = Layer.Default;
     this.color = AciColor.ByLayer;
     this.lineType = LineType.ByLayer;
     this.normal = Vector3d.UnitZ;
 }
開發者ID:fearog,項目名稱:axecalc,代碼行數:14,代碼來源:Line.cs

示例12: PolylineVertex

 /// <summary>
 /// Initializes a new instance of the <c>PolylineVertex</c> class.
 /// </summary>
 /// <param name="location">Polyline <see cref="Vector2f">vertex</see> coordinates.</param>
 public PolylineVertex(Vector2f location)
     : base(DxfObjectCode.Vertex)
 {
     this.flags = VertexTypeFlags.PolylineVertex;
     this.location = location;
     this.layer = Layer.Default;
     this.color = AciColor.ByLayer;
     this.lineType = LineType.ByLayer;
     this.bulge = 0.0f;
     this.beginThickness = 0.0f;
     this.endThickness = 0.0f;
 }
開發者ID:lomatus,項目名稱:SharpDxf,代碼行數:16,代碼來源:PolylineVertex.cs

示例13: NurbsCurve

 /// <summary>
 /// Initializes a new instance of the <c>NurbsCurve</c> class.
 /// </summary>
 public NurbsCurve()
 {
     this.controlPoints = new List<NurbsVertex>();
     this.normal = Vector3d.UnitZ;
     this.layer = Layer.Default;
     this.color = AciColor.ByLayer;
     this.lineType = LineType.ByLayer;
     this.order = 0;
     this.curvePoints = 30;
     this.elevation = 0.0;
     this.thickness = 0.0f;
     this.normal = Vector3d.UnitZ;
 }
開發者ID:steve-stanton,項目名稱:backsight,代碼行數:16,代碼來源:NURBSCurve.cs

示例14: Solid

 /// <summary>
 /// Initializes a new instance of the <c>Solid</c> class.
 /// </summary>
 /// <param name="firstVertex">Solid <see cref="Vector3d">first vertex</see>.</param>
 /// <param name="secondVertex">Solid <see cref="Vector3d">second vertex</see>.</param>
 /// <param name="thirdVertex">Solid <see cref="Vector3d">third vertex</see>.</param>
 /// <param name="fourthVertex">Solid <see cref="Vector3d">fourth vertex</see>.</param>
 public Solid(Vector3d firstVertex, Vector3d secondVertex, Vector3d thirdVertex, Vector3d fourthVertex)
     : base(DxfObjectCode.Solid)
 {
     this.firstVertex = firstVertex;
     this.secondVertex = secondVertex;
     this.thirdVertex = thirdVertex;
     this.fourthVertex = fourthVertex;
     this.thickness = 0.0f;
     this.normal = Vector3d.UnitZ;
     this.layer = Layer.Default;
     this.color = AciColor.ByLayer;
     this.lineType = LineType.ByLayer;
 }
開發者ID:fearog,項目名稱:axecalc,代碼行數:20,代碼來源:Solid.cs

示例15: Arc

 /// <summary>
 /// Initializes a new instance of the <c>Arc</c> class.
 /// </summary>
 /// <param name="center">Arc <see cref="SharpDxf.Vector3f">center</see> in object coordinates.</param>
 /// <param name="radius">Arc radius.</param>
 /// <param name="startAngle">Arc start angle in degrees.</param>
 /// <param name="endAngle">Arc end angle in degrees.</param>
 /// <remarks>The center Z coordinate represents the elevation of the arc along the normal.</remarks>
 public Arc(Vector3f center, float radius, float startAngle, float endAngle)
     : base(DxfObjectCode.Arc)
 {
     this.center = center;
     this.radius = radius;
     this.startAngle = startAngle;
     this.endAngle = endAngle;
     this.thickness = 0.0f;
     this.layer = Layer.Default;
     this.color = AciColor.ByLayer;
     this.lineType = LineType.ByLayer;
     this.normal = Vector3f.UnitZ;
 }
開發者ID:lomatus,項目名稱:SharpDxf,代碼行數:21,代碼來源:Arc.cs


注:本文中的AciColor類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。