Skip to content

Parametrize label's ancillary visual elements#311

Merged
oitel merged 6 commits intomasterfrom
label_extended_visualization
Jul 27, 2022
Merged

Parametrize label's ancillary visual elements#311
oitel merged 6 commits intomasterfrom
label_extended_visualization

Conversation

@oitel
Copy link
Contributor

@oitel oitel commented Jul 27, 2022

No description provided.

@oitel oitel requested a review from Grantim July 27, 2022 14:13
Comment on lines +136 to +141
if ( root["SourcePointSize"].isDouble() )
sourcePointSize_ = root["SourcePointSize"].asFloat();
if ( root["LeaderLineWidth"].isDouble() )
leaderLineWidth_ = root["LeaderLineWidth"].asFloat();
if ( root["BackgroundPadding"].isDouble() )
backgroundPadding_ = root["BackgroundPadding"].asFloat();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't there isFloat() func?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, there's no isFloat method.

Comment on lines 234 to 237
std::vector<Vector2i> llineEdgesIndices {
// underscore line
{ 1, 2 },
};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mb make array as class field? and jsut control size of it here (it is always 3, but pass to GPU only number of needed)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rewrote to use std::array.

@oitel oitel merged commit d18067e into master Jul 27, 2022
@oitel oitel deleted the label_extended_visualization branch July 27, 2022 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants