File tree Expand file tree Collapse file tree 2 files changed +0
-24
lines changed
src/Modules/Visualization Expand file tree Collapse file tree 2 files changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -77,29 +77,6 @@ void ShowString::setStateDefaults()
7777 state->setValue (Parameters::FixedVertical, std::string (" Top" ));
7878 state->setValue (Parameters::CoordinateHorizontal, 0.5 );
7979 state->setValue (Parameters::CoordinateVertical, 0.5 );
80-
81- getOutputPort (RenderedString)->connectConnectionFeedbackListener ([this ](const ModuleFeedback& var) { processWindowResizeFeedback (var); });
82- }
83-
84- void ShowString::processWindowResizeFeedback (const ModuleFeedback& var)
85- {
86- if (!executedOnce_)
87- return ;
88-
89- try
90- {
91- auto vsf = dynamic_cast <const ViewSceneFeedback&>(var);
92- if (lastWindowSize_ != vsf.windowSize )
93- {
94- lastWindowSize_ = vsf.windowSize ;
95- needReexecute_ = true ;
96- enqueueExecuteAgain (false );
97- }
98- }
99- catch (std::bad_cast&)
100- {
101- // ignore
102- }
10380}
10481
10582void ShowString::execute ()
Original file line number Diff line number Diff line change @@ -72,7 +72,6 @@ namespace Visualization {
7272 private:
7373 Core::Datatypes::GeometryBaseHandle buildGeometryObject (const std::string& text);
7474 std::tuple<double , double > getTextPosition ();
75- void processWindowResizeFeedback (const Core::Datatypes::ModuleFeedback& var);
7675 static bool containsDescenderLetter (const std::string& text);
7776 boost::shared_ptr<class TextBuilder > textBuilder_;
7877 std::tuple<int ,int > lastWindowSize_ { 450 , 1000 };
You can’t perform that action at this time.
0 commit comments