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;
     }
 }
Beispiel #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;
 }
 public InterpolateContext(InterpoalateStrategyInterface interpoalateStrategyInterface)
 {
     this.interpoalateStrategyInterface=interpoalateStrategyInterface;
 }