Skip to content

Commit d957a0c

Browse files
authored
Return number of entities displayed. (#74)
1 parent 11478b2 commit d957a0c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/widget.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,9 @@ RenderableMaterial *MildredWidget::createMaterial(Qt3DCore::QEntity *parent, Ren
177177
return material;
178178
}
179179

180+
// Return total number of data entities displayed on the graph
181+
int MildredWidget::nDataEntities() const { return dataEntities_.size(); }
182+
180183
// Add new 1-dimensional data entity for supplied data
181184
Data1DEntity *MildredWidget::addData1D(const QString &tag)
182185
{

src/widget.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,8 @@ class MildredWidget : public QWidget
204204
RenderableMaterial::FragmentShaderType fragmentShader = RenderableMaterial::FragmentShaderType::Phong);
205205

206206
public:
207+
// Return total number of data entities displayed on the graph
208+
int nDataEntities() const;
207209
// Add new data entity for supplied data
208210
Data1DEntity *addData1D(const QString &tag);
209211
// Remove data entity with the supplied data

0 commit comments

Comments
 (0)