本文整理汇总了C#中SymbolType类的典型用法代码示例。如果您正苦于以下问题:C# SymbolType类的具体用法?C# SymbolType怎么用?C# SymbolType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SymbolType类属于命名空间,在下文中一共展示了SymbolType类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Symbol
protected Symbol(SymbolType type, string name, Symbol parent)
{
_type = type;
_name = name;
_parent = parent;
_transformAllowed = true;
}
示例2: ParameterSymbol
/// <summary>
/// Constructor for parameter symbol
/// </summary>
/// <param name="name"></param>
/// <param name="symbolType"></param>
/// <param name="parameter"></param>
public ParameterSymbol(string name,SymbolType symbolType, Parameter parameter,
VariableType variableType)
: base(name,symbolType)
{
base.variableType = variableType;
this.parameter = parameter;
}
示例3: Symbol
public Symbol(char _symbol, SymbolType _type, Interpreter _interpreter, string _interpreterMethod)
{
symbol = _symbol;
type = _type;
interpreter = _interpreter;
interpreterMethod = _interpreterMethod;
}
示例4: GrammarNodeDExistsVisitor
public GrammarNodeDExistsVisitor(String nameIn, SymbolType symbolTypeIn)
{
name = nameIn;
symbolType = symbolTypeIn;
rulesVisited = new List<NonterminalHeadD>();
found = false;
}
示例5: CreateSymbolFromVectorStyle
private static XamlShapes.Shape CreateSymbolFromVectorStyle(VectorStyle style, double opacity = 1, SymbolType symbolType = SymbolType.Ellipse, double width = SymbolStyle.DefaultWidth, double height = SymbolStyle.DefaultHeight)
{
var path = new XamlShapes.Path { StrokeThickness = 0 }; //The SL StrokeThickness default is 1 which causes blurry bitmaps
if (style.Fill != null && (style.Fill.Color != null || style.Fill.BitmapId != -1))
path.Fill = style.Fill.ToXaml();
else
path.Fill = new XamlMedia.SolidColorBrush(XamlColors.Transparent);
if (style.Outline != null)
{
path.Stroke = new XamlMedia.SolidColorBrush(style.Outline.Color.ToXaml());
path.StrokeThickness = style.Outline.Width;
path.StrokeDashArray = style.Outline.PenStyle.ToXaml();
}
if (symbolType == SymbolType.Ellipse)
path.Data = CreateEllipse(width, height);
else
path.Data = CreateRectangle(width, height);
path.Opacity = opacity;
return path;
}
示例6: AddCurve
public void AddCurve(GraphPane pane, string name, string measure, Color color, SymbolType sType, int capacity)
{
_dataPointList = new RollingPointPairList(capacity);
// Добавим кривую пока еще без каких-либо точек
_myCurve = pane.AddCurve(string.Format("{0} ({1})",name,measure), _dataPointList, color, sType);
}
示例7: FunctionSymbol
/// <summary>
/// Constuctor for function symbol
/// </summary>
/// <param name="name"></param>
/// <param name="symbolType"></param>
/// <param name="label"></param>
/// <param name="paramList"></param>
/// <param name="returnVar"></param>
public FunctionSymbol(string name,SymbolType symbolType,string label,
List<Parameter> paramList,VariableType returnVar)
: base(name,symbolType,label,paramList)
{
this.returnVar = returnVar;
this.variableType = returnVar;
}
示例8: Label
/// <summary>
/// Initializes a new instance of the <see cref="Label"/> class
/// that defines a symbol with the specified type and identifier.
/// </summary>
/// <param name="identifier">The identifier of the defined symbol.</param>
/// <param name="symbolType">The type of symbol defined.</param>
/// <remarks>
/// The <see cref="DefinedSymbol"/> property holds the symbol that is defined.
/// </remarks>
public Label(string identifier, SymbolType symbolType)
: this(new Symbol(symbolType, identifier))
{
#region Contract
Contract.Requires<InvalidEnumArgumentException>(Enum.IsDefined(typeof(SymbolType), symbolType));
#endregion
}
示例9: Symbol
/// <summary>
/// Initializes a new instance of the <see cref="Symbol"/> class.
/// </summary>
/// <param name="symbolType">The type of symbol.</param>
public Symbol(SymbolType symbolType)
: this(symbolType, null)
{
#region Contract
Contract.Requires<InvalidEnumArgumentException>(Enum.IsDefined(typeof(SymbolType), symbolType));
#endregion
}
示例10: ClassSymbol
protected ClassSymbol(SymbolType type, string name, NamespaceSymbol parent)
: base(type, name, parent)
{
_inheritanceDepth = -1;
_minimizationDepth = -1;
_transformationCookie = -1;
}
示例11: create
public static Symbol create(SymbolType type)
{
Transform t = null;
switch (type) {
case SymbolType.Resistor:
t = Instantiate(parent.resistorSym.transform) as Transform;
break;
case SymbolType.Lamp:
t = Instantiate(parent.lampSym.transform) as Transform;
break;
case SymbolType.Switch:
t = Instantiate(parent.switchSym.transform) as Transform;
break;
case SymbolType.Battery:
t = Instantiate(parent.batterySym.transform) as Transform;
break;
case SymbolType.And:
t = Instantiate(parent.andSym.transform) as Transform;
break;
case SymbolType.Or:
t = Instantiate(parent.orSym.transform) as Transform;
break;
case SymbolType.Not:
t = Instantiate(parent.notSym.transform) as Transform;
break;
default:
return null;
}
return t.GetComponent(typeof(Symbol)) as Symbol;
}
示例12: LineHelper
/// <summary>
///
/// </summary>
/// <param name="text"></param>
/// <param name="color"></param>
/// <param name="width"></param>
/// <param name="symbol"></param>
public LineHelper(string text, Color color, int width, SymbolType symbol)
{
this.Text = text;
this.Color = color;
this.LineWidth = width;
this.SymbolType = symbol;
}
示例13: ProcedureSymbol
/// <summary>
/// Constructor for Procedure Symbol
/// </summary>
/// <param name="name"></param>
/// <param name="symbolType"></param>
/// <param name="label"></param>
/// <param name="paramList"></param>
public ProcedureSymbol(string name, SymbolType symbolType,string label,
List<Parameter> paramList)
: base(name, symbolType)
{
this.label = label;
this.paramList = paramList;
}
示例14: TypeSymbol
protected TypeSymbol(SymbolType type, string name, NamespaceSymbol parent)
: base(type, name, parent) {
Debug.Assert(parent != null);
_memberTable = new Dictionary<string, MemberSymbol>();
_members = new List<MemberSymbol>();
_applicationType = true;
}
示例15: Symbol
/// <summary>
/// コンストラクタ
/// </summary>
public Symbol(SpriteUV sprite, SymbolType type)
{
sprite.Scale = new Sce.PlayStation.Core.Vector2(1.0f);
sprite.Quad.S = sprite.TextureInfo.TextureSizef;
sprite.CenterSprite();
Image = sprite;
Type = type;
}