⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 geneditdoc.h

📁 3D游戏场景编辑器
💻 H
📖 第 1 页 / 共 2 页
字号:
	void MoveSelectedBrushes (geVec3d const *v);
	void MoveSelectedClone (geVec3d const *v);
	void MoveTemplateBrush (geVec3d *);
//	void ChangeGridSize(geFloat Increment, CView* pSender );
	void UpdateGridInformation();
	void DeleteCurrentThing();
	void MoveEntity(geVec3d *);
	void DoneMoveEntity();
	void DeleteEntity(int EntityIndex);
	void DoneRotateBrush();
	void OnSelectedTypeCmdUI(CCmdUI* pCmdUI);
	void RenderOrthoView(ViewVars *, CDC *);
	int AreBrushesSelected();
	void UpdateEntityOrigins();
	int CanRedo();
	void SaveBrushUndo();
	int CanUndo();
	void RenderWorld(ViewVars *v, CDC* pDC);
	void RotateTemplateBrush(geVec3d *);
	void ShearBrush(geVec3d *);
	void ResetSelectedBrushAttributes();
	void BrushListToMeters(void);
	void BrushListToTexels(void);
	void MakeSelectedBrushNewest(void);
	void ScaleWorld(geFloat ScaleFactor);
	void SetAllFacesTextureScale(geFloat ScaleVal);

	void		SetDefaultBrushTexInfo(Brush *);
	void		SelectOrtho(CPoint point, ViewVars *v);
	void		SelectOrthoRect(CPoint ptStart, CPoint ptEnd, ViewVars *v) ;
	void		SelectRay(CPoint point, ViewVars *v);
	WadFileEntry* GetDibBitmap(const char *Name);
	BOOL		DeleteSelectedBrushes();
	BOOL		TempDeleteSelected(void);
	int			MakeNewBrushGroup ( CWnd * pParent );
	int			FillBrushGroupCombo (CComboBox &cb);
	int			DoBrushGroupEditor (CComboBox &cb);
	void		AddSelToGroup( void ) ;
	void		RemovesSelFromGroup( void ) ;
	void		SetAdjustmentMode ( fdocAdjustEnum nCmdIDMode ) ;

	// places the specified object down into the level at the specified location
	geBoolean	PlaceObject( const char *Objectname, const geVec3d *location );
	geBoolean	ImportFile (const char *PathName, const geVec3d *location);

	void		SelectEntity (CEntity *pEnt);
	void		DeselectEntity (CEntity *pEnt);

	void		ShowEntitiesEditor();	//	new g3dc
	void		ShowBrushAttributesDialog(); // new g3dc



	geBoolean	ValidateEntities( void ) ;
	geBoolean	ValidateBrushes( void ) ;
	void		SelectTab( int nTabIndex ) ;

	void		ShowConsole();
	void		OpenLevelOptionsDialog();

	void		BrushSelect (Brush *pBrush);
	geBoolean	BrushIsSelected (Brush const *pBrush);

	void		DoBrushSelection (Brush *pBrush, BrushSel nSelType ) ;
	void		DoEntitySelection (CEntity *pEntity);
	int			FindClosestThing (POINT const *ptFrom, ViewVars *v, Brush **ppMinBrush, CEntity **ppMinEntity, geFloat *pDist);
	geBoolean	fdocShowBrush( Brush const *b, Box3d const *ViewBox ) ;

	geBoolean	bShowLeakFinder(void) { return bShowLeak; }
	void		SetShowLeakFinder(geBoolean bShow) { bShowLeak=bShow; }
	geBoolean	IsLeakFileLoaded(void) { return bLeakLoaded; }
	geVec3d		*GetLeakPoints(void) { assert(LeakPoints); return LeakPoints; }
	int			GetNumLeakPoints(void) { return NumLeakPoints; }
	void		CompileDone (CompilerErrorEnum CompileRslt);
	void		UpdateFaceAttributesDlg (void);
	void		UpdateBrushAttributesDlg (void);
	const		Prefs *GetPrefs (void);
	void		RebuildTrees(void);
	void		InvalidateDrawTreeOriginalFaces(void);

	geFloat	GetWorldScaleFactor();		//	post 0.57
	bool SetEntityScaleInView(geFloat scale);	//	post 0.57
	geFloat GetEntityScaleInView();		//	post 0.57	

	geBoolean PlayResource (char const * pName);
