Skip to content
Permalink
Browse files

Added missing documentation

  • Loading branch information
NEDJIMAbelgacem committed Jul 7, 2020
1 parent a0638c6 commit 294c50797dcc55b51351490e21168e3dc22bdf1b
Showing with 7 additions and 2 deletions.
  1. +5 −2 src/3d/qgs3dexportobject.h
  2. +2 −0 src/3d/terrain/qgsdemterraingenerator.h
@@ -60,12 +60,14 @@ class Qgs3DExportObject : public QObject
//! Sets positions coordinates from just one positions buffer and indexes buffer and does the translation and scaling
void setupPositionCoordinates( const QVector<float> &positionsBuffer, const QVector<unsigned int> &facesIndexes, float scale = 1.0f, const QVector3D translation = QVector3D( 0, 0, 0 ) );

//! setss normal coordinates for each vertex
//! Sets normal coordinates for each vertex
void setupNormalCoordinates( const QVector<float> &normalsBuffer );
//! setss texture coordinates for each vertex
//! Sets texture coordinates for each vertex
void setupTextureCoordinates( const QVector<float> &texturesBuffer );

//! Sets the texture image used by the object
void setTextureImage( const QImage &image ) { this->mTextureImage = image; };
//! Returns the texture image used by the object
QImage textureImage() { return mTextureImage; }

/**
@@ -76,6 +78,7 @@ class Qgs3DExportObject : public QObject

//! Saves the current object to the output stream while scaling the object and centering it to be visible in exported scene
void saveTo( QTextStream &out, float scale, const QVector3D &center );
//! saves the texture of the object and material informations
void saveMaterial( const QString &textureName, const QString &folder );
private:
QString mName;
@@ -75,6 +75,8 @@ class _3D_EXPORT QgsDemTerrainGenerator : public QgsTerrainGenerator
void resolveReferences( const QgsProject &project ) override;

QgsChunkLoader *createChunkLoader( QgsChunkNode *node ) const override SIP_FACTORY;

//! create a chunk loader that creates the node entity synchronously
QgsChunkLoader *createSynchronousChunkLoader( QgsChunkNode *node ) const;

private:

0 comments on commit 294c507

Please sign in to comment.
You can’t perform that action at this time.