Class FilteredColorGuide
A color guide that combines a filter color guide with a dictionary color guide.
public class FilteredColorGuide : IColorGuide, IMakeXmlSource, IGetColorGuide
- Inheritance
-
FilteredColorGuide
- Implements
- Inherited Members
- Extension Methods
Constructors
FilteredColorGuide()
Initializes a new instance of the FilteredColorGuide class.
public FilteredColorGuide()
FilteredColorGuide(XElement, string, Dictionary<string, object>)
Initializes a new instance of the FilteredColorGuide class from XML.
public FilteredColorGuide(XElement src, string baseDirectory, Dictionary<string, object> colorGuideCtorArgDictionary)
Parameters
srcXElementThe XML element containing the color guide data.
baseDirectorystringThe base directory for resolving relative paths.
colorGuideCtorArgDictionaryDictionary<string, object>Dictionary containing constructor arguments for color guides.
Properties
DictionaryColorGuide
Gets or sets the dictionary color guide that is used when the filter color guide returns null.
public DictionaryColorGuide DictionaryColorGuide { get; set; }
Property Value
FilterColorGuide
Gets or sets the filter color guide that is applied first.
public IColorGuide FilterColorGuide { 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
stepobjectstep
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
baseDirectorystringThe base directory for resolving relative paths
relFilestringThe relative file path for the XML source
Returns
- XElement
An XML element representing the object's state