CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
TrRndSgTaskScheduler.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2022, Open Design Alliance (the "Alliance").
3// All rights reserved.
4//
5// This software and its documentation and related materials are owned by
6// the Alliance. The software may only be incorporated into application
7// programs owned by members of the Alliance, subject to a signed
8// Membership Agreement and Supplemental Software License Agreement with the
9// Alliance. The structure and organization of this software are the valuable
10// trade secrets of the Alliance and its suppliers. The software is also
11// protected by copyright law and international treaty provisions. Application
12// programs incorporating this software must include the following statement
13// with their copyright notices:
14//
15// This application incorporates Open Design Alliance software pursuant to a license
16// agreement with Open Design Alliance.
17// Open Design Alliance Copyright (C) 2002-2022 by Open Design Alliance.
18// All rights reserved.
19//
20// By use of this software, its documentation or related materials, you
21// acknowledge and accept the above terms.
23// External Scene Graph tasks scheduler
24
25#ifndef ODTRRNDSGSCENEGRAPHTASKSCHEDULER
26#define ODTRRNDSGSCENEGRAPHTASKSCHEDULER
27
28#include "RxObject.h"
29
30#include "TD_PackPush.h"
31
37{
38 public:
40 {
41 kGenericTask = 0, // Generic Scene Graph tasks, like trees balancing and etc.
42 kAuxiliaryTask, // Auxiliary Scene Graph tasks, like intersections computation and etc.
43 kMiscellaneousTask // Miscellaneous Scene Graph tasks, like graphic streams postprocessing and etc.
44 };
46 {
47 kProcessTask = 0, // Continue task processing
48 kInformCompletion, // Continue task processing and call status completion callback
49 kSkipTask, // Skip this task processing and find next
50 kBreakProcess // Break tasks processing
51 };
52 public:
54
60 virtual bool beginQueueProcessing() { return true; }
64 virtual void endQueueProcessing() { }
65
72 virtual ProcessType beginTaskProcessing(TaskType /*taskType*/) { return kProcessTask; }
78 virtual void endTaskProcessing(TaskType /*taskType*/, bool /*bStatus*/) { }
79};
80
86
87#include "TD_PackPop.h"
88
89#endif // ODTRRNDSGSCENEGRAPHTASKSCHEDULER
OdSmartPtr< OdTrRndSgSceneGraphTaskScheduler > OdTrRndSgSceneGraphTaskSchedulerPtr
virtual ProcessType beginTaskProcessing(TaskType)
virtual void endTaskProcessing(TaskType, bool)