30 QVariantMap* map =
new QVariantMap();
31 map->insert(
"ccCompassType",
"SNECloud");
38 return object->getMetaData(
"ccCompassType")
40 .contains(
"SNECloud");
70 float pSize =
context.defaultPointSize;
77 context.defaultLineWidth = pSize;
93 for (
unsigned p = 0; p <
size(); p++) {
constexpr unsigned char POINT_VISIBLE
VisibilityTableType m_pointsVisibility
Per-point visibility table.
virtual bool isVisibilityTableInstantiated() const
Returns whether the visibility array is allocated or not.
Hierarchical CLOUDVIEWER Object.
virtual QString getName() const
Returns object name.
void setMetaData(const QString &key, const QVariant &data)
Sets a meta-data element.
bool hasMetaData(const QString &key) const
Returns whether a meta-data element with the given key exists or not.
virtual void setName(const QString &name)
Sets object name.
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
void drawMeOnly(CC_DRAW_CONTEXT &context) override
Draws the entity only (not its children)
ccScalarField * m_currentDisplayedScalarField
Currently displayed scalar field.
const CCVector3 & getPointNormal(unsigned pointIndex) const override
Returns normal corresponding to a given point.
static bool isSNECloud(ccHObject *obj)
virtual void drawMeOnly(CC_DRAW_CONTEXT &context) override
Draws the entity only (not its children)
bool isInRange(ScalarType val) const
Returns whether a value is inside range or not.
const Range & displayRange() const
Access to the range of displayed values.
const ecvColor::Rgb * getColor(ScalarType value) const
bool areNaNValuesShownInGrey() const
Returns whether NaN values are displayed in gray or hidden.
int getScalarFieldIndexByName(const char *name) const
Returns the index of a scalar field represented by its name.
ScalarField * getScalarField(int index) const
Returns a pointer to a specific scalar field.
unsigned size() const override
Returns the number of points.
const CCVector3 * getPoint(unsigned index) const override
Returns the ith point.
ScalarType & getValue(std::size_t index)
Standard parameters for GL displays/viewports.
__host__ __device__ float length(float2 v)
#define MACRO_Draw3D(context)
#define MACRO_Foreground(context)
OpenGL camera parameters.