Magnetoculus Database Builder
Construction de bases de données pour Magnetoculus
DBCreator.Polygon Class Reference

The data model of a city in the database. More...

Inheritance diagram for DBCreator.Polygon:

Static Public Attributes

 id = Column(Integer, primary_key=True, nullable=False)
 
 cityID = Column(Integer, ForeignKey('city.id'), nullable=False)
 
 city = relationship('City')
 
 vertices = Column(BLOB, nullable=False)
 
 uv = Column(BLOB, nullable=False)
 
 textureID = Column(Integer, ForeignKey('texture.id'), nullable=False)
 
 texture = relationship('Texture')
 

Detailed Description

The data model of a city in the database.

Every Polygon has a list of vertices, a list of uv(to map a texture on it), a unique Texture(that might not exist in the database), and belongs to a specific City.

Member Data Documentation

◆ city

DBCreator.Polygon.city = relationship('City')
static

◆ cityID

DBCreator.Polygon.cityID = Column(Integer, ForeignKey('city.id'), nullable=False)
static

◆ id

DBCreator.Polygon.id = Column(Integer, primary_key=True, nullable=False)
static

◆ texture

DBCreator.Polygon.texture = relationship('Texture')
static

◆ textureID

DBCreator.Polygon.textureID = Column(Integer, ForeignKey('texture.id'), nullable=False)
static

◆ uv

DBCreator.Polygon.uv = Column(BLOB, nullable=False)
static

◆ vertices

DBCreator.Polygon.vertices = Column(BLOB, nullable=False)
static

The documentation for this class was generated from the following file: