Ejemplo n.º 1
0
 public LineStrategyImpl(CanvasTool tool, InterpoalateStrategyInterface interpolateStrategy)
 {
     this.tool = tool;
     this.interpolateStrategy  = interpolateStrategy  ;
     canvasConfig = PropertiesSingleton.instance.canvasWorkspaceController.canvas.config;
     canvas = PropertiesSingleton.instance.canvasWorkspaceController.canvas;
     canvasCam = canvas.canvasCamera.camera;
     switch (tool.meshType){
     case LineMeshType.SQUARE_SIDES:
         lineRendererMeshType = new SquareSideLineMeshTypeImpl();
         break;
     case LineMeshType.TRIANGLE_SIDES:
         lineRendererMeshType = new TriangleSideLineMeshTypeImpl();
         break;
     }
 }
Ejemplo n.º 2
0
    public LineStrategyImpl(CanvasTool tool, InterpoalateStrategyInterface interpolateStrategy)
    {
        this.tool = tool;
        this.interpolateStrategy = interpolateStrategy;
        canvasConfig             = PropertiesSingleton.instance.canvasWorkspaceController.canvas.config;
        canvas    = PropertiesSingleton.instance.canvasWorkspaceController.canvas;
        canvasCam = canvas.canvasCamera.camera;
        switch (tool.meshType)
        {
        case LineMeshType.SQUARE_SIDES:
            lineRendererMeshType = new SquareSideLineMeshTypeImpl();
            break;

        case LineMeshType.TRIANGLE_SIDES:
            lineRendererMeshType = new TriangleSideLineMeshTypeImpl();
            break;
        }
    }
 public InterpolateContext(InterpoalateStrategyInterface interpoalateStrategyInterface)
 {
     this.interpoalateStrategyInterface = interpoalateStrategyInterface;
 }
Ejemplo n.º 4
0
 public InterpolateContext(InterpoalateStrategyInterface interpoalateStrategyInterface)
 {
     this.interpoalateStrategyInterface=interpoalateStrategyInterface;
 }