Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
QHyodaGLCell.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2022 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
4// See the top-level COPYRIGHT file for details.
5// SPDX-License-Identifier: Apache-2.0
6//-----------------------------------------------------------------------------
7#ifndef Q_HYODA_GL_CELL_H
8#define Q_HYODA_GL_CELL_H
9
10#include <QtWidgets>
11#include <QHyodaGL.h>
12#include <QVector>
13#include <QVector3D>
14
16public:
17 QHyodaGLCell(QWidget*);
18 ~QHyodaGLCell(){qDebug()<<"~QHyodaGLCell";}
19public:
20 void clear();
21 void add_node(const QVector3D&, const QColor);
22 void draw() const;
23public:
24 void set_hexahedron_nodes(QVector<QVector3D>&);
25 void set_triangle_nodes(QVector<QVector3D>&);
26 void set_quads_nodes(QVector<QVector3D> &);
27public:
28 quint64 cell_nb_nodes;
29 QVector<QVector3D> nodes;
30 QVector<QVector4D> colors;
31private:
32 const GLubyte stdIdx[8] = {0,1,2,3,4,5,6,7};
33 const GLubyte hexIdx[24] = {0,3,2,1,2,3,7,6,0,4,7,3,1,2,6,5,4,5,6,7,0,1,5,4};
34
35};
36
37#endif // Q_HYODA_GL_CELL_H