Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
viewController.py: add Line creation
Lines created will be copied into a group called BCFGroup. It is assumed that this group is not already present in the document.
- Loading branch information
1 parent
47c1151
commit 64d381c
Showing
12 changed files
with
324 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Version VersionId="2.1" xsi:noNamespaceSchemaLocation="version.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
<DetailedVersion>2.1 KUBUS BV</DetailedVersion> | ||
</Version> |
26 changes: 26 additions & 0 deletions
26
bcf-examples/clippingPlane_bernd/bcfPart/d7301aa6-3533-4031-b209-9e1c701802f5/markup.bcf
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,26 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Markup> | ||
<Topic Guid="d7301aa6-3533-4031-b209-9e1c701802f5" TopicType="Issue" TopicStatus="Active"> | ||
<Title>bcfexample1</Title> | ||
<Priority>Normal</Priority> | ||
<Index>1</Index> | ||
<CreationDate>2019-05-31T20:59:43+00:00</CreationDate> | ||
<CreationAuthor>b.hahnebach@jpbi.ch</CreationAuthor> | ||
<ModifiedDate>2019-05-31T20:59:43+00:00</ModifiedDate> | ||
<ModifiedAuthor>b.hahnebach@jpbi.ch</ModifiedAuthor> | ||
<AssignedTo>b.hahnebach@jpbi.ch</AssignedTo> | ||
<Description>clipping plane</Description> | ||
</Topic> | ||
<Comment Guid="d5545441-19b2-47ff-9302-5fc16d3f6d67"> | ||
<Date>2019-05-31T20:59:43+00:00</Date> | ||
<Author>b.hahnebach@jpbi.ch</Author> | ||
<Comment>horizontal clipping plane</Comment> | ||
<Viewpoint Guid="62b91142-e20c-444f-a678-7c28b23a124b" /> | ||
<ModifiedDate>2019-05-31T20:59:43+00:00</ModifiedDate> | ||
<ModifiedAuthor>b.hahnebach@jpbi.ch</ModifiedAuthor> | ||
</Comment> | ||
<Viewpoints Guid="62b91142-e20c-444f-a678-7c28b23a124b"> | ||
<Viewpoint>viewpoint.bcfv</Viewpoint> | ||
<Snapshot>snapshot.png</Snapshot> | ||
</Viewpoints> | ||
</Markup> |
Binary file added
BIN
+80.8 KB
...s/clippingPlane_bernd/bcfPart/d7301aa6-3533-4031-b209-9e1c701802f5/snapshot.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 44 additions & 0 deletions
44
bcf-examples/clippingPlane_bernd/bcfPart/d7301aa6-3533-4031-b209-9e1c701802f5/viewpoint.bcfv
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,44 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<VisualizationInfo Guid="62b91142-e20c-444f-a678-7c28b23a124b"> | ||
<Components> | ||
<ViewSetupHints SpacesVisible="false" SpaceBoundariesVisible="false" OpeningsVisible="false" /> | ||
<Visibility DefaultVisibility="false"> | ||
<Exceptions> | ||
<Component IfcGuid="2twsOAW_OHwPm_J59Y2WFs" /> | ||
<Component IfcGuid="2txH9wW_OHwQIUJ59Y2WFs" /> | ||
</Exceptions> | ||
</Visibility> | ||
</Components> | ||
<PerspectiveCamera> | ||
<CameraViewPoint> | ||
<X>4.0785220861434937</X> | ||
<Y>-1.5288909673690796</Y> | ||
<Z>3.8552243709564209</Z> | ||
</CameraViewPoint> | ||
<CameraDirection> | ||
<X>-0.41597223281860352</X> | ||
<Y>0.6249469518661499</Y> | ||
<Z>-0.66061067581176758</Z> | ||
</CameraDirection> | ||
<CameraUpVector> | ||
<X>-0.3660394549369812</X> | ||
<Y>0.54992961883544922</Y> | ||
<Z>0.75072813034057617</Z> | ||
</CameraUpVector> | ||
<FieldOfView>65</FieldOfView> | ||
</PerspectiveCamera> | ||
<ClippingPlanes> | ||
<ClippingPlane> | ||
<Location> | ||
<X>1.5</X> | ||
<Y>1.5</Y> | ||
<Z>1.2510015964508057</Z> | ||
</Location> | ||
<Direction> | ||
<X>-0</X> | ||
<Y>0</Y> | ||
<Z>1</Z> | ||
</Direction> | ||
</ClippingPlane> | ||
</ClippingPlanes> | ||
</VisualizationInfo> |
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,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ProjectExtension> | ||
<Project ProjectId="a30b2c40-aab4-47f2-9678-170764514f06" /> | ||
<ExtensionSchema></ExtensionSchema> | ||
</ProjectExtension> |
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
Binary file not shown.
26 changes: 26 additions & 0 deletions
26
bcfplugin/tests/viewController-tests/d7301aa6-3533-4031-b209-9e1c701802f5/markup.bcf
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,26 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Markup> | ||
<Topic Guid="d7301aa6-3533-4031-b209-9e1c701802f5" TopicType="Issue" TopicStatus="Active"> | ||
<Title>bcfexample1</Title> | ||
<Priority>Normal</Priority> | ||
<Index>1</Index> | ||
<CreationDate>2019-05-31T20:59:43+00:00</CreationDate> | ||
<CreationAuthor>b.hahnebach@jpbi.ch</CreationAuthor> | ||
<ModifiedDate>2019-05-31T20:59:43+00:00</ModifiedDate> | ||
<ModifiedAuthor>b.hahnebach@jpbi.ch</ModifiedAuthor> | ||
<AssignedTo>b.hahnebach@jpbi.ch</AssignedTo> | ||
<Description>clipping plane</Description> | ||
</Topic> | ||
<Comment Guid="d5545441-19b2-47ff-9302-5fc16d3f6d67"> | ||
<Date>2019-05-31T20:59:43+00:00</Date> | ||
<Author>b.hahnebach@jpbi.ch</Author> | ||
<Comment>horizontal clipping plane</Comment> | ||
<Viewpoint Guid="62b91142-e20c-444f-a678-7c28b23a124b" /> | ||
<ModifiedDate>2019-05-31T20:59:43+00:00</ModifiedDate> | ||
<ModifiedAuthor>b.hahnebach@jpbi.ch</ModifiedAuthor> | ||
</Comment> | ||
<Viewpoints Guid="62b91142-e20c-444f-a678-7c28b23a124b"> | ||
<Viewpoint>viewpoint.bcfv</Viewpoint> | ||
<Snapshot>snapshot.png</Snapshot> | ||
</Viewpoints> | ||
</Markup> |
Binary file added
BIN
+80.8 KB
...in/tests/viewController-tests/d7301aa6-3533-4031-b209-9e1c701802f5/snapshot.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 44 additions & 0 deletions
44
bcfplugin/tests/viewController-tests/d7301aa6-3533-4031-b209-9e1c701802f5/viewpoint.bcfv
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,44 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<VisualizationInfo Guid="62b91142-e20c-444f-a678-7c28b23a124b"> | ||
<Components> | ||
<ViewSetupHints SpacesVisible="false" SpaceBoundariesVisible="false" OpeningsVisible="false" /> | ||
<Visibility DefaultVisibility="false"> | ||
<Exceptions> | ||
<Component IfcGuid="2twsOAW_OHwPm_J59Y2WFs" /> | ||
<Component IfcGuid="2txH9wW_OHwQIUJ59Y2WFs" /> | ||
</Exceptions> | ||
</Visibility> | ||
</Components> | ||
<PerspectiveCamera> | ||
<CameraViewPoint> | ||
<X>4.0785220861434937</X> | ||
<Y>-1.5288909673690796</Y> | ||
<Z>3.8552243709564209</Z> | ||
</CameraViewPoint> | ||
<CameraDirection> | ||
<X>-0.41597223281860352</X> | ||
<Y>0.6249469518661499</Y> | ||
<Z>-0.66061067581176758</Z> | ||
</CameraDirection> | ||
<CameraUpVector> | ||
<X>-0.3660394549369812</X> | ||
<Y>0.54992961883544922</Y> | ||
<Z>0.75072813034057617</Z> | ||
</CameraUpVector> | ||
<FieldOfView>65</FieldOfView> | ||
</PerspectiveCamera> | ||
<ClippingPlanes> | ||
<ClippingPlane> | ||
<Location> | ||
<X>1.5</X> | ||
<Y>1.5</Y> | ||
<Z>1.2510015964508057</Z> | ||
</Location> | ||
<Direction> | ||
<X>-0</X> | ||
<Y>0</Y> | ||
<Z>1</Z> | ||
</Direction> | ||
</ClippingPlane> | ||
</ClippingPlanes> | ||
</VisualizationInfo> |
82 changes: 82 additions & 0 deletions
82
bcfplugin/tests/viewController-tests/viewpoint_with_lines.bcfv
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,82 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<VisualizationInfo Guid="62b91142-e20c-444f-a678-7c28b23a124b"> | ||
<Components> | ||
<ViewSetupHints SpacesVisible="false" SpaceBoundariesVisible="false" OpeningsVisible="false" /> | ||
<Visibility DefaultVisibility="false"> | ||
<Exceptions> | ||
<Component IfcGuid="2twsOAW_OHwPm_J59Y2WFs" /> | ||
<Component IfcGuid="2txH9wW_OHwQIUJ59Y2WFs" /> | ||
</Exceptions> | ||
</Visibility> | ||
</Components> | ||
<PerspectiveCamera> | ||
<CameraViewPoint> | ||
<X>4.0785220861434937</X> | ||
<Y>-1.5288909673690796</Y> | ||
<Z>3.8552243709564209</Z> | ||
</CameraViewPoint> | ||
<CameraDirection> | ||
<X>-0.41597223281860352</X> | ||
<Y>0.6249469518661499</Y> | ||
<Z>-0.66061067581176758</Z> | ||
</CameraDirection> | ||
<CameraUpVector> | ||
<X>-0.3660394549369812</X> | ||
<Y>0.54992961883544922</Y> | ||
<Z>0.75072813034057617</Z> | ||
</CameraUpVector> | ||
<FieldOfView>65</FieldOfView> | ||
</PerspectiveCamera> | ||
<Lines> | ||
<Line> | ||
<StartPoint> | ||
<X>0</X> | ||
<Y>0</Y> | ||
<Z>0</Z> | ||
</StartPoint> | ||
<EndPoint> | ||
<X>0</X> | ||
<Y>0</Y> | ||
<Z>5000</Z> | ||
</EndPoint> | ||
</Line> | ||
<Line> | ||
<StartPoint> | ||
<X>0</X> | ||
<Y>0</Y> | ||
<Z>0</Z> | ||
</StartPoint> | ||
<EndPoint> | ||
<X>0</X> | ||
<Y>5000</Y> | ||
<Z>0</Z> | ||
</EndPoint> | ||
</Line> | ||
<Line> | ||
<StartPoint> | ||
<X>0</X> | ||
<Y>0</Y> | ||
<Z>0</Z> | ||
</StartPoint> | ||
<EndPoint> | ||
<X>5000</X> | ||
<Y>0</Y> | ||
<Z>0</Z> | ||
</EndPoint> | ||
</Line> | ||
</Lines> | ||
<ClippingPlanes> | ||
<ClippingPlane> | ||
<Location> | ||
<X>1.5</X> | ||
<Y>1.5</Y> | ||
<Z>1.2510015964508057</Z> | ||
</Location> | ||
<Direction> | ||
<X>-0</X> | ||
<Y>0</Y> | ||
<Z>1</Z> | ||
</Direction> | ||
</ClippingPlane> | ||
</ClippingPlanes> | ||
</VisualizationInfo> |
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,15 @@ | ||
def setupBCFFile(fileName, testFileDir, topicDir, testBCFName): | ||
|
||
cmd = "cp {}/{} {}/{}/viewpoint.bcfv".format(testFileDir, testFile, | ||
testFileDir, testTopicDir) | ||
project.debug("Executing: {}".format(cmd)) | ||
os.system(cmd) | ||
|
||
cmd = "cd ./viewController-tests && zip -q {} {}/markup.bcf".format(testBCFName, | ||
topicDir) | ||
project.debug("Executing: {}".format(cmd)) | ||
os.system(cmd) | ||
|
||
return os.path.join(testFileDir, testBCFName) | ||
|
||
|