Class PlainColorGuide
A color guide that provides a constant color value.
public class PlainColorGuide : IColorGuide, IMakeXmlSource, IGetColorGuide
- Inheritance
-
PlainColorGuide
- Implements
- Inherited Members
- Extension Methods
Constructors
PlainColorGuide()
Initializes a new instance of the PlainColorGuide class.
public PlainColorGuide()
PlainColorGuide(XElement)
Initializes a new instance of the PlainColorGuide class from XML.
public PlainColorGuide(XElement src)
Parameters
src
XElementThe XML element containing the color guide data.
Properties
Rgb
Gets or sets the RGB color value.
public Vec3d Rgb { get; set; }
Property Value
XName
Name for XML IO.
public static string XName { get; }
Property Value
Methods
GetColorGuide()
Get IColorGuide.
public IColorGuide GetColorGuide()
Returns
GetRgb(object)
Get rgb bystep
.
public Vec3d GetRgb(object step)
Parameters
step
objectstep
Returns
- Vec3d
rgb
GetRgbWithPriority(object, out Vec3d, out double)
Get color with the showing priority if the showing area overlapped by shrinking. Only effect on CubeTree.
public void GetRgbWithPriority(object step, out Vec3d rgb, out double attachmentPriority)
Parameters
MakeXmlSource(string, string)
Creates an XML representation of the object. This method may also generate additional resources such as related files.
public XElement MakeXmlSource(string baseDirectory, string relFile)
Parameters
baseDirectory
stringThe base directory for resolving relative paths
relFile
stringThe relative file path for the XML source
Returns
- XElement
An XML element representing the object's state