예제 #1
0
파일: Square3D.java 프로젝트: blickly/ptii
  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
  }
예제 #2
0
파일: Line3D.java 프로젝트: blickly/ptii
  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}");
  }