MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / LayoutData

Method LayoutData

3rdparty/qwt/src/qwt_plot_layout.cpp:172–198  ·  view source on GitHub ↗

Extract all layout relevant data from the plot components */

Source from the content-addressed store, hash-verified

170 Extract all layout relevant data from the plot components
171 */
172 LayoutData::LayoutData( const QwtPlot* plot )
173 {
174 legendData.init( plot->legend() );
175 labelData[ Title ].init( plot->titleLabel() );
176 labelData[ Footer ].init( plot->footerLabel() );
177
178 for ( int axisPos = 0; axisPos < QwtAxis::AxisPositions; axisPos++ )
179 {
180 {
181 const QwtAxisId axisId( axisPos );
182
183 ScaleData& scaleData = axisData( axisId );
184
185 if ( plot->isAxisVisible( axisId ) )
186 {
187 const QwtScaleWidget* scaleWidget = plot->axisWidget( axisId );
188 scaleData.init( scaleWidget );
189 }
190 else
191 {
192 scaleData.reset();
193 }
194 }
195 }
196
197 canvasData.init( plot->canvas() );
198 }
199
200 bool LayoutData::hasSymmetricYAxes() const
201 {

Callers

nothing calls this directly

Calls 8

footerLabelMethod · 0.80
axisWidgetMethod · 0.80
initMethod · 0.45
legendMethod · 0.45
titleLabelMethod · 0.45
isAxisVisibleMethod · 0.45
resetMethod · 0.45
canvasMethod · 0.45

Tested by

no test coverage detected