GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
mesh_prediction_scheme_decoder.h
Go to the documentation of this file.
1// Copyright 2016 The Draco Authors.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14//
15#ifndef DRACO_COMPRESSION_ATTRIBUTES_PREDICTION_SCHEMES_MESH_PREDICTION_SCHEME_DECODER_H_
16#define DRACO_COMPRESSION_ATTRIBUTES_PREDICTION_SCHEMES_MESH_PREDICTION_SCHEME_DECODER_H_
17
20
21namespace draco {
22
23// Base class for all mesh prediction scheme decoders that use the mesh
24// connectivity data. |MeshDataT| can be any class that provides the same
25// interface as the PredictionSchemeMeshData class.
26template <typename DataTypeT, class TransformT, class MeshDataT>
28 : public PredictionSchemeDecoder<DataTypeT, TransformT> {
29 public:
30 typedef MeshDataT MeshData;
32 const TransformT &transform,
33 const MeshDataT &mesh_data)
34 : PredictionSchemeDecoder<DataTypeT, TransformT>(attribute, transform),
35 mesh_data_(mesh_data) {}
36
37 protected:
38 const MeshData &mesh_data() const { return mesh_data_; }
39
40 private:
41 MeshData mesh_data_;
42};
43
44} // namespace draco
45
46#endif // DRACO_COMPRESSION_ATTRIBUTES_PREDICTION_SCHEMES_MESH_PREDICTION_SCHEME_DECODER_H_
const MeshData & mesh_data() const
Definition mesh_prediction_scheme_decoder.h:38
MeshPredictionSchemeDecoder(const PointAttribute *attribute, const TransformT &transform, const MeshDataT &mesh_data)
Definition mesh_prediction_scheme_decoder.h:31
MeshDataT MeshData
Definition mesh_prediction_scheme_decoder.h:30
Definition point_attribute.h:33
const Transform & transform() const
Definition prediction_scheme_decoder.h:80
PredictionSchemeDecoder(const PointAttribute *attribute)
Definition prediction_scheme_decoder.h:42
const PointAttribute * attribute() const
Definition prediction_scheme_decoder.h:79
Definition attribute_octahedron_transform.cc:21