-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BMSPT-299] generation of superbcf file
- Loading branch information
1 parent
846135b
commit 3e19b18
Showing
9 changed files
with
669 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
src/bcf-toolkit/Builder/Bcf30/OrthogonalCameraBuilderExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using BcfToolkit.Model.Bcf30; | ||
|
||
namespace BcfToolkit.Builder.Bcf30; | ||
|
||
public partial class OrthogonalCameraBuilder { | ||
public OrthogonalCameraBuilder SetCameraViewPoint(double x, double y, double z) { | ||
_camera.CameraViewPoint = new Point { | ||
X = x, | ||
Y = y, | ||
Z = z | ||
}; | ||
return this; | ||
} | ||
|
||
public OrthogonalCameraBuilder SetCameraDirection(double x, double y, double z) { | ||
_camera.CameraDirection = new Direction { | ||
X = x, | ||
Y = y, | ||
Z = z | ||
}; | ||
return this; | ||
} | ||
|
||
public OrthogonalCameraBuilder SetCameraUpVector(double x, double y, double z) { | ||
_camera.CameraUpVector = new Direction { | ||
X = x, | ||
Y = y, | ||
Z = z | ||
}; | ||
return this; | ||
} | ||
|
||
} |
31 changes: 31 additions & 0 deletions
31
src/bcf-toolkit/Builder/Bcf30/PerspectiveCameraBuilderExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using BcfToolkit.Model.Bcf30; | ||
namespace BcfToolkit.Builder.Bcf30; | ||
|
||
public partial class PerspectiveCameraBuilder { | ||
public PerspectiveCameraBuilder SetCameraViewPoint(double x, double y, double z) { | ||
_camera.CameraViewPoint = new Point { | ||
X = x, | ||
Y = y, | ||
Z = z | ||
}; | ||
return this; | ||
} | ||
|
||
public PerspectiveCameraBuilder SetCameraDirection(double x, double y, double z) { | ||
_camera.CameraDirection = new Direction { | ||
X = x, | ||
Y = y, | ||
Z = z | ||
}; | ||
return this; | ||
} | ||
|
||
public PerspectiveCameraBuilder SetCameraUpVector(double x, double y, double z) { | ||
_camera.CameraUpVector = new Direction { | ||
X = x, | ||
Y = y, | ||
Z = z | ||
}; | ||
return this; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/bcf-toolkit/Builder/Bcf30/ViewPointBuilderExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using BcfToolkit.Model.Bcf30; | ||
|
||
namespace BcfToolkit.Builder.Bcf30; | ||
|
||
public partial class ViewPointBuilder { | ||
|
||
public ViewPointBuilder SetVisualizationInfo(VisualizationInfo visualizationInfo) { | ||
_viewPoint.VisualizationInfo = visualizationInfo; | ||
return this; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.