1
0
Fork 0

Add signs size support to the STG files

This commit is contained in:
Christian Schmitt 2012-05-13 09:07:55 +02:00
parent 83f6532af0
commit 5da5dc29be
4 changed files with 11 additions and 5 deletions

View file

@ -1792,7 +1792,8 @@ void Airport::BuildBtg(const string& root, const string_list& elev_src )
{
write_object_sign( objpath, b, taxisigns_nodes[i],
signs[i]->GetDefinition(),
signs[i]->GetHeading() );
signs[i]->GetHeading(),
signs[i]->GetSize() );
}
// write out water buoys

View file

@ -83,6 +83,11 @@ public:
{
return sgn_def;
}
int GetSize()
{
return size;
}
};
typedef std::vector <Sign *> SignList;

View file

@ -117,7 +117,7 @@ void write_index_shared( const string &base, const SGBucket &b,
void write_object_sign( const string &base, const SGBucket &b,
const Point3D &p, const string& sign,
const double &heading )
const double &heading, const int &size)
{
string dir = base + "/" + b.gen_base_path();
SGPath sgp( dir );
@ -134,8 +134,8 @@ void write_object_sign( const string &base, const SGBucket &b,
exit(-1);
}
fprintf( fp, "OBJECT_SIGN %s %.6f %.6f %.1f %.2f\n", sign.c_str(),
p.lon(), p.lat(), p.elev(), heading );
fprintf( fp, "OBJECT_SIGN %s %.6f %.6f %.1f %.2f %u\n", sign.c_str(),
p.lon(), p.lat(), p.elev(), heading, size );
fclose( fp );
}

View file

@ -57,7 +57,7 @@ void write_index_shared( const std::string &base, const SGBucket &b,
// scenery build)
void write_object_sign( const std::string &base, const SGBucket &b,
const Point3D &p, const std::string& sign,
const double &heading );
const double &heading, const int &size );
void write_boundary( const std::string& base, const SGBucket& b,
const TGPolygon& bounds, long int p_index );