40 bool load(
const QString&
filename, QString& error);
43 inline QImage&
data() {
return m_image; }
45 inline const QImage&
data()
const {
return m_image; }
48 void setData(
const QImage&
image);
51 inline unsigned getW()
const {
return m_width; }
54 inline unsigned getH()
const {
return m_height; }
57 void setAlpha(
float value);
60 inline float getAlpha()
const {
return m_texAlpha; }
76 return m_associatedSensor;
83 bool toFile_MeOnly(QFile& out,
short dataVersion)
const override;
88 LoadedIDMap& oldToNewIDMap)
override;
91 void updateAspectRatio();
int64_t CV_CLASS_ENUM
Type of object type flags (64 bits)
std::shared_ptr< core::Tensor > image
Camera (projective) sensor.
Hierarchical CLOUDVIEWER Object.
virtual void drawMeOnly(CC_DRAW_CONTEXT &context)
Draws the entity only (not its children)
virtual short minimumFileVersion_MeOnly() const
virtual bool fromFile_MeOnly(QFile &in, short dataVersion, int flags, LoadedIDMap &oldToNewIDMap)
Loads own object data.
virtual bool toFile_MeOnly(QFile &out, short dataVersion) const
Save own object data.
virtual void onDeletionOf(const ccHObject *obj)
This method is called when another object is deleted.
unsigned getW() const
Returns image width.
float m_texAlpha
Texture transparency.
unsigned m_height
Image height (in pixels)
virtual bool isSerializable() const override
Returns whether object is serializable of not.
unsigned getH() const
Returns image height.
void setAspectRatio(float ar)
Manually sets aspect ratio.
ccCameraSensor * getAssociatedSensor()
Returns associated sensor.
const QImage & data() const
Returns image data (const version)
float getAspectRatio() const
Returns aspect ratio.
QImage & data()
Returns image data.
float getAlpha() const
Returns image texture transparency.
ccCameraSensor * m_associatedSensor
Associated sensor.
float m_aspectRatio
Aspect ratio w/h.
unsigned m_width
Image width (in pixels)
QImage m_image
Image data.
virtual CV_CLASS_ENUM getClassID() const override
Returns unique class ID.
const ccCameraSensor * getAssociatedSensor() const
Returns associated sensor (const version)