MCPcopy Create free account
hub / github.com/Kitware/VTK / UpdatePointAndLineProperties

Method UpdatePointAndLineProperties

Interaction/Widgets/vtkLineRepresentation.cxx:674–706  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

672
673//------------------------------------------------------------------------------
674void vtkLineRepresentation::UpdatePointAndLineProperties()
675{
676 if (this->RepresentationState == vtkLineRepresentation::Outside)
677 {
678 this->HighlightPoint(0, 0);
679 this->HighlightPoint(1, 0);
680 this->HighlightLine(0);
681 }
682 else if (this->RepresentationState == vtkLineRepresentation::OnP1)
683 {
684 this->HighlightPoint(0, 1);
685 this->HighlightPoint(1, 0);
686 this->HighlightLine(0);
687 }
688 else if (this->RepresentationState == vtkLineRepresentation::OnP2)
689 {
690 this->HighlightPoint(0, 0);
691 this->HighlightPoint(1, 1);
692 this->HighlightLine(0);
693 }
694 else if (this->RepresentationState == vtkLineRepresentation::OnLine)
695 {
696 this->HighlightPoint(0, 0);
697 this->HighlightPoint(1, 0);
698 this->HighlightLine(1);
699 }
700 else
701 {
702 this->HighlightPoint(0, 1);
703 this->HighlightPoint(1, 1);
704 this->HighlightLine(1);
705 }
706}
707
708//------------------------------------------------------------------------------
709void vtkLineRepresentation::BuildRepresentation()

Callers 2

vtkLineRepresentationMethod · 0.95
BuildRepresentationMethod · 0.95

Calls 2

HighlightPointMethod · 0.95
HighlightLineMethod · 0.95

Tested by

no test coverage detected