public:
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CGenEditDoc)
	public:
	virtual BOOL OnNewDocument();
	virtual void Serialize(CArchive& ar);
	virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
	virtual BOOL OnSaveDocument(LPCTSTR lpszPathName);
	virtual void OnCloseDocument();
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CGenEditDoc();

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CGenEditDoc)
	afx_msg void OnToolsUsegrid();
	afx_msg void OnUpdateToolsUsegrid(CCmdUI* pCmdUI);
	afx_msg void OnToolsGridsettings();
	afx_msg void OnEditUndo();
	afx_msg void OnUpdateEditUndo(CCmdUI* pCmdUI);
	afx_msg void OnEditRedo();
	afx_msg void OnUpdateEditRedo(CCmdUI* pCmdUI);
//	afx_msg void OnEntitiesEditor();
	afx_msg void OnEntitiesShow();
	afx_msg void OnUpdateEntitiesShow(CCmdUI* pCmdUI);
	afx_msg void OnViewShowAllGroups();
	afx_msg void OnViewShowCurrentGroup();
	afx_msg void OnViewShowVisibleGroups();
	afx_msg void OnUpdateViewShowVisibleGroups(CCmdUI* pCmdUI);
	afx_msg void OnUpdateViewShowAllGroups(CCmdUI* pCmdUI);
	afx_msg void OnUpdateViewShowCurrentGroup(CCmdUI* pCmdUI);
	afx_msg void OnUpdateBrushAdjustmentmode(CCmdUI* pCmdUI);
	afx_msg void OnBrushSelectedCopytocurrent();
	afx_msg void OnBrushSelectedDelete();
	afx_msg void OnGbspnowater();
	afx_msg void OnUpdateFaceAdjustmentmode(CCmdUI* pCmdUI);
	afx_msg void OnConstrainhollows();
	afx_msg void OnUpdateConstrainhollows(CCmdUI* pCmdUI);
	afx_msg void OnGeneralselect();
	afx_msg void OnUpdateGeneralselect(CCmdUI* pCmdUI);
	afx_msg void OnThingAttributes();
	afx_msg void OnBrushSubtractfromworld();
	afx_msg void OnEditCopy();
	afx_msg void OnEditPaste();
	afx_msg void OnUpdateEditCopy(CCmdUI* pCmdUI);
	afx_msg void OnUpdateEditPaste(CCmdUI* pCmdUI);
	afx_msg void OnEditCut();
	afx_msg void OnUpdateEditCut(CCmdUI* pCmdUI);
	afx_msg void OnCompile();
	afx_msg void OnUpdateBrushSubtractfromworld(CCmdUI* pCmdUI);
	afx_msg void OnUpdateThingAttributes(CCmdUI* pCmdUI);
	afx_msg void OnUpdateToolsBrushShowassociatedentity(CCmdUI* pCmdUI);
	afx_msg void OnUpdateEntitiesEditor(CCmdUI* pCmdUI);
	afx_msg void OnNewLibObject();
	afx_msg void OnFileOpen();
	afx_msg void OnToolsBrushAdjustmentmode();
	afx_msg void OnToolsFaceAdjustmentmode();
	afx_msg void OnUpdateBrushPrimitives(CCmdUI* pCmdUI);
	afx_msg void OnBrushPrimitivesCube();
	afx_msg void OnBrushPrimitivesSpheroid();
	afx_msg void OnBrushPrimitivesCylinder();
	afx_msg void OnBrushPrimitivesStaircase();
	afx_msg void OnViewShowClip();
	afx_msg void OnUpdateViewShowClip(CCmdUI* pCmdUI);
	afx_msg void OnViewShowDetail();
	afx_msg void OnUpdateViewShowDetail(CCmdUI* pCmdUI);
	afx_msg void OnViewShowHint();
	afx_msg void OnUpdateViewShowHint(CCmdUI* pCmdUI);
	afx_msg void OnEditDelete();
	afx_msg void OnBrushPrimitivesArch();
	afx_msg void OnBrushPrimitivesCone();
	afx_msg void OnFileImport();
	afx_msg void OnToolsBrushAttributes();
	afx_msg void OnUpdateToolsBrushAttributes(CCmdUI* pCmdUI);
	afx_msg void OnToolsFaceAttributes();
	afx_msg void OnUpdateToolsFaceAttributes(CCmdUI* pCmdUI);
	afx_msg void OnEntityVisibility();
	afx_msg void OnRebuildBsp();
	afx_msg void OnUpdateRebuildBsp(CCmdUI* pCmdUI);
	afx_msg void OnFileSave();
	afx_msg void OnFileSaveAs();
	afx_msg void OnToolsToggleadjustmode();
	afx_msg void OnUpdateToolsToggleadjustmode(CCmdUI* pCmdUI);
	afx_msg void OnLeveloptions();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()



