Exemplo n.º 1
0
  public Square3D(CompositeEntity container, String name)
      throws IllegalActionException, NameDuplicationException {
    super(container, name);
    GLPipelineObject = new TypedIOPort(this, "GLPipelineObject");
    GLPipelineObject.setOutput(true);
    GLPipelineObject.setTypeEquals(BaseType.OBJECT);

    // TODO Auto-generated constructor stub
  }
Exemplo n.º 2
0
  public Line3D(CompositeEntity container, String name)
      throws IllegalActionException, NameDuplicationException {
    super(container, name);
    GLPipelineObject = new TypedIOPort(this, "GLPipelineObject", false, true);
    GLPipelineObject.setTypeEquals(BaseType.OBJECT);

    width = new Parameter(this, "width");
    width.setExpression("2.0");

    rgbColor = new ColorAttribute(this, "rgbColor");
    rgbColor.setExpression("{1.0, 1.0, 1.0}");

    lineStart = new Parameter(this, "lineStart");
    lineStart.setExpression("{0.0, 0.0, 0.0}");

    lineEnd = new Parameter(this, "lineEnd");
    lineEnd.setExpression("{0.0, 0.0, 0.0}");
  }