logplus/OSGDataModel/src/ObjectIDDescription.cpp
2025-10-29 17:23:30 +08:00

157 lines
5.5 KiB
C++

#pragma warning( push ,0)
#include <set>
#include <QSet>
#include <QUuid>
#include "ObjectID.h"
#include "ObjectIDDescription.h"
#pragma warning( pop )
BEGIN_OSGDATAMODEL_NAMESPACE;
CObjectIDDescription::CObjectIDDescription()
{
}
CObjectIDDescription::CObjectIDDescription( QUuid ID,QString strID,QString strDescription )
{
m_ID = ID;
m_strID = strID;
m_strDescription = strDescription;
}
bool CObjectIDDescription::operator !=( const CObjectIDDescription& s )
{
return m_ID != s.m_ID ;
}
bool CObjectIDDescription::operator< ( const CObjectIDDescription& s ) const
{
return m_ID < s.m_ID;
}
std::set<CObjectIDDescription> &GetGuidDescriptionSet()
{
static std::set<CObjectIDDescription> s;
return s;
}
void OSGDATAMODEL_EXPORT RegisterGuidDescription( CObjectIDDescription s )
{
GetGuidDescriptionSet().insert( s );
}
const CObjectIDDescription *GetGuidDescription( QUuid id )
{
CObjectIDDescription s( id,"","" );
std::set<CObjectIDDescription> ::iterator it = GetGuidDescriptionSet().find( s ) ;
if( it != GetGuidDescriptionSet().end() )
{
return &(*it);
}
return NULL;
}
BEGIN_REGISTER_ID_DESCRIPTION()
ID_ITEM_DATA( GetViewCmdID_PickModel(),"pick model"),
ID_ITEM_DATA(GetViewCmdID_ViewModel(),"view model"),
ID_ITEM_DATA(GetViewCmdID_ViewAll(),"view all"),
ID_ITEM_DATA(GetViewCmdID_IncreasXScale(),"Increas X Scale"),
ID_ITEM_DATA(GetViewCmdID_DecreaseXScale(),"Decrease X Scale"),
ID_ITEM_DATA(GetViewCmdID_IncreasYScale(),"Increas Y Scale"),
ID_ITEM_DATA(GetViewCmdID_DecreaseYScale(),"Decrease Y Scale"),
ID_ITEM_DATA(GetViewCmdID_FitToHeight(),"Fit To Height"),
ID_ITEM_DATA(GetViewCmdID_FitToWidth(),"Fit To Width"),
ID_ITEM_DATA(GetViewCmdID_ZoomIn(),"Zoom In"),
ID_ITEM_DATA(GetViewCmdID_ZoomOut(),"Zoom Out"),
ID_ITEM_DATA(GetViewCmdID_ZoomRect(),"Zoom By Draw Rect"),
ID_ITEM_DATA(GetViewCmdID_Orthogon() ,"Orthogon Camara or Perspective Camara "),
ID_ITEM_DATA(GetViewCmdID_FrameCubeAxies(),"3D Axis have Frame Cube Line"),
ID_ITEM_DATA(GetViewCmdID_BoudingBoxAxis(),"3D Window BoudingBox Axis"),
ID_ITEM_DATA(GetViewCmdID_AxisDirection(),"3D Axis Direction"),
ID_ITEM_DATA(GetViewCmdID_ViewAbove(),"View Above"),
ID_ITEM_DATA(GetViewCmdID_ViewBelow(),"View Below"),
ID_ITEM_DATA(GetViewCmdID_ViewEast(),"View East"),
ID_ITEM_DATA(GetViewCmdID_ViewWest(),"View West"),
ID_ITEM_DATA(GetViewCmdID_ViewSouth(),"View South"),
ID_ITEM_DATA(GetViewCmdID_ViewNorth(),"View North"),
ID_ITEM_DATA(GetViewCmdID_PageSetup(),"Page Setup"),
ID_ITEM_DATA(GetViewCmdID_PrintPreview(),"Print Preview"),
ID_ITEM_DATA(GetViewCmdID_Print(),"Print"),
// other widget
ID_ITEM_DATA(GetViewCmdID_BackgroudColor() ,"change view Backgroud Color"),
ID_ITEM_DATA(GetViewCmdID_XYZScale(),"change 3d window X,Y,Z Scale"),
ID_ITEM_DATA(GetViewCmdID_OSGAutoRenderTimmer(),"OSG Render Timmer"),
ID_ITEM_DATA(GetViewCmdID_DrawLogCurve(),"Well Section Change the log curve by Draw it freely"),
ID_ITEM_DATA(GetViewCmdID_Antialiasing(),"Antialiasing"),
ID_ITEM_DATA(GetViewCmdID_DebugData(),"show debug data"),
ID_ITEM_DATA(GetWindowTypeID_NULL(),"Invalid window type"),
ID_ITEM_DATA(GetWindowTypeID_QtWellSection(),"Qt Well Section Window Type"),
ID_ITEM_DATA(GetWindowTypeID_QtGeoGuideSection(),"Geo Guide Window type"),
ID_ITEM_DATA(GetWindowTypeID_3D(),"3D window type"),
ID_ITEM_DATA(GetWindowTypeID_General2D(),"General 2D Window Type "),
ID_ITEM_DATA(GetWindowTypeID_QtBasemap(),"Basemap Window Qt type"),
ID_ITEM_DATA(GetWindowTypeID_QtCrossplot(),"Qt Crossplot Window type"),
ID_ITEM_DATA(GetWindowTypeID_SeismicSection(),"Seismic Section window type"),
ID_ITEM_DATA(GetWindowTypeID_QtHistgram(),"Histgram Window type"),
ID_ITEM_DATA(GetWindowTypeID_QtMultiWellSection(),"Multiple Well Window type"),
ID_ITEM_DATA(GetID_LeftAxis(),"2d window left Axis"),
ID_ITEM_DATA(GetID_RightAxis(),"2d window right Axis"),
ID_ITEM_DATA(GetID_TopAxis(),"2d window top Axis"),
ID_ITEM_DATA(GetID_BottomAxis(),"2d window bottom Axis"),
ID_ITEM_DATA(GetClassID_Axis(),"2d window Axis class ID"),
ID_ITEM_DATA(GetID_FixedWellHead(),"Fixed Well Head ID"),
ID_ITEM_DATA(GetID_FixedWellLogHead(),"Fixed Well log Head ID"),
ID_ITEM_DATA(GetClassID_FixedWellHead(),"Fixed Well Head class ID"),
ID_ITEM_DATA(GetClassID_FixedWellLogHead(),"Fixed Well log class ID"),
ID_ITEM_DATA(GetClassID_Well(),"Well Class ID"),
ID_ITEM_DATA(GetClassID_WellLog(),"Well Log Class ID"),
ID_ITEM_DATA(GetClassID_WellTrajectory(),"Well Trajectory Class ID"),
ID_ITEM_DATA(GetClassID_WellLogWavefile(),"Well wave Class ID"),
ID_ITEM_DATA(GetClassID_WellLogRound(),"Well Log Round Class ID"),
ID_ITEM_DATA(GetClassID_WellRuler(),"Well Ruler Class ID"),
ID_ITEM_DATA(GetClassID_GeoLayerData(),"project Geolayer model ID"),
ID_ITEM_DATA(GetClassID_Seismic(),"project Seismic model ID"),
ID_ITEM_DATA(GetID_3DBoundingAxies(),"3D Axis ID"),
ID_ITEM_DATA(GetID_AxiesDirection(),"3D Axis Direction ID"),
ID_ITEM_DATA(GetDigitizerID_Pick(),"Pikc model Digitizer ID"),
ID_ITEM_DATA(GetDigitizerID_ZoomRect(),"Zoom Rect Digitizer ID"),
ID_ITEM_DATA(GetDigitizerID_View(),"View model Digitizer ID"),
ID_ITEM_DATA(GetClassID_Image(),"Image Object Type ID"),
ID_ITEM_DATA(GetClassID_Crossplot(),"Cross plot Object Type ID"),
ID_ITEM_DATA(GetClassID_Project(),"Project Object Type ID"),
ID_ITEM_DATA(GetViewCmdID_DrawRect(),"Draw Rect"),
ID_ITEM_DATA(GetViewCmdID_DrawEllipse(),"Draw Ellipse"),
ID_ITEM_DATA(GetViewCmdID_DrawPolygon(),"Darw Ploygon "),
ID_ITEM_DATA(GetAscIIConvertorTypeID(),"AscIIConvertor")
END_REGISTER_ID_DESCRIPTION();
END_OSGDATAMODEL_NAMESPACE