Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
ImmersiveAnalytics
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ufdvw
ImmersiveAnalytics
Commits
0a16a815
Commit
0a16a815
authored
Apr 24, 2019
by
Jan Kremer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added brushing for parallel coordinate plots
parent
22aa33be
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
8 deletions
+29
-8
Content/BP_PawnBase.uasset
Content/BP_PawnBase.uasset
+0
-0
Content/BP_Plot2D.uasset
Content/BP_Plot2D.uasset
+0
-0
Source/ImmersiveAnalytics/DataComponent.cpp
Source/ImmersiveAnalytics/DataComponent.cpp
+25
-6
Source/ImmersiveAnalytics/DataComponent.h
Source/ImmersiveAnalytics/DataComponent.h
+3
-0
Source/ImmersiveAnalytics/Plot3D.h
Source/ImmersiveAnalytics/Plot3D.h
+1
-2
No files found.
Content/BP_PawnBase.uasset
View file @
0a16a815
No preview for this file type
Content/BP_Plot2D.uasset
View file @
0a16a815
No preview for this file type
Source/ImmersiveAnalytics/DataComponent.cpp
View file @
0a16a815
...
...
@@ -242,6 +242,16 @@ void UDataComponent::UpdateDataScaleFactor()
DataScaleFactor
=
2
/
Range
;
}
void
UDataComponent
::
RebuildAll
()
{
APawnBase
*
BasePawn
=
Cast
<
APawnBase
>
(
GetOwner
());
BasePawn
->
Plot3D
->
RebuildCloud
();
for
(
APlot2D
*
Plot2D
:
BasePawn
->
Plots2D
)
{
Plot2D
->
Redraw
();
}
}
void
UDataComponent
::
AddFilter_Planes
(
FVector
NormalRight
,
FVector
LocationRight
,
bool
UseTwoPlanes
,
FVector
NormalLeft
,
FVector
LocationLeft
,
bool
Add
,
bool
Rebuild
,
bool
Invert
)
{
TArray
<
int32
>
Indexes
=
TArray
<
int32
>
();
...
...
@@ -419,9 +429,12 @@ void UDataComponent::BrushPoints(TArray<int32> BrushPoints, bool Add, bool Rebui
APawnBase
*
BasePawn
=
Cast
<
APawnBase
>
(
GetOwner
());
BasePawn
->
Plot3D
->
BrushPoints
(
BrushPoints
,
Rebuild
);
for
(
APlot2D
*
Plot2D
:
BasePawn
->
Plots2D
)
if
(
Rebuild
)
{
Plot2D
->
Redraw
();
for
(
APlot2D
*
Plot2D
:
BasePawn
->
Plots2D
)
{
Plot2D
->
Redraw
();
}
}
}
...
...
@@ -445,9 +458,12 @@ void UDataComponent::ResetPoints(bool Rebuild)
APawnBase
*
BasePawn
=
Cast
<
APawnBase
>
(
GetOwner
());
BasePawn
->
Plot3D
->
ResetPoints
(
Rebuild
);
for
(
APlot2D
*
Plot2D
:
BasePawn
->
Plots2D
)
if
(
Rebuild
)
{
Plot2D
->
Redraw
();
for
(
APlot2D
*
Plot2D
:
BasePawn
->
Plots2D
)
{
Plot2D
->
Redraw
();
}
}
}
...
...
@@ -476,8 +492,11 @@ void UDataComponent::InvertPoints(bool Rebuild)
APawnBase
*
BasePawn
=
Cast
<
APawnBase
>
(
GetOwner
());
BasePawn
->
Plot3D
->
InvertPoints
(
Rebuild
);
for
(
APlot2D
*
Plot2D
:
BasePawn
->
Plots2D
)
if
(
Rebuild
)
{
Plot2D
->
Redraw
();
for
(
APlot2D
*
Plot2D
:
BasePawn
->
Plots2D
)
{
Plot2D
->
Redraw
();
}
}
}
\ No newline at end of file
Source/ImmersiveAnalytics/DataComponent.h
View file @
0a16a815
...
...
@@ -73,6 +73,9 @@ public:
UFUNCTION
(
BlueprintCallable
)
void
InvertPoints
(
bool
Rebuild
);
UFUNCTION
(
BlueprintCallable
)
void
RebuildAll
();
// 3d settings
UPROPERTY
(
EditAnywhere
,
BlueprintReadWrite
,
Category
=
Default
)
...
...
Source/ImmersiveAnalytics/Plot3D.h
View file @
0a16a815
...
...
@@ -26,8 +26,6 @@ protected:
virtual
void
BeginPlay
()
override
;
private:
void
RebuildCloud
();
void
UpdatePoints
(
bool
KeepBrushedIndexes
);
FVector
Center
;
...
...
@@ -52,6 +50,7 @@ public:
void
BrushPoint
(
int32
PointIndex
,
bool
Add
);
void
ResetPoints
(
bool
Rebuild
);
void
InvertPoints
(
bool
Rebuild
);
void
RebuildCloud
();
// aux
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment