OmniSciDB  b28c0d5765
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RenderInfo.cpp
Go to the documentation of this file.
1 /*
2  * Copyright 2022 HEAVY.AI, Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
19 
20 RenderInfo::RenderInfo(const ::QueryRenderer::RenderSessionKey& in_render_session_key,
21  const RenderQueryOptions& in_render_query_opts,
22  const heavyai::InSituFlags in_insitu_flags)
23  : heavyai::InSituFlagsOwnerInterface(in_insitu_flags)
24  , render_session_key(in_render_session_key)
25  , render_query_opts_(in_render_query_opts) {
26  CHECK(false);
27 }
28 
30  CHECK(false);
31  static const Catalog_Namespace::SessionInfo tmp(
32  nullptr,
33  Catalog_Namespace::UserMetadata(-1, "", "", false, -1, false, false),
35  "");
36  return tmp;
37 }
38 
39 std::shared_ptr<Catalog_Namespace::SessionInfo const> RenderInfo::getSessionInfoPtr()
40  const {
41  UNREACHABLE();
42  return {};
43 }
44 
46  CHECK(false);
47 }
48 
50  CHECK(false);
51 }
52 
54  CHECK(false);
55  return false;
56 }
57 
59  CHECK(false);
60 }
61 
62 std::shared_ptr<QueryRenderer::QueryDataLayout> RenderInfo::getQueryVboLayout() const {
63  CHECK(false);
64  return nullptr;
65 }
66 
68  const std::shared_ptr<QueryRenderer::QueryDataLayout>& vbo_layout) {
69  CHECK(false);
70 }
71 
72 std::shared_ptr<QueryRenderer::QueryDataLayout> RenderInfo::getQuerySsboLayout() const {
73  CHECK(false);
74  return nullptr;
75 }
76 
78  const std::shared_ptr<QueryRenderer::QueryDataLayout>& ssbo_layout) {
79  CHECK(false);
80 }
81 
83  CHECK(false);
84  return render_query_opts_;
85 }
86 
87 void RenderInfo::reset(std::unique_ptr<RenderQueryOptions> in_query_opts,
88  const bool in_force_non_in_situ_data) {
89  CHECK(false);
90 }
void disableCudaBuffers()
Definition: RenderInfo.cpp:58
RenderInfo(const ::QueryRenderer::RenderSessionKey &in_render_session_key, const RenderQueryOptions &in_render_query_opts, const heavyai::InSituFlags in_insitu_flags=heavyai::InSituFlags::kInSitu)
Definition: RenderInfo.cpp:20
bool useCudaBuffers() const
Definition: RenderInfo.cpp:53
std::shared_ptr< Catalog_Namespace::SessionInfo const > getSessionInfoPtr() const
Definition: RenderInfo.cpp:39
void forceNonInSitu()
Definition: RenderInfo.cpp:45
std::shared_ptr< QueryRenderer::QueryDataLayout > getQuerySsboLayout() const
Definition: RenderInfo.cpp:72
#define UNREACHABLE()
Definition: Logger.h:266
const Catalog_Namespace::SessionInfo & getSessionInfo() const
Definition: RenderInfo.cpp:29
const RenderQueryOptions & getRenderQueryOptions() const
Definition: RenderInfo.cpp:82
std::shared_ptr< QueryRenderer::QueryDataLayout > getQueryVboLayout() const
Definition: RenderInfo.cpp:62
RenderQueryOptions render_query_opts_
Definition: RenderInfo.h:83
void reset(std::unique_ptr< RenderQueryOptions > in_query_opts, const bool in_force_non_in_situ_data)
Definition: RenderInfo.cpp:87
void setNonInSitu()
Definition: RenderInfo.cpp:49
void setQuerySsboLayout(const std::shared_ptr< QueryRenderer::QueryDataLayout > &ssbo_layout)
Definition: RenderInfo.cpp:77
#define CHECK(condition)
Definition: Logger.h:222
void setQueryVboLayout(const std::shared_ptr< QueryRenderer::QueryDataLayout > &vbo_layout)
Definition: RenderInfo.cpp:67