private:
	geVec3d		*LeakPoints;
	int			NumLeakPoints;
	geBoolean	bLeakLoaded, bShowLeak;
	geBoolean	LoadLeakFile(const char *Filename);
	geBoolean	LoadMapFile(const char *Filename);
	UndoStack	*pUndoStack;
	char		LastPath[MAX_PATH];  //no cstrings for dialog action gedit
//	LPCTSTR		LastPath;  
	geFloat		m_fWorldScaleFactor;	//	post 0.57
	geFloat		m_fEntityScaleInViewFactor;	//	post 0.57

	geBoolean	bShowClipBrushes, bShowDetailBrushes, bShowHintBrushes;

	int DoCompileDialog (void);
	geBoolean WriteLevelToMap (const char *Filename);

	geBoolean Load( const char *FileName );  // Loads from filename
	geBoolean Save( const char *FileName );  // saves filename

	void UpdateSelectedModel (int MoveRotate, geVec3d const *pVecDelta);

	// insures all of the Dib ID's in the brush are correct
	// returns GE_TRUE if all textures fixed up.
	// returns GE_FALSE if any texture was not found
	geBoolean FixUpBrushDibIDs( Brush *brush );

	// our current setting for our grid movement
	int mCurrentBrushId;

	void RotateSelectedBrushList (SelBrushList *pList, geVec3d const *v);
	void MoveSelectedBrushList (SelBrushList *pList, geVec3d const *v);
	void GetRotationPoint (geVec3d *pVec);
	void AddCameraEntityToLevel (void);
	CEntity *FindCameraEntity (void);

	geBoolean FindClosestEntity (POINT const *ptFrom, ViewVars *v, CEntity **ppMinEntity, geFloat *pMinEntityDist);
	geBoolean FindClosestBrush (POINT const *ptFrom, ViewVars *v, Brush **ppFoundBrush, geFloat *pMinEdgeDist);

	void SetupDefaultFilename (void);
	const char *FindTextureLibrary (char const *WadName);
	Face *FindSelectedFace (void);
	void DeleteBrushAttributes (void);
	void DeleteFaceAttributes (void);
};


geBoolean BrushSelect( Brush *pBrush, uint32 Action, uint32 Data, void * pVoid ) ;
geBoolean BrushDraw( Brush *pBrush, uint32 Action, uint32 Data, void * pVoid ) ;
geBoolean EntitySelect( CEntity& Entity, uint32 Action, uint32 Data, void * pVoid ) ;
geBoolean EntityDraw( CEntity& Entity, uint32 Action, uint32 Data, void * pVoid ) ;

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -