Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
MeshMaterialModifier.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2026 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
4// See the top-level COPYRIGHT file for details.
5// SPDX-License-Identifier: Apache-2.0
6//-----------------------------------------------------------------------------
7/*---------------------------------------------------------------------------*/
8/* MeshMaterialModifier.h (C) 2000-2024 */
9/* */
10/* Object allowing material modification. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_MATERIALS_MESHMATERIALMODIFIER_H
13#define ARCANE_MATERIALS_MESHMATERIALMODIFIER_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
19
20/*---------------------------------------------------------------------------*/
21/*---------------------------------------------------------------------------*/
22
23namespace Arcane::Materials
24{
25
26/*---------------------------------------------------------------------------*/
27/*---------------------------------------------------------------------------*/
28
45class ARCANE_MATERIALS_EXPORT MeshMaterialModifier
46{
47 public:
48
49 explicit MeshMaterialModifier(IMeshMaterialMng*);
50 ~MeshMaterialModifier() ARCANE_NOEXCEPT_FALSE;
51
52 public:
53
58
63
69 void endUpdate();
70
80
88 void setDoInitNewItems(bool v);
89
97 void setPersistantWorkBuffer(bool v);
98
99 private:
100
101 MeshMaterialModifierImpl* m_impl = nullptr;
102 bool m_has_update = false;
103 void _checkHasUpdate();
104};
105
106/*---------------------------------------------------------------------------*/
107/*---------------------------------------------------------------------------*/
108
109} // namespace Arcane::Materials
110
111/*---------------------------------------------------------------------------*/
112/*---------------------------------------------------------------------------*/
113
114#endif
Declarations of types used in Arcane.
Interface for the material and environment manager of a mesh.
void setDoInitNewItems(bool v)
Indicates whether newly created material or environment cells are initialized.
void endUpdate()
Updates the structures after a modification.
void addCells(IMeshMaterial *mat, SmallSpan< const Int32 > ids)
Adds the cells with local indices ids to the material mat.
void setPersistantWorkBuffer(bool v)
Indicates whether work buffers are preserved between modifications.
void removeCells(IMeshMaterial *mat, SmallSpan< const Int32 > ids)
Removes the cells with local indices ids from the material mat.
void setDoCopyBetweenPartialAndPure(bool v)
Indicates whether values are copied between pure and partial states when a change in the cell state o...
View of an array of elements of type T.
Definition Span.h:805
Always enables tracing in Arcane parts concerning materials.
class ARCANE_MATERIALS_EXPORT(64) SimdMatVarIndex
SIMD indexer on a